diff options
author | marius <marius@FreeBSD.org> | 2008-09-04 20:52:54 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2008-09-04 20:52:54 +0000 |
commit | 4f69477c32bf9f7797910367d4f1ced088c71297 (patch) | |
tree | ee6a09d4b005629bade261a278c2b2934ce62aab /sys/sparc64/include | |
parent | 2508db45354b244cdaf47becd55bd73f57ba38fc (diff) | |
download | FreeBSD-src-4f69477c32bf9f7797910367d4f1ced088c71297.zip FreeBSD-src-4f69477c32bf9f7797910367d4f1ced088c71297.tar.gz |
Use the PROM provided SUNW,set-trap-table to take over the trap
table. This is required in order to set obp-control-relinquished
within the PROM, allowing to safely read the OFW translations node.
Without this, f.e. a `ofwdump -ap` triggers a fatal reset error or
worse things on machines based on USIII and beyond.
In theory this should allow to remove touching %tba in cpu_setregs(),
in practice we seem to currently face a chicken and egg problem when
doing so however.
Diffstat (limited to 'sys/sparc64/include')
-rw-r--r-- | sys/sparc64/include/trap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sparc64/include/trap.h b/sys/sparc64/include/trap.h index e4adc78..f73340c 100644 --- a/sys/sparc64/include/trap.h +++ b/sys/sparc64/include/trap.h @@ -90,6 +90,7 @@ #define T_KERNEL 64 #ifndef LOCORE +void sun4u_set_traptable(void *tba_addr); extern const char *trap_msg[]; #endif |