mes/lib/linux
Jan (janneke) Nieuwenhuizen c8294803cd x86_64: build: Cater for M2-Planet.
* build-aux/cflags.sh: Set cc_cpu.
* build-aux/config.sh.in (cc_cpu): Export.
* build-aux/export.make (cc_cpu): Likewise.
* kaem.arm (cc_cpu): New variable.
* kaem.x86 (cc_cpu): New variable.
* kaem.run (cc_cpu): New variable.  Define __<cc_cpu>__.
* scaffold/argv.kaem (cc_cpu): Likewise.  Define __linux__
* scaffold/global-array.kaem (cc_cpu): Likewise.
* scaffold/hello.kaem (cc_cpu): Likewise.
* scaffold/local-array.kaem (cc_cpu): Likewise.
* scaffold/local-static-array.kaem (cc_cpu): Likewise.
* scaffold/main.kaem (cc_cpu): Likewise.
* scaffold/read.kaem (cc_cpu): Likewise.
* kaem.x86_64: New file.
lib/m2/x86_64/ELF-x86_64.hex2,
lib/m2/x86_64/x86_64_defs.M1: New files, imported from M2Libc.
lib/linux/x86_64-mes-m2/_exit.c,
lib/linux/x86_64-mes-m2/_write.c,
lib/linux/x86_64-mes-m2/crt1.M1,
lib/linux/x86_64-mes-m2/crt1.c,
lib/linux/x86_64-mes-m2/syscall.c: New files, adapted for M2-Planet
calling convention from ...
* lib/linux/x86_64-mes-mescc: ... here.
* build-aux/build.sh.in: Also allow kaem build for x86_64.
* include/mes/lib-mini.h[__M2__]: Define as sizeof (void*).
* include/mes/mes.h[__M2__](M2_CELL_SIZE): Define as sizeof (struct scm).
* lib/x86_64-mes/x86_64.M1 (add____$i8,%rbp, mov____%rdi,%rbp): New
defines.
* src/posix.c (TIME_UNITS_PER_SECOND): Cater for 64bit M2-Planet.
2023-09-12 11:04:02 +02:00
..
arm-mes Add ARM linker support files. 2020-06-02 20:27:52 +02:00
arm-mes-gcc mescc: Mes C Library: ARM: syscall.c: Inline fake asm. 2021-01-23 08:43:46 +01:00
arm-mes-m2 ARM: build: Cater for M2-Planet. 2022-04-30 22:51:42 +02:00
arm-mes-mescc mescc: Mes C Library: Split _exit.c, _write.c from mini.c. 2021-01-23 08:43:45 +01:00
x86-mes build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
x86-mes-gcc mescc: Mes C Library: crt: Support more than 255 command line parameters. 2021-05-02 14:22:21 +02:00
x86-mes-m2 kaem: scaffold/read.kaem. 2020-07-15 22:27:57 +02:00
x86-mes-mescc mescc: Mes C Library: crt: Support more than 255 command line parameters. 2021-05-02 14:22:21 +02:00
x86_64-mes build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
x86_64-mes-gcc mescc: Mes C Library: Split _exit.c, _write.c from mini.c. 2021-01-23 08:43:45 +01:00
x86_64-mes-m2 x86_64: build: Cater for M2-Planet. 2023-09-12 11:04:02 +02:00
x86_64-mes-mescc mescc: Mes C Library: Split _exit.c, _write.c from mini.c. 2021-01-23 08:43:45 +01:00
_getcwd.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
_open3.c lib: linux/_open3: Support M2-Planet. 2023-05-02 10:22:45 +02:00
_read.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
access.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
brk.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
chdir.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
chmod.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
clock_gettime.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
close.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
dup.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
dup2.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
execve.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
fcntl.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
fork.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
fstat.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
fsync.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
getdents.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
getegid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
geteuid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
getgid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
getpid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
getppid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
getrusage.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
gettimeofday.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
getuid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
ioctl.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
ioctl3.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
kill.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
link.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
lseek.c kaem.run: Remove --bootstrap-mode. 2023-05-03 08:03:48 +02:00
lstat.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
malloc.c kaem: read: Remove --bootstrap-mode. 2023-05-02 10:22:45 +02:00
mkdir.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
mknod.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
nanosleep.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
open.c kaem.run: Remove --bootstrap-mode. 2023-05-03 08:03:48 +02:00
pipe.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
read.c kaem: read: Remove --bootstrap-mode. 2023-05-02 10:22:45 +02:00
readlink.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
rename.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
rmdir.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
setgid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
settimer.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
setuid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
signal.c lib: Fix compile warnings. 2023-02-12 23:02:24 +01:00
sigprogmask.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
stat.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
symlink.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
time.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
unlink.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
wait4.c lib: linux: Add wait4. 2023-05-03 08:04:32 +02:00
waitpid.c lib: linux: Add wait4. 2023-05-03 08:04:32 +02:00