summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include/cpu.h
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-05-24 00:17:34 +0000
committermarcel <marcel@FreeBSD.org>2003-05-24 00:17:34 +0000
commitd2359553a8076cb6f2ae682cf7370193bb7d5781 (patch)
tree5da9855953e80234a6247ee5d160f5e4176f9df3 /sys/ia64/include/cpu.h
parent23cc51994d12de2a932bf9ce2672d966e1d1c31b (diff)
downloadFreeBSD-src-d2359553a8076cb6f2ae682cf7370193bb7d5781.zip
FreeBSD-src-d2359553a8076cb6f2ae682cf7370193bb7d5781.tar.gz
Fix an alpha inheritance bug:
On alpha, PAL is involved in context management and after wiring the CPU (in alpha_init()) a context switch was performed to tell PAL about the context. This was bogusly brought over to ia64 where it introduced bugs, because we restored the context from a mostly uninitialized PCB. The cleanup constitutes: o Remove the unused arguments from ia64_init(). o Don't return from ia64_init(), but instead call mi_startup() directly. This reduces the amount of muckery in assembly and also allows for the next bullet: o Save our currect context prior to calling mi_startup(). The reason for this is that many threads are created from thread0 by cloning the PCB. By saving our context in the PCB, we have something sane to clone. It also ensures that a cloned thread that does not alter the context in any way will return to the saved context, where we're ready for the eventuality with a nice, user unfriendly panic(). The cleanup fixes at least the following bugs: o Entering mi_startup() with the RSE in enforced lazy mode. o Re-execution of ia64_init() in certain "lab" conditions. While here, add proper unwind directives to __start() so that the unwind knows it has reached the bottom of the (call) stack. Approved by: re@ (blanket)
Diffstat (limited to 'sys/ia64/include/cpu.h')
-rw-r--r--sys/ia64/include/cpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/include/cpu.h b/sys/ia64/include/cpu.h
index c2bd78c..cc3f5f9 100644
--- a/sys/ia64/include/cpu.h
+++ b/sys/ia64/include/cpu.h
@@ -114,7 +114,7 @@ long fswintrberr(void); /* MAGIC */
int ia64_highfp_drop(struct thread *);
int ia64_highfp_load(struct thread *);
int ia64_highfp_save(struct thread *);
-void ia64_init(u_int64_t, u_int64_t);
+void ia64_init(void);
int ia64_pa_access(u_long);
void init_prom_interface(struct rpb*);
void interrupt(u_int64_t, struct trapframe *);
OpenPOWER on IntegriCloud