Ignore:
Timestamp:
Jan 31, 2011, 5:41:09 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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/*
Note: See TracChangeset for help on using the changeset viewer.