mes/lib/x86_64-mes
Jan Nieuwenhuizen 4e89d924e2
mescc: Mes C Library: Support gcc-4.6.4: Add mmap, munmap.
* include/linux/x86/syscall.h (SYS_mmap, SYS_munmap): New macro.
* include/linux/x86_64/syscall.h (SYS_mmap, SYS_munmap): New macro.
* include/sys/mman.h (MAP_SHARED, MAP_PRIVATE, MAP_ANONYMOUS,
MAP_POPULATE, MAP_ANON, MAP_FAILED): New macro.
(mmap, munmap): Declare.
* lib/linux/x86-mes-gcc/mes.c (_sys_call6): New function.
* lib/linux/x86-mes/mes.c (__sys_call6): New function.
(_sys_call6): New function.
* lib/linux/x86_64-mes-gcc/mes.c (_sys_call6): New function.
* lib/linux/x86_64-mes/mes.c (__sys_call): Cater for 6 syscall parameters.
(_sys_call6): New function.
* lib/x86-mes/x86.M1 (pop____%ebp): New macro.
* lib/x86_64-mes/x86_64.M1 (mov____0x8(%rbp),%r9): New macro.
* lib/linux/mmap.c: New file.
* lib/linux/munmap.c: New file.
* build-aux/configure-lib.sh (libc_gnu_SOURCES): Add them.
2019-09-09 18:34:26 +02:00
..
elf64-0exit-42.hex2 porting: Add x86_64 scaffold: exit and write in assembly. 2019-06-23 21:23:34 +02:00
elf64-0header.hex2 porting: Add x86_64 scaffold: exit and write in assembly. 2019-06-23 21:23:34 +02:00
elf64-0hello-mes.hex2 porting: Add x86_64 scaffold: exit and write in assembly. 2019-06-23 21:23:34 +02:00
elf64-body-exit-42.hex2 porting: Add x86_64 scaffold: exit and write in assembly. 2019-06-23 21:23:34 +02:00
elf64-body-hello-mes.hex2 porting: Add x86_64 scaffold: exit and write in assembly. 2019-06-23 21:23:34 +02:00
elf64-footer-single-main.hex2 Fix typo in stage0 copyright headers. 2019-03-27 13:19:53 +01:00
elf64-header.hex2 porting: Add x86_64 scaffold: exit and write in assembly. 2019-06-23 21:23:34 +02:00
x86_64.M1 mescc: Mes C Library: Support gcc-4.6.4: Add mmap, munmap. 2019-09-09 18:34:26 +02:00