Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189284
b: refs/heads/master
c: bd1637d
h: refs/heads/master
v: v3
  • Loading branch information
Michal Simek committed Apr 1, 2010
1 parent e26273f commit caf6ab9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b175bcfe31cba846d8bfa35a3a4820667f7af383
refs/heads/master: bd1637d63e82aaf732ffbe907ba887fa12e82df4
18 changes: 3 additions & 15 deletions trunk/arch/microblaze/kernel/hw_exception_handler.S
Original file line number Diff line number Diff line change
Expand Up @@ -562,20 +562,16 @@ ex_handler_done:
*/
mfs r11, rpid
nop
mfs r3, rear /* Get faulting address */
nop
/* If we are faulting a kernel address, we have to use the
* kernel page tables.
*/
ori r4, r0, CONFIG_KERNEL_START
cmpu r4, r3, r4
bgti r4, ex3
ori r5, r0, CONFIG_KERNEL_START
cmpu r5, r3, r5
bgti r5, ex3
/* First, check if it was a zone fault (which means a user
* tried to access a kernel or read-protected page - always
* a SEGV). All other faults here must be stores, so no
* need to check ESR_S as well. */
mfs r4, resr
nop
andi r4, r4, 0x800 /* ESR_Z - zone protection */
bnei r4, ex2

Expand All @@ -590,8 +586,6 @@ ex_handler_done:
* tried to access a kernel or read-protected page - always
* a SEGV). All other faults here must be stores, so no
* need to check ESR_S as well. */
mfs r4, resr
nop
andi r4, r4, 0x800 /* ESR_Z */
bnei r4, ex2
/* get current task address */
Expand Down Expand Up @@ -666,8 +660,6 @@ ex_handler_done:
* R3 = ESR
*/

mfs r3, rear /* Get faulting address */
nop
RESTORE_STATE;
bri page_fault_instr_trap

Expand All @@ -682,8 +674,6 @@ ex_handler_done:
*/
mfs r11, rpid
nop
mfs r3, rear /* Get faulting address */
nop

/* If we are faulting a kernel address, we have to use the
* kernel page tables. */
Expand Down Expand Up @@ -754,8 +744,6 @@ ex_handler_done:
*/
mfs r11, rpid
nop
mfs r3, rear /* Get faulting address */
nop

/* If we are faulting a kernel address, we have to use the
* kernel page tables.
Expand Down

0 comments on commit caf6ab9

Please sign in to comment.