Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45334
b: refs/heads/master
c: db6ccbb
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Jan 6, 2007
1 parent 1bb81fe commit d698d63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: 4ac941d2d04ef26a91adf677f3a371818596305d
refs/heads/master: db6ccbb61c1291c8aaefadcc8304444f27eeb88d
12 changes: 8 additions & 4 deletions trunk/arch/arm/kernel/entry-armv.S
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ __und_usr:
usr_entry

tst r3, #PSR_T_BIT @ Thumb mode?
bne fpundefinstr @ ignore FP
bne __und_usr_unknown @ ignore FP
sub r4, r2, #4

@
Expand All @@ -448,7 +448,7 @@ __und_usr:
@
1: ldrt r0, [r4]
adr r9, ret_from_exception
adr lr, fpundefinstr
adr lr, __und_usr_unknown
@
@ fallthrough to call_fpe
@
Expand Down Expand Up @@ -476,7 +476,9 @@ __und_usr:
* Emulators may wish to make use of the following registers:
* r0 = instruction opcode.
* r2 = PC+4
* r9 = normal "successful" return address
* r10 = this threads thread_info structure.
* lr = unrecognised instruction return address
*/
call_fpe:
tst r0, #0x08000000 @ only CDP/CPRT/LDC/STC have bit 27
Expand Down Expand Up @@ -545,10 +547,12 @@ do_fpe:

.data
ENTRY(fp_enter)
.word fpundefinstr
.word no_fp
.text

fpundefinstr:
no_fp: mov pc, lr

__und_usr_unknown:
mov r0, sp
adr lr, ret_from_exception
b do_undefinstr
Expand Down

0 comments on commit d698d63

Please sign in to comment.