• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/boot/at91dataflashboot/at91dataflashboot-1.05-eabi-fixes.patch
Thomas PetazzoniThomas Petazzoni committed ef81363d69b17 Mar 2010
Raw file
Source viewDiff to previous
 
1
Get at91dataflashboot to build with EABI toolchains, by providing the
2
__aeabi_uidiv and __aeabi_uidivmod symbols. The code is based on
3
U-Boot's code.
4
​
5
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
6
---
7
 _udivsi3.S |   14 ++++++++++++++
8
 1 file changed, 14 insertions(+)
9
​
10
Index: DataflashBoot-1.05/_udivsi3.S
11
===================================================================
12
--- DataflashBoot-1.05.orig/_udivsi3.S
13
+++ DataflashBoot-1.05/_udivsi3.S
14
@@ -12,8 +12,11 @@
15
    .text
16
    .globl   __udivsi3
17
    .type  __udivsi3       ,function
18
+        .globl  __aeabi_uidiv
19
+        .type   __aeabi_uidiv ,function
20
    .align  0
21
  __udivsi3      :
22
+ __aeabi_uidiv:
23
    cmp divisor, #0
24
    beq Ldiv0
25
    mov curbit, #1
26
@@ -68,6 +71,17 @@
27
    mov r0, #0          @ about as wrong as it could be
28
    ldmia   sp!, {pc}
29
    .size  __udivsi3       , . -  __udivsi3
30
+
31
+.globl __aeabi_uidivmod
32
+__aeabi_uidivmod:
33
+
34
+        stmfd   sp!, {r0, r1, ip, lr}
35
+        bl      __aeabi_uidiv
36
+        ldmfd   sp!, {r1, r2, ip, lr}
37
+        mul     r3, r0, r2
38
+        sub     r1, r1, r3
39
+        mov     pc, lr
40
+
41
 /* # 235 "libgcc1.S" */
42
 /* # 320 "libgcc1.S" */
43
 /* # 421 "libgcc1.S" */
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.