diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2004-06-13 21:49:30 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2004-06-13 21:49:30 +0000 |
commit | 2dd254afa61a7c0cc5ae920b463d3d4266852804 (patch) | |
tree | 7adbebef3be24ba910fd83ee1ba09e1577ae21a8 /sys/arch/amd64 | |
parent | 4d62e331dcde739b4067d712dd602c0927ce11b3 (diff) |
debranch SMP, have fun
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/genassym.cf | 3 | ||||
-rw-r--r-- | sys/arch/amd64/amd64/locore.S | 6 | ||||
-rw-r--r-- | sys/arch/amd64/include/cpu.h | 16 | ||||
-rw-r--r-- | sys/arch/amd64/include/param.h | 8 | ||||
-rw-r--r-- | sys/arch/amd64/isa/isa_machdep.c | 4 |
5 files changed, 10 insertions, 27 deletions
diff --git a/sys/arch/amd64/amd64/genassym.cf b/sys/arch/amd64/amd64/genassym.cf index de6ab55ca81..a56769705b4 100644 --- a/sys/arch/amd64/amd64/genassym.cf +++ b/sys/arch/amd64/amd64/genassym.cf @@ -1,4 +1,4 @@ -# $OpenBSD: genassym.cf,v 1.3 2004/05/13 20:20:24 sturm Exp $ +# $OpenBSD: genassym.cf,v 1.4 2004/06/13 21:49:12 niklas Exp $ # Written by Artur Grabowski art@openbsd.org, Public Domain @@ -17,6 +17,7 @@ include <machine/vmparam.h> include <machine/intr.h> export SRUN +export SONPROC export L4_SLOT_KERNBASE define L3_SLOT_KERNBASE pl3_pi(KERNBASE) diff --git a/sys/arch/amd64/amd64/locore.S b/sys/arch/amd64/amd64/locore.S index a61e1719e61..732eea0a0df 100644 --- a/sys/arch/amd64/amd64/locore.S +++ b/sys/arch/amd64/amd64/locore.S @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.S,v 1.10 2004/05/13 20:20:24 sturm Exp $ */ +/* $OpenBSD: locore.S,v 1.11 2004/06/13 21:49:12 niklas Exp $ */ /* $NetBSD: locore.S,v 1.2 2003/04/26 19:34:45 fvdl Exp $ */ /* @@ -848,9 +848,7 @@ switch_resume: movq %rax,P_BACK(%r12) /* Record new proc. */ -#ifdef MULTIPROCESSOR - movb $SONPROC,P_STAT(%r12) # l->l_stat = SONPROC -#endif + movb $SONPROC,P_STAT(%r12) # p->p_stat = SONPROC SET_CURPROC(%r12,%rcx) sti diff --git a/sys/arch/amd64/include/cpu.h b/sys/arch/amd64/include/cpu.h index cc688f39aa6..9caf05b561d 100644 --- a/sys/arch/amd64/include/cpu.h +++ b/sys/arch/amd64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.6 2004/03/09 23:05:13 deraadt Exp $ */ +/* $OpenBSD: cpu.h,v 1.7 2004/06/13 21:49:13 niklas Exp $ */ /* $NetBSD: cpu.h,v 1.1 2003/04/26 18:39:39 fvdl Exp $ */ /*- @@ -191,25 +191,15 @@ extern struct cpu_info cpu_info_primary; * or after the current trap/syscall if in system mode. */ -#ifdef MULTIPROCESSOR #define need_resched(ci) \ do { \ - struct cpu_info *__ci = (ci); \ + struct cpu_info *__ci = curcpu(); \ __ci->ci_want_resched = 1; \ if (__ci->ci_curproc != NULL) \ aston(__ci->ci_curproc); \ } while (/*CONSTCOND*/0) -#else -#define need_resched() \ -do { \ - struct cpu_info *__ci = curcpu(); \ - __ci->ci_want_resched = 1; \ - if (__ci->ci_curproc != NULL) \ - aston(__ci->ci_curproc); \ -} while (/*CONSTCOND*/0) -#endif -#endif +#endif /* MULTIPROCESSOR */ #define aston(p) ((p)->p_md.md_astpending = 1) diff --git a/sys/arch/amd64/include/param.h b/sys/arch/amd64/include/param.h index ea59b9e5273..09e070357a6 100644 --- a/sys/arch/amd64/include/param.h +++ b/sys/arch/amd64/include/param.h @@ -1,4 +1,4 @@ -/* $OpenBSD: param.h,v 1.3 2004/04/19 22:55:48 deraadt Exp $ */ +/* $OpenBSD: param.h,v 1.4 2004/06/13 21:49:13 niklas Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -162,9 +162,3 @@ #define btop(x) x86_btop(x) #define ptob(x) x86_ptob(x) #define round_pdr(x) x86_round_pdr(x) - -/* XXX - oh, the horror.. Just for now. */ -#define KERNEL_PROC_LOCK(p) -#define KERNEL_PROC_UNLOCK(p) -#define KERNEL_LOCK(i) -#define KERNEL_UNLOCK() diff --git a/sys/arch/amd64/isa/isa_machdep.c b/sys/arch/amd64/isa/isa_machdep.c index f86a49a00ed..2b3e249e7ae 100644 --- a/sys/arch/amd64/isa/isa_machdep.c +++ b/sys/arch/amd64/isa/isa_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: isa_machdep.c,v 1.1 2004/01/28 01:39:39 mickey Exp $ */ +/* $OpenBSD: isa_machdep.c,v 1.2 2004/06/13 21:49:13 niklas Exp $ */ /* $NetBSD: isa_machdep.c,v 1.22 1997/06/12 23:57:32 thorpej Exp $ */ #define ISA_DMA_STATS @@ -132,6 +132,7 @@ #include <machine/intr.h> #include <machine/pio.h> #include <machine/cpufunc.h> +#include <machine/i8259.h> #include <dev/isa/isareg.h> #include <dev/isa/isavar.h> @@ -139,7 +140,6 @@ #include <dev/isa/isadmavar.h> #endif #include <i386/isa/isa_machdep.h> -#include <i386/isa/icu.h> #include "isadma.h" |