Changeset 0ef1009 in rtems


Ignore:
Timestamp:
Jan 31, 2011, 5:41:09 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
9b677cc9
Parents:
0e867af1
Message:

2011-01-31 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, console/console-io.c, include/bsp.h, start/start.S: Create dedicated bsp_reset() and clean up.
Location:
c/src/lib/libbsp/m32r/m32rsim
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m32r/m32rsim/ChangeLog

    r0e867af1 r0ef1009  
     12011-01-31      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, console/console-io.c, include/bsp.h,
     4        start/start.S: Create dedicated bsp_reset() and clean up.
     5
    162010-05-31      Joel Sherrill <joel.sherrilL@OARcorp.com>
    27
  • c/src/lib/libbsp/m32r/m32rsim/Makefile.am

    r0e867af1 r0ef1009  
    3333    ../../shared/bspgetworkarea.c ../../shared/bsppost.c \
    3434    ../../shared/bspstart.c ../../shared/bootcard.c ../../shared/sbrk.c \
    35     ../../shared/gnatinstallhandler.c
     35    ../../shared/gnatinstallhandler.c startup/bspreset.c
    3636clock_SOURCES = ../../shared/clock_driver_simidle.c
    3737console_SOURCES = ../../shared/console-polled.c console/console-io.c \
  • c/src/lib/libbsp/m32r/m32rsim/configure.ac

    r0e867af1 r0ef1009  
    1616RTEMS_PROG_CCAS
    1717
    18 RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
     18RTEMS_BSP_CLEANUP_OPTIONS(0, 1)
    1919
    2020# Explicitly list all Makefiles here
  • c/src/lib/libbsp/m32r/m32rsim/console/console-io.c

    r0e867af1 r0ef1009  
    11/*
    2  *  This file contains the hardware specific portions of the TTY driver
    3  *  for the serial ports on the erc32.
    4  *
    5  *  COPYRIGHT (c) 1989-2008.
     2 *  COPYRIGHT (c) 1989-2011.
    63 *  On-Line Applications Research Corporation (OAR).
    74 *
     
    1815#include <assert.h>
    1916#include <reent.h>
    20 
    21 /* From Newlib 1.16.0 */
    22 #define SYS_exit        1
    23 #define SYS_open        2
    24 #define SYS_close       3
    25 #define SYS_read        4
    26 #define SYS_write       5
    27 #define SYS_lseek       6
    28 #define SYS_unlink      7
    29 #define SYS_getpid      8
    30 #define SYS_kill        9
    31 #define SYS_fstat       10
    32 
    33 int __trap0 (int function, int p1, int p2, int p3, struct _reent *r);
    34 
    35 #define TRAP0(f, p1, p2, p3) \
    36 __trap0 (f, (int) (p1), (int) (p2), (int) (p3), _REENT)
    37 
    38 void sys_exit(void)
    39 {
    40   TRAP0(SYS_exit, 0, 0, 0);
    41 }
    4217
    4318/*
  • c/src/lib/libbsp/m32r/m32rsim/include/bsp.h

    r0e867af1 r0ef1009  
    3232#define BSP_IDLE_TASK_BODY clock_driver_sim_idle_body
    3333
     34/* Trap support interface from Newlib 1.16.0 */
     35#define SYS_exit        1
     36#define SYS_open        2
     37#define SYS_close       3
     38#define SYS_read        4
     39#define SYS_write       5
     40#define SYS_lseek       6
     41#define SYS_unlink      7
     42#define SYS_getpid      8
     43#define SYS_kill        9
     44#define SYS_fstat       10
     45
     46int __trap0 (int function, int p1, int p2, int p3, struct _reent *r);
     47
     48#define TRAP0(f, p1, p2, p3) \
     49  __trap0 (f, (int) (p1), (int) (p2), (int) (p3), _REENT)
     50
    3451/*
    3552 *  Simple spin delay in microsecond units for device drivers.
  • c/src/lib/libbsp/m32r/m32rsim/start/start.S

    r0e867af1 r0ef1009  
    5353        ldi     r0, #0           ; r0 = argc
    5454        bl      boot_card
    55         bl      sys_exit
    5655
    5756# If that fails just loop.
Note: See TracChangeset for help on using the changeset viewer.