DragonFly commits List (threaded) for 2003-07
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
cvs commit: src/sys/kern init_sysent.c kern_device.c lwkt_msgport.c makesyscalls.sh syscalls.c
dillon 2003/07/24 16:52:38 PDT
Modified files:
sys/kern init_sysent.c kern_device.c
lwkt_msgport.c makesyscalls.sh syscalls.c
Log:
Syscall messaging work 2: Continue with the implementation of sendsys(),
using int 0x81. This entry point will be responsible for sending system
call messages or waiting for messages / port activity.
With this commit system call messages can be run through 0x81 but at the
moment they will always run synchronously. Here's the core interface
code for IA32:
static __inline int
sendsys(void *port, void *msg, int msgsize)
{
int error;
__asm __volatile("int $0x81" : "=a"(error) :
"a"(port), "c"(msg), "d"(msgsize) : "memory");
return(error);
}
Performance verses a direct system call is currently excellent considering
that this is my initial attempt.
600MHzC3 1.2GHzP3x2(SMP)
getuid() 1300 ns 909 ns
getuid_msg() 1700 ns 1077 ns
Revision Changes Path
1.5 +0 -0 src/sys/kern/init_sysent.c
1.3 +2 -2 src/sys/kern/kern_device.c
1.3 +11 -4 src/sys/kern/lwkt_msgport.c
1.6 +4 -0 src/sys/kern/makesyscalls.sh
1.5 +0 -0 src/sys/kern/syscalls.c
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]