diff options
author | 2007-10-10 15:53:51 +0000 | |
---|---|---|
committer | 2007-10-10 15:53:51 +0000 | |
commit | 45053f4a9c0ff11fe529cfbf9c98901ff89d8e2c (patch) | |
tree | 8892d5c7c720788fc3d9d2cba5ce3ebc1d11f09c /sys/arch/i386/include/frame.h | |
parent | send_packet() now takes a struct in6_addr as destination instead of a (diff) | |
download | wireguard-openbsd-45053f4a9c0ff11fe529cfbf9c98901ff89d8e2c.tar.xz wireguard-openbsd-45053f4a9c0ff11fe529cfbf9c98901ff89d8e2c.zip |
Make context switching much more MI:
- Move the functionality of choosing a process from cpu_switch into
a much simpler function: cpu_switchto. Instead of having the locore
code walk the run queues, let the MI code choose the process we
want to run and only implement the context switching itself in MD
code.
- Let MD context switching run without worrying about spls or locks.
- Instead of having the idle loop implemented with special contexts
in MD code, implement one idle proc for each cpu. make the idle
loop MI with MD hooks.
- Change the proc lists from the old style vax queues to TAILQs.
- Change the sleep queue from vax queues to TAILQs. This makes
wakeup() go from O(n^2) to O(n)
there will be some MD fallout, but it will be fixed shortly.
There's also a few cleanups to be done after this.
deraadt@, kettenis@ ok
Diffstat (limited to 'sys/arch/i386/include/frame.h')
-rw-r--r-- | sys/arch/i386/include/frame.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/i386/include/frame.h b/sys/arch/i386/include/frame.h index 8ce02c8753f..cc1263e57c8 100644 --- a/sys/arch/i386/include/frame.h +++ b/sys/arch/i386/include/frame.h @@ -1,4 +1,4 @@ -/* $OpenBSD: frame.h,v 1.8 2006/11/27 18:04:28 gwk Exp $ */ +/* $OpenBSD: frame.h,v 1.9 2007/10/10 15:53:52 art Exp $ */ /* $NetBSD: frame.h,v 1.12 1995/10/11 04:20:08 mycroft Exp $ */ /*- @@ -106,7 +106,6 @@ struct intrframe { * Stack frame inside cpu_switch() */ struct switchframe { - int sf_ppl; int sf_edi; int sf_esi; int sf_ebx; |