From: Jeff Dike <jdike@ka...> - 2002-03-21 04:24:38
> Should I edit the one in i386, or is there something completely
> different that I have to do for a UML kernel?
UML has nothing to do with arch/i386 or include/asm-i386.
Everything you want is in arch/um and include/asm-um. The system calls are in
From: Tom Panning <tpanning@vt...> - 2002-03-21 05:08:26
On Wednesday 20 March 2002 11:26 pm, Jeff Dike wrote:
> tpanning@... said:
> > Should I edit the one in i386, or is there something completely
> > different that I have to do for a UML kernel?
> UML has nothing to do with arch/i386 or include/asm-i386.
> Everything you want is in arch/um and include/asm-um. The system calls are
> in arch/um/kernel/sys_call_table.c.
Soon after I sent my email, I found arch/um/kernel/sys_call_table.c and
realized that that was what I needed. I tried adding:
extern syscall_handler_t sys_pedagogictime;
after the last "extern syscall_handler_t ..." and adding:
[ __NR_pedagogictime ] = sys_pedagogictime,
[ __NR_fremovexattr ] = sys_ni_syscall,
By the way, the definition of sys_pedagogictime() is in
arch/um/kernel/syscall_kern.c and is this:
When I tried to compile with these changes, I get this error message:
make: Entering directory `/usr/src/uml/linux/arch/um/kernel'
gcc -D__KERNEL__ -I/usr/src/uml/linux/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -g -U__i386__ -Ui386
-DUM_FASTCALL -D__arch_um__ -DSUBARCH="i386" -DNESTING=0
-c -o sys_call_table.o sys_call_table.c
sys_call_table.c:461: duplicate array index in initializer
sys_call_table.c:461: (near initialization for `sys_call_table')
make: *** [sys_call_table.o] Error 1
make: Leaving directory `/usr/src/uml/linux/arch/um/kernel'
make: *** [_dir_arch/um/kernel] Error 2
I'm sorry that I'm asking so many questions, the only consolation that I can
offer you is that once I'm done my project, I have to write instructions to
help other people to do it. I'll make sure to send you a copy of those
instructions so that you can post them on the website and anybody else will
just be able to read those docs, instead of asking you.