remove unneeded __SUPPORT macros

This commit is contained in:
Lephenixnoir 2021-05-09 22:11:49 +02:00
parent e719af2f63
commit f58187c55e
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
20 changed files with 7 additions and 47 deletions

View file

@ -1,5 +1,5 @@
#ifndef __ASM_CASIO_TRAPA_H__ #ifndef __FXLIBC_TARGET_CASIOWIN_CG_TRAPA_H__
# define __ASM_CASIO_TRAPA_H__ # define __FXLIBC_TARGET_CASIOWIN_CG_TRAPA_H__
/* /*
** Normally the SH3/SH4 processor provide a "trapa" instruction which allow ** Normally the SH3/SH4 processor provide a "trapa" instruction which allow
@ -10,7 +10,6 @@
** The convention whant that the user jump into the syscall trampoline code ** The convention whant that the user jump into the syscall trampoline code
** located at 0x80010070 for fx9860g and 0x80020070 for fxcg20/50. ** located at 0x80010070 for fx9860g and 0x80020070 for fxcg20/50.
*/ */
#ifdef __SUPPORT_CASIO_ABI_FXCG50
# define casio_trapa(id) \ # define casio_trapa(id) \
mov.l syscall_table, r2 ;\ mov.l syscall_table, r2 ;\
mov.l syscall_id, r0 ;\ mov.l syscall_id, r0 ;\
@ -19,6 +18,5 @@
.align 4 ;\ .align 4 ;\
syscall_table: .long 0x80020070 ;\ syscall_table: .long 0x80020070 ;\
syscall_id: .long id syscall_id: .long id
#endif
#endif /*__ASM__CASIO_TRAPA_H__*/ #endif /*__FXLIBC_TARGET_CASIOWIN_CG_TRAPA_H__*/

View file

@ -1,5 +1,5 @@
#ifndef __FXLIBC_TARGET_CASIOWIN-FX_TRAPA_H__ #ifndef __FXLIBC_TARGET_CASIOWIN_FX_TRAPA_H__
# define __FXLIBC_TARGET_CASIOWIN-FX_TRAPA_H__ # define __FXLIBC_TARGET_CASIOWIN_FX_TRAPA_H__
/* /*
** Normally the SH3/SH4 processor provide a "trapa" instruction which allow ** Normally the SH3/SH4 processor provide a "trapa" instruction which allow
@ -10,7 +10,6 @@
** The convention whant that the user jump into the syscall trampoline code ** The convention whant that the user jump into the syscall trampoline code
** located at 0x80010070 for fx9860g and 0x80020070 for fxcg20/50. ** located at 0x80010070 for fx9860g and 0x80020070 for fxcg20/50.
*/ */
#ifdef __SUPPORT_CASIO_ABI_FX9860G
# define casio_trapa(id) \ # define casio_trapa(id) \
mov.l syscall_table, r2 ;\ mov.l syscall_table, r2 ;\
mov.l syscall_id, r0 ;\ mov.l syscall_id, r0 ;\
@ -19,6 +18,5 @@
.align 4 ;\ .align 4 ;\
syscall_table: .long 0x80010070 ;\ syscall_table: .long 0x80010070 ;\
syscall_id: .long id syscall_id: .long id
#endif
#endif /*__FXLIBC_TARGET_CASIOWIN-FX_TRAPA_H__*/ #endif /*__FXLIBC_TARGET_CASIOWIN_FX_TRAPA_H__*/

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _kill .global _kill
@ -17,4 +16,3 @@ _kill:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _signal .global _signal
@ -16,4 +15,3 @@ _signal:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _free .global _free
@ -20,4 +19,3 @@ _free:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _malloc .global _malloc
@ -20,4 +19,3 @@ _malloc:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _realloc .global _realloc
@ -40,4 +39,3 @@ call_realloc:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _open .global _open
@ -18,4 +17,3 @@ _open:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _wait .global _wait
@ -16,4 +15,3 @@ _wait:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _waitpid .global _waitpid
@ -26,4 +25,3 @@ _waitpid:
rts rts
nop nop
.end .end
#endif

View file

@ -1,6 +1,5 @@
#ifdef __SUPPORT_CASIO_ABI_FX9860G
#include <bits/unistd_32.h> #include <bits/unistd_32.h>
#include <bits/__trapa.h> #include <bits/trapa.h>
.text .text
.global _close .global _close
.type _close, @function .type _close, @function
@ -17,4 +16,3 @@ _close:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _close .global _close
@ -16,4 +15,3 @@ _close:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _fork_execve .global _fork_execve
@ -21,4 +20,3 @@ _fork_execve:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _getpgid .global _getpgid
@ -15,4 +14,3 @@ _getpgid:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _getpid .global _getpid
@ -15,4 +14,3 @@ _getpid:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _getppid .global _getppid
@ -15,4 +14,3 @@ _getppid:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _lseek .global _lseek
@ -18,4 +17,3 @@ _lseek:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _read .global _read
@ -16,4 +15,3 @@ _read:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _setpgid .global _setpgid
@ -17,4 +16,3 @@ _setpgid:
rts rts
nop nop
.end .end
#endif

View file

@ -1,4 +1,3 @@
#ifdef __SUPPORT_VHEX_KERNEL
#include <bits/asm/unistd_32.h> #include <bits/asm/unistd_32.h>
.text .text
.global _write .global _write
@ -16,4 +15,3 @@ _write:
rts rts
nop nop
.end .end
#endif