32,20 → 32,6 |
|
.text |
|
/* TODO: remove it as soon as there is a scheduler for sun4v. It is here only to make the code compilable/ */ |
|
.global write_to_ag_g6 |
write_to_ag_g6: |
|
.global write_to_ag_g7 |
write_to_ag_g7: |
|
.global write_to_ig_g6 |
write_to_ig_g6: |
|
.global read_from_ag_g7 |
read_from_ag_g7: |
|
/** Switch to userspace. |
* |
* %o0 Userspace entry address. |
54,7 → 40,6 |
*/ |
.global switch_to_userspace |
switch_to_userspace: |
#if 0 |
save %o1, -STACK_WINDOW_SAVE_AREA_SIZE, %sp |
flushw |
wrpr %g0, 0, %cleanwin ! avoid information leak |
90,4 → 75,3 |
wrpr %g0, WSTATE_OTHER(0) | WSTATE_NORMAL(1), %wstate |
|
done ! jump to userspace |
#endif |