Skip to content

Commit

Permalink
CRIS: Add debug for assembler macros
Browse files Browse the repository at this point in the history
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
  • Loading branch information
jniax committed Aug 4, 2010
1 parent 7ec280c commit ac93f62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/cris/arch-v32/mm/mmu.S
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
; to handle the fault.
.macro MMU_BUS_FAULT_HANDLER handler, mmu, we, ex
.globl \handler
.type \handler,"function"
\handler:
SAVE_ALL
move \mmu, $srs ; Select MMU support register bank
Expand All @@ -52,6 +53,7 @@
nop
ba ret_from_intr
nop
.size \handler, . - \handler
.endm

; Refill handler. Three cases may occur:
Expand Down Expand Up @@ -84,6 +86,7 @@
2: .dword 0 ; last_refill_cause
.text
.globl \handler
.type \handler, "function"
\handler:
subq 4, $sp
; (The pipeline stalls for one cycle; $sp used as address in the next cycle.)
Expand Down Expand Up @@ -196,6 +199,7 @@
; Return
ba ret_from_intr
nop
.size \handler, . - \handler
.endm

; This is the MMU bus fault handlers.
Expand Down

0 comments on commit ac93f62

Please sign in to comment.