2 * Initial implementation:
3 * Copyright (c) 2001 Robert Drehmel
6 * As long as the above copyright statement and this notice remain
7 * unchanged, you can do what ever you want with this file.
10 #include <machine/asm.h>
11 __FBSDID("$FreeBSD$");
15 #include <machine/frame.h>
16 #include <machine/fsr.h>
17 #include <machine/intr_machdep.h>
18 #include <machine/pstate.h>
20 #define PAGE_SIZE 8192
23 #define STACK_SIZE (2 * PAGE_SIZE)
26 /* Limit interrupts. */
27 wrpr %g0, PIL_TICK - 1, %pil
30 * PSTATE: privileged, interrupts enabled, floating point
33 wrpr %g0, PSTATE_PRIV | PSTATE_IE | PSTATE_PEF, %pstate
34 wr %g0, FPRS_FEF, %fprs
36 setx stack + STACK_SIZE - SPOFF - CCFSZ, %l7, %l6
42 .comm stack, STACK_SIZE, 32