Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204663
b: refs/heads/master
c: b318067
h: refs/heads/master
i:
  204661: 213c10f
  204659: 7763dfe
  204655: 377bcef
v: v3
  • Loading branch information
Michal Simek committed Aug 4, 2010
1 parent 429b849 commit 4124fcc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 77f6d226050e2d8f046e268a9f84ec834172f0de
refs/heads/master: b318067e2c946a560035faf47e24a20e50696cce
15 changes: 15 additions & 0 deletions trunk/arch/microblaze/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
nop
.endm

.macro clear_ums
msrclr r11, MSR_UMS
nop
.endm

.macro clear_vms_ums
msrclr r11, MSR_VMS | MSR_UMS
nop
Expand Down Expand Up @@ -162,6 +167,14 @@
nop
.endm

.macro clear_ums
mfs r11, rmsr
nop
andni r11, r11, MSR_UMS
mts rmsr,r11
nop
.endm

.macro clear_vms_ums
mfs r11, rmsr
nop
Expand Down Expand Up @@ -526,6 +539,8 @@ C_ENTRY(sys_rt_sigreturn_wrapper):
swi r0, r1, PTO + PT_MODE; /* Was in user-mode. */ \
lwi r11, r0, TOPHYS(PER_CPU(ENTRY_SP)); \
swi r11, r1, PTO+PT_R1; /* Store user SP. */ \
/* MS: I am clearing UMS even in case when I come from kernel space */ \
clear_ums; \
2: lwi CURRENT_TASK, r0, TOPHYS(PER_CPU(CURRENT_SAVE));

C_ENTRY(full_exception_trap):
Expand Down

0 comments on commit 4124fcc

Please sign in to comment.