diff options
author | 2010-03-28 16:26:47 +0000 | |
---|---|---|
committer | 2010-03-28 16:26:47 +0000 | |
commit | b5aa7a9157cf59d0fddba9b24078c877a1bfe45c (patch) | |
tree | e0c6f9902536e10a28fa08662568f622feaef8bc | |
parent | tweak spacing a bit. This has been annoying me. (diff) | |
download | wireguard-openbsd-b5aa7a9157cf59d0fddba9b24078c877a1bfe45c.tar.xz wireguard-openbsd-b5aa7a9157cf59d0fddba9b24078c877a1bfe45c.zip |
Allow a multiprocessor kernel to compile.
ok kettenis@
-rw-r--r-- | sys/arch/hppa/dev/cpu.c | 9 | ||||
-rw-r--r-- | sys/arch/hppa/include/cpu.h | 10 |
2 files changed, 17 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/cpu.c b/sys/arch/hppa/dev/cpu.c index b8f0ec92473..e86108ea2bd 100644 --- a/sys/arch/hppa/dev/cpu.c +++ b/sys/arch/hppa/dev/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.30 2009/12/29 14:10:29 jsing Exp $ */ +/* $OpenBSD: cpu.c,v 1.31 2010/03/28 16:26:47 jsing Exp $ */ /* * Copyright (c) 1998-2003 Michael Shalayeff @@ -156,3 +156,10 @@ cpuattach(parent, self, aux) printf("\n"); } + +#ifdef MULTIPROCESSOR +void +cpu_boot_secondary_processors(void) +{ +} +#endif diff --git a/sys/arch/hppa/include/cpu.h b/sys/arch/hppa/include/cpu.h index e5d686b2d98..c853e9dd93b 100644 --- a/sys/arch/hppa/include/cpu.h +++ b/sys/arch/hppa/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.63 2009/12/31 12:52:35 jsing Exp $ */ +/* $OpenBSD: cpu.h,v 1.64 2010/03/28 16:26:47 jsing Exp $ */ /* * Copyright (c) 2000-2004 Michael Shalayeff @@ -190,6 +190,10 @@ int copy_on_fault(void); void switch_trampoline(void); int cpu_dumpsize(void); int cpu_dump(void); + +#ifdef MULTIPROCESSOR +void cpu_boot_secondary_processors(void); +#endif #endif /* @@ -217,6 +221,10 @@ int cpu_dump(void); #ifdef _KERNEL #include <sys/queue.h> +#ifdef MULTIPROCESSOR +#include <sys/mplock.h> +#endif + struct blink_led { void (*bl_func)(void *, int); void *bl_arg; |