Skip to content

Commit

Permalink
fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
abusalimov committed Mar 22, 2010
1 parent 855446f commit e2829ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/arch/sparc/kernel/trap_restore.S
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ tse_kernel_wuf:
* Calculate new WIM (circular left shifting). */
sll %t_uwinmask, 1, %g_newwim
srl %t_uwinmask, CONFIG_NWINDOWS - 1, %g_temp
wr %g_newwim, %g_temp, %wim
or %g_newwim, %g_temp, %g_newwim
// XXX severe bug was here, review other locore part. -- Eldar
// XORing impure shifted t_uwinmask's results in zero WIM value.
wr %g_newwim, %g0, %wim
! do not wait

/* Restore trap time unprivileged registers from the stack. */
Expand Down

0 comments on commit e2829ef

Please sign in to comment.