source: rtems/c/src/lib/libbsp/v850/gdbv850sim/startup/trap.S @ 2d7ae960

Last change on this file since 2d7ae960 was 2d7ae960, checked in by Joel Sherrill <joel.sherrill@…>, on 06/11/12 at 18:37:29

v850 port: Initial addition with BSP for simulator in GDB


+ v850 does not have appear to have any optimized bit scan instructions
+ v850 does have single instructions for wap u16 and u32
+ Code path optimization preferences set
+ Add BSP variants for each GCC CPU model flag and a README

  • v850e1 variant does not work (fails during BSP initialization)

BSP for GDB v850 Simulator

+ linkcmds matches defaults in GDB simulator with RTEMS mods
+ crt1.c added from v850 newlib port for main()
+ BSP exits cleanly
+ printk and console I/O work
+ uses clock tick from IDLE task
+ Tests not requiring real clock ISR work


+ CPU Supplment chapter for v850 added

  • Property mode set to 100644
File size: 216 bytes
1/* from libgloss/v850 */
2        .text
3        .global ___trap0
5        trap 31
6        tst r10,r10
7        bz .L0
9 *  Libgloss cares about the errno from this. We don't
10        movhi hi(_errno),r0,r6
11        st.w r10,lo(_errno)[r6]
14        jmp [r31]
Note: See TracBrowser for help on using the repository browser.