Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264649
b: refs/heads/master
c: 01885bc
h: refs/heads/master
i:
  264647: e0ed4ea
v: v3
  • Loading branch information
Laura Abbott authored and Russell King committed Oct 17, 2011
1 parent 13a7d28 commit ea8fce8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4bdad983a4a4fb509aba8b102a2233f0ea1d7681
refs/heads/master: 01885bc5ce5a58e043e00f3f295301ef1b9a0fc4
8 changes: 8 additions & 0 deletions trunk/arch/arm/lib/div64.S
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/

#include <linux/linkage.h>
#include <asm/unwind.h>

#ifdef __ARMEB__
#define xh r0
Expand Down Expand Up @@ -44,6 +45,7 @@
*/

ENTRY(__do_div64)
UNWIND(.fnstart)

@ Test for easy paths first.
subs ip, r4, #1
Expand Down Expand Up @@ -189,7 +191,12 @@ ENTRY(__do_div64)
moveq yh, xh
moveq xh, #0
moveq pc, lr
UNWIND(.fnend)

UNWIND(.fnstart)
UNWIND(.pad #4)
UNWIND(.save {lr})
Ldiv0_64:
@ Division by 0:
str lr, [sp, #-8]!
bl __div0
Expand All @@ -200,4 +207,5 @@ ENTRY(__do_div64)
mov xh, #0
ldr pc, [sp], #8

UNWIND(.fnend)
ENDPROC(__do_div64)

0 comments on commit ea8fce8

Please sign in to comment.