Rev 3993 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3993 | Rev 4638 | ||
|---|---|---|---|
| Line 38... | Line 38... | ||
| 38 | * %o1 Userspace stack pointer address. |
38 | * %o1 Userspace stack pointer address. |
| 39 | * %o2 Userspace address of uarg structure. |
39 | * %o2 Userspace address of uarg structure. |
| 40 | */ |
40 | */ |
| 41 | .global switch_to_userspace |
41 | .global switch_to_userspace |
| 42 | switch_to_userspace: |
42 | switch_to_userspace: |
| - | 43 | wrpr PSTATE_PRIV_BIT, %pstate |
|
| 43 | save %o1, -STACK_WINDOW_SAVE_AREA_SIZE, %sp |
44 | save %o1, -STACK_WINDOW_SAVE_AREA_SIZE, %sp |
| 44 | flushw |
45 | flushw |
| 45 | wrpr %g0, 0, %cleanwin ! avoid information leak |
46 | wrpr %g0, 0, %cleanwin ! avoid information leak |
| 46 | 47 | ||
| 47 | mov %i2, %o0 ! uarg |
48 | mov %i2, %o0 ! uarg |