Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359119
b: refs/heads/master
c: a81252d
h: refs/heads/master
i:
  359117: 80cc32a
  359115: 0ce0ad7
  359111: f1d237c
  359103: b555320
v: v3
  • Loading branch information
Jonas Bonn committed Feb 14, 2013
1 parent 6807308 commit c055c79
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 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: 7f81ea7e28c3e4e5b762111dc676b24152f85a3a
refs/heads/master: a81252d75e14cc2cf0ee45078ef143562a0bc279
14 changes: 12 additions & 2 deletions trunk/arch/openrisc/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,17 @@ EXCEPTION_ENTRY(_bus_fault_handler)
l.nop

/* ---[ 0x300: Data Page Fault exception ]------------------------------- */
EXCEPTION_ENTRY(_dtlb_miss_page_fault_handler)
l.and r5,r5,r0
l.j 1f
l.nop

EXCEPTION_ENTRY(_data_page_fault_handler)
/* set up parameters for do_page_fault */
l.ori r5,r0,0x300 // exception vector
1:
l.addi r3,r1,0 // pt_regs
/* r4 set be EXCEPTION_HANDLE */ // effective address of fault
l.ori r5,r0,0x300 // exception vector

/*
* __PHX__: TODO
Expand Down Expand Up @@ -276,12 +281,17 @@ EXCEPTION_ENTRY(_data_page_fault_handler)
l.nop

/* ---[ 0x400: Insn Page Fault exception ]------------------------------- */
EXCEPTION_ENTRY(_itlb_miss_page_fault_handler)
l.and r5,r5,r0
l.j 1f
l.nop

EXCEPTION_ENTRY(_insn_page_fault_handler)
/* set up parameters for do_page_fault */
l.ori r5,r0,0x400 // exception vector
1:
l.addi r3,r1,0 // pt_regs
/* r4 set be EXCEPTION_HANDLE */ // effective address of fault
l.ori r5,r0,0x400 // exception vector
l.ori r6,r0,0x0 // !write access

/* call fault.c handler in or32/mm/fault.c */
Expand Down
6 changes: 2 additions & 4 deletions trunk/arch/openrisc/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,7 @@ d_pte_not_present:
EXCEPTION_LOAD_GPR4
EXCEPTION_LOAD_GPR5
EXCEPTION_LOAD_GPR6
l.j _dispatch_do_dpage_fault
l.nop
EXCEPTION_HANDLE(_dtlb_miss_page_fault_handler)

/* ==============================================[ ITLB miss handler ]=== */
ENTRY(itlb_miss_handler)
Expand Down Expand Up @@ -1192,8 +1191,7 @@ i_pte_not_present:
EXCEPTION_LOAD_GPR4
EXCEPTION_LOAD_GPR5
EXCEPTION_LOAD_GPR6
l.j _dispatch_do_ipage_fault
l.nop
EXCEPTION_HANDLE(_itlb_miss_page_fault_handler)

/* ==============================================[ boot tlb handlers ]=== */

Expand Down

0 comments on commit c055c79

Please sign in to comment.