[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Schemix-devel] Using AVCALL library to call random functions in the
Re: [Schemix-devel] Using AVCALL library to call random functions in the kernel
Wed, 15 Nov 2006 13:06:24 -0800
As you probably guessed from how long it took me to reply, I don't get
much time these days to play with Schemix. I took a quick look at
AVCALL though, and it looks perfect for allowing Schemix to call
arbitrary kernel functions. Excellent find!
If there's anything I can do to help out, feel free to ping me and/or
this list again. I can't promise I'll be able to reply quickly, but
I'll do what I can. Good luck!
On 10/26/06, Cory Cross <address@hidden> wrote:
Hello everyone (anyone?),
I stopped working on this a while ago after getting dead-locked on a
foreign-function-interface library but remained interested. I ran across
AVCALL many months ago and finally decided to make it work. I tried
libffi, but it has many userland dependencies.
Progress: Got compilation and primitive function of avcall.
Next steps: Bring in vacall. Make both access any given function in the
kernel. Integrate into Schemix's kernel-lambda. (Of course, I still need
to locate my old Schemix files somewhere...)
1. Download attached files and place in separate directory mod-avcall
2. Download ffcall (I used version 1.10) and compile avcall
3. From avcall directory, copy avcall.h and .libs/libavcall.a to mod-avcall
4. Run "make" in mod-avcall
5. I added "V=1" to the Makefile for verbosity. The last thing "make"
does is link cory.o and cory.mod.o to create cory.ko. Copy this command,
then add "libavcall.a" to the end, in effect linking cory.o, cory.mod.o,
and libavcall.a to create a kernel module "cory.ko"
#MODULE := cory.ko
OBJS := cory.o libavcall.a
obj-m := cory.o
#CFLAGS += -E
LDFLAGS = -v
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) V=1 modules
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
Schemix-devel mailing list
William Bland: http://www.abstractnonsense.org/
Lisp documentation: http://www.lispdoc.com/
- Re: [Schemix-devel] Using AVCALL library to call random functions in the kernel,
William Bland <=