diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2010-05-19 13:10:25 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2010-05-19 13:10:25 +0000 |
commit | b55cd01222e32683cdbcdc39fad006e485e69535 (patch) | |
tree | 2c029e5c9d7b805eb91432322c23a693bd1399a1 /sys/arch/hppa/include | |
parent | a5b90350387baa303cd9c624c294afc310b07e50 (diff) |
Spin up secondary CPUs on hppa multiprocessor kernels. At this stage we
enable clock interrupts, however do not allow processes to be scheduled
onto the secondary CPUs - hopefully we can change this shortly...
ok kettenis@
Diffstat (limited to 'sys/arch/hppa/include')
-rw-r--r-- | sys/arch/hppa/include/cpu.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/hppa/include/cpu.h b/sys/arch/hppa/include/cpu.h index 40b3af0414b..c404b0bf859 100644 --- a/sys/arch/hppa/include/cpu.h +++ b/sys/arch/hppa/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.70 2010/05/16 14:54:43 jsing Exp $ */ +/* $OpenBSD: cpu.h,v 1.71 2010/05/19 13:10:24 jsing Exp $ */ /* * Copyright (c) 2000-2004 Michael Shalayeff @@ -79,8 +79,10 @@ struct cpu_info { struct device *ci_dev; int ci_cpuid; hppa_hpa_t ci_hpa; + volatile int ci_flags; struct proc *ci_curproc; + paddr_t ci_spinup_stack; register_t ci_psw; /* Processor Status Word. */ volatile int ci_cpl; @@ -94,10 +96,12 @@ struct cpu_info { u_int32_t ci_randseed; } __attribute__((__aligned__(64))); +#define CPUF_RUNNING 0x0001 /* CPU is running. */ + #ifdef MULTIPROCESSOR -#define HPPA_MAXCPUS 1 +#define HPPA_MAXCPUS 4 #else -#define HPPA_MAXCPUS 4 +#define HPPA_MAXCPUS 1 #endif extern struct cpu_info cpu_info[HPPA_MAXCPUS]; |