diff options
author | Jesper Nilsson <jesper.nilsson@axis.com> | 2010-08-03 12:10:12 -0400 |
---|---|---|
committer | Jesper Nilsson <jesper.nilsson@axis.com> | 2010-08-04 07:02:31 -0400 |
commit | ac93f62179ecb82739ab7c76857c4ae44e0cb83f (patch) | |
tree | 8d6fdaafe9695453324a035737c9ae4d905b8856 /arch/cris/arch-v32/mm/mmu.S | |
parent | 7ec280c52ca5aa1448cd16ae77dd44755413db2b (diff) |
CRIS: Add debug for assembler macros
Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Diffstat (limited to 'arch/cris/arch-v32/mm/mmu.S')
-rw-r--r-- | arch/cris/arch-v32/mm/mmu.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/cris/arch-v32/mm/mmu.S b/arch/cris/arch-v32/mm/mmu.S index f125d912e140..72727c1d8e60 100644 --- a/arch/cris/arch-v32/mm/mmu.S +++ b/arch/cris/arch-v32/mm/mmu.S | |||
@@ -38,6 +38,7 @@ | |||
38 | ; to handle the fault. | 38 | ; to handle the fault. |
39 | .macro MMU_BUS_FAULT_HANDLER handler, mmu, we, ex | 39 | .macro MMU_BUS_FAULT_HANDLER handler, mmu, we, ex |
40 | .globl \handler | 40 | .globl \handler |
41 | .type \handler,"function" | ||
41 | \handler: | 42 | \handler: |
42 | SAVE_ALL | 43 | SAVE_ALL |
43 | move \mmu, $srs ; Select MMU support register bank | 44 | move \mmu, $srs ; Select MMU support register bank |
@@ -52,6 +53,7 @@ | |||
52 | nop | 53 | nop |
53 | ba ret_from_intr | 54 | ba ret_from_intr |
54 | nop | 55 | nop |
56 | .size \handler, . - \handler | ||
55 | .endm | 57 | .endm |
56 | 58 | ||
57 | ; Refill handler. Three cases may occur: | 59 | ; Refill handler. Three cases may occur: |
@@ -84,6 +86,7 @@ | |||
84 | 2: .dword 0 ; last_refill_cause | 86 | 2: .dword 0 ; last_refill_cause |
85 | .text | 87 | .text |
86 | .globl \handler | 88 | .globl \handler |
89 | .type \handler, "function" | ||
87 | \handler: | 90 | \handler: |
88 | subq 4, $sp | 91 | subq 4, $sp |
89 | ; (The pipeline stalls for one cycle; $sp used as address in the next cycle.) | 92 | ; (The pipeline stalls for one cycle; $sp used as address in the next cycle.) |
@@ -196,6 +199,7 @@ | |||
196 | ; Return | 199 | ; Return |
197 | ba ret_from_intr | 200 | ba ret_from_intr |
198 | nop | 201 | nop |
202 | .size \handler, . - \handler | ||
199 | .endm | 203 | .endm |
200 | 204 | ||
201 | ; This is the MMU bus fault handlers. | 205 | ; This is the MMU bus fault handlers. |