Changeset 4ceef572 in mainline for uspace/lib/c/arch/arm32/src/eabi.S


Ignore:
Timestamp:
2012-04-07T17:47:51Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a4a0f1d
Parents:
aaa77ba0
Message:

rework ARM EABI support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/arm32/src/eabi.S

    raaa77ba0 r4ceef572  
    11#
    2 # Copyright (c) 2007 Pavel Jancik
     2# Copyright (c) 2012 Martin Decky
    33# All rights reserved.
    44#
     
    3131.global __aeabi_read_tp
    3232
     33.global __aeabi_idiv
     34.global __aeabi_uidiv
     35
     36.global __aeabi_idivmod
     37.global __aeabi_uidivmod
     38
     39.global __aeabi_ldivmod
     40.global __aeabi_uldivmod
     41
    3342__aeabi_read_tp:
    3443        mov r0, r9
    3544        mov pc, lr
     45
     46__aeabi_idiv:
     47        push {sp, lr}
     48        bl __divsi3
     49        ldr lr, [sp, #4]
     50        add sp, sp, #8
     51        bx lr
     52
     53__aeabi_uidiv:
     54        push {sp, lr}
     55        bl __udivsi3
     56        ldr lr, [sp, #4]
     57        add sp, sp, #8
     58        bx lr
     59
     60__aeabi_idivmod:
     61        sub sp, sp, #8
     62        push {sp, lr}
     63        bl __divmodsi3
     64        ldr lr, [sp, #4]
     65        add sp, sp, #8
     66        pop {r1, r2}
     67        bx lr
     68
     69__aeabi_uidivmod:
     70        sub sp, sp, #8
     71        push {sp, lr}
     72        bl __udivmodsi3
     73        ldr lr, [sp, #4]
     74        add sp, sp, #8
     75        pop {r1, r2}
     76        bx lr
     77
     78__aeabi_ldivmod:
     79        sub sp, sp, #8
     80        push {sp, lr}
     81        bl __divmoddi3
     82        ldr lr, [sp, #4]
     83        add sp, sp, #8
     84        pop {r2, r3}
     85        bx lr
     86
     87__aeabi_uldivmod:
     88        sub sp, sp, #8
     89        push {sp, lr}
     90        bl __udivmoddi3
     91        ldr lr, [sp, #4]
     92        add sp, sp, #8
     93        pop {r2, r3}
     94        bx lr
Note: See TracChangeset for help on using the changeset viewer.