[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Schemix-devel] Testing under UML
From: |
William Bland |
Subject: |
Re: [Schemix-devel] Testing under UML |
Date: |
Sun, 11 Mar 2007 15:26:12 -0700 |
Hi Cory,
Sorry for the even longer than usual response time!
From what I remember, get_user and put_user are C macros for
reading/writing user-space memory, from kernel-space. You can't just
do a memcpy in this situation since the kernel and user programs live
in different segments. Maybe that's not the case in UML and you can
get away with a simple memcpy?
This page seems to suggest that UML does have a get_user and put_user though:
http://www.cs.utexas.edu/~dahlin/Classes/UGOS/labs/labUML/labUML.html
Looks like the macros should be in include/asm-i386/uaccess.h
I have to admit I've never actually run UML!
Hope that's of some help - sorry I don't know more about this stuff.
Cheers,
Bill.
On 26/12/06, Cory Cross <address@hidden> wrote:
Hi all,
I've almost got Schemix running under user-mode Linux. Almost,
because there is no "__put_user_1" function available in UML (or at
least the default Debian build). It's used for writing to the program
reading from /dev/schemix. Bill, this is your code right at the end of
schemix.c, in function "device_read". Any idea on how to replace this
short part?
I've written up instructions on how to compile for UML if we can get
this bug worked out.
Thanks,
Cory Cross
_______________________________________________
Schemix-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/schemix-devel
--
William Bland: http://www.abstractnonsense.org/
Lisp documentation: http://www.lispdoc.com/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Schemix-devel] Testing under UML,
William Bland <=