Ignore:
Timestamp:
Nov 6, 2007, 10:50:51 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
661e5de4
Parents:
ac654234
Message:

2007-11-03 Ray Xu <rayx.cn@…>

  • shared/abort/simple_abort.c: Add veneer for ARM<->Thumb shared/irq/irq_asm.S: Add veneer for ARM<->Thumb
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/shared/abort/simple_abort.c

    rac654234 rf28bbe5c  
    33 *
    44 *  COPYRIGHT (c) 2007 Ray Xu.
    5  *  mailto: Rayx at gmail dot com
     5 *  mailto: Rayx.cn at gmail dot com
    66 *
    77 *  COPYRIGHT (c) 2000 Canon Research Centre France SA.
     
    6565  if(!mode) mode="unknown";
    6666
     67#if defined(__thumb__)
     68  asm volatile (" .code 16 \n" \
     69                "adr %[tmp], arm_code \n" \
     70                "bx  %[tmp]           \n" \
     71                "nop                  \n" \
     72                ".code 32             \n" \
     73                "arm_code:            \n" \
     74                : [tmp]"=&r" (tmp) );
     75#endif
    6776  asm volatile ("       MRS  %[cpsr], cpsr \n"
    6877            "   ORR  %[tmp], %[spsr], #0xc0 \n"
Note: See TracChangeset for help on using the changeset viewer.