Rev 1880 | Rev 1887 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1880 | Rev 1881 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | 58 | ||
59 | /* |
59 | /* |
60 | * Setup basic runtime environment. |
60 | * Setup basic runtime environment. |
61 | */ |
61 | */ |
62 | 62 | ||
63 | flushw ! flush all but the active register window |
63 | flushw ! flush all but the active register window |
64 | wrpr %g0, 0, %tl ! TL = 0, primary context register is used |
- | |
65 | 64 | ||
66 | ! Disable interrupts and disable 32-bit address masking. |
65 | wrpr %g0, 0, %tl ! TL = 0, primary context register is used |
67 | rdpr %pstate, %g1 |
- | |
68 | and %g1, ~(PSTATE_AM_BIT|PSTATE_IE_BIT), %g1 |
- | |
69 | wrpr %g1, 0, %pstate |
- | |
70 | 66 | ||
- | 67 | wrpr %g0, PSTATE_PRIV_BIT, %pstate ! Disable interrupts and disable 32-bit address masking. |
|
- | 68 | ||
71 | wrpr %g0, 0, %pil ! intialize %pil |
69 | wrpr %g0, 0, %pil ! intialize %pil |
72 | 70 | ||
73 | /* |
71 | /* |
74 | * Copy the bootinfo structure passed from the boot loader |
72 | * Copy the bootinfo structure passed from the boot loader |
75 | * to the kernel bootinfo structure. |
73 | * to the kernel bootinfo structure. |
76 | */ |
74 | */ |