4.115
Last change
on this file since ae55da72 was
9b4422a2,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24
|
Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.
+ remove occurrences of two blank comment lines
next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
contain CVS Ids
+ If the processing left a blank line at the top of
a file, it was removed.
|
-
Property mode set to
100644
|
File size:
854 bytes
|
Line | |
---|
1 | /* |
---|
2 | * System call support for simulator in gdb. |
---|
3 | * Adapted from newlib 1.16.0. |
---|
4 | */ |
---|
5 | |
---|
6 | #define SYS_exit 1 |
---|
7 | #define SYS_open 2 |
---|
8 | #define SYS_close 3 |
---|
9 | #define SYS_read 4 |
---|
10 | #define SYS_write 5 |
---|
11 | #define SYS_lseek 6 |
---|
12 | #define SYS_unlink 7 |
---|
13 | #define SYS_getpid 8 |
---|
14 | #define SYS_kill 9 |
---|
15 | #define SYS_fstat 10 |
---|
16 | |
---|
17 | #define POUND # |
---|
18 | #define SYSCALL(N) mov.b POUND N,0x400 |
---|
19 | |
---|
20 | #define S(n) _sys_##n: .global _sys_##n | SYSCALL(SYS_##n) | rts |
---|
21 | |
---|
22 | S(write) |
---|
23 | S(exit) |
---|
24 | |
---|
25 | .global _abort |
---|
26 | _abort: |
---|
27 | /* This is for debuggers. The simulator stops here too. */ |
---|
28 | brk |
---|
29 | |
---|
30 | /* Else, fall back on the simulator's "kill me" option. */ |
---|
31 | #if defined(__r8c_cpu__) || defined(__m16c_cpu__) |
---|
32 | mov.w #42,r1 |
---|
33 | #else |
---|
34 | mov.w #42,r0 |
---|
35 | #endif |
---|
36 | |
---|
37 | SYSCALL(SYS_kill) |
---|
38 | |
---|
39 | /* Else, exit. */ |
---|
40 | jmp.a __exit |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.