minix/lib/libc/sys-minix
Ben Gras 2d72cbec41 SYSENTER/SYSCALL support
. add cpufeature detection of both
	. use it for both ipc and kernelcall traps, using a register
	  for call number
	. SYSENTER/SYSCALL does not save any context, therefore userland
	  has to save it
	. to accomodate multiple kernel entry/exit types, the entry
	  type is recorded in the process struct. hitherto all types
	  were interrupt (soft int, exception, hard int); now SYSENTER/SYSCALL
	  is new, with the difference that context is not fully restored
	  from proc struct when running the process again. this can't be
	  done as some information is missing.
	. complication: cases in which the kernel has to fully change
	  process context (i.e. sigreturn). in that case the exit type
	  is changed from SYSENTER/SYSEXIT to soft-int (i.e. iret) and
	  context is fully restored from the proc struct. this does mean
	  the PC and SP must change, as the sysenter/sysexit userland code
	  will otherwise try to restore its own context. this is true in the
	  sigreturn case.
	. override all usage by setting libc_ipc=1
2012-09-24 15:53:43 +02:00
..
__getcwd.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
__getlogin.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_exit.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
_mcontext.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
_ucontext.c ARM support for system libraries 2012-08-28 13:49:27 -04:00
accept.c use __restrict instead of restrict 2012-03-30 17:37:53 +02:00
access.c retire _CONST, _VOLATILE, _SIZET, _ARGS, _VOID 2012-03-25 21:58:20 +02:00
bind.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
brk.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
chdir.c retire _CONST, _VOLATILE, _SIZET, _ARGS, _VOID 2012-03-25 21:58:20 +02:00
chmod.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
chown.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
chroot.c retire _CONST, _VOLATILE, _SIZET, _ARGS, _VOID 2012-03-25 21:58:20 +02:00
close.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
connect.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
cprofile.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
dup.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
dup2.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
environ.c Remove ACK EM_WSIZE/EM_PSIZE macro usage 2012-08-06 17:49:22 +02:00
execve.c AT_SUN_EXECNAME support 2012-04-26 13:32:39 +02:00
fchmod.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
fchown.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
fcntl.c retire _ANSI and <minix/ansi.h> 2012-03-25 21:58:27 +02:00
flock.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
fork.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
fpathconf.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
fstatfs.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
fstatvfs.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
fsync.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
ftruncate.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getdents.c Fix prototypes for getdents, read, readlink 2012-08-10 22:09:43 +02:00
getegid.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
geteuid.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
getgid.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
getgroups.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
getitimer.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getpeername.c use __restrict instead of restrict 2012-03-30 17:37:53 +02:00
getpgrp.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
getpid.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
getppid.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
getrlimit.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getsid.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
getsockname.c use __restrict instead of restrict 2012-03-30 17:37:53 +02:00
getsockopt.c use __restrict instead of restrict 2012-03-30 17:37:53 +02:00
gettimeofday.c use __restrict instead of restrict 2012-03-30 17:37:53 +02:00
getuid.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
init.c SYSENTER/SYSCALL support 2012-09-24 15:53:43 +02:00
ioctl.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
issetugid.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
kill.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
link.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
listen.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
loadname.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
lseek.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
lseek64.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
m_closefrom.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
Makefile.inc kernel: facility for user-visible memory 2012-07-28 20:57:38 +00:00
minix_rs.c retire _ANSI and <minix/ansi.h> 2012-03-25 21:58:27 +02:00
MISSING_SYSCALLS Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
mkdir.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
mkfifo.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
mknod.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
mmap.c VM: full munmap 2012-09-18 13:17:52 +02:00
mount.c Allow to specify the rslabel to use for a file system. 2012-07-05 14:52:16 +02:00
nanosleep.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
open.c retire _ANSI and <minix/ansi.h> 2012-03-25 21:58:27 +02:00
pathconf.c retire _CONST, _VOLATILE, _SIZET, _ARGS, _VOID 2012-03-25 21:58:20 +02:00
pipe.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
poll.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
pread.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
priority.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
ptrace.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
pwrite.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
read.c Fix prototypes for getdents, read, readlink 2012-08-10 22:09:43 +02:00
readlink.c Fix prototypes for getdents, read, readlink 2012-08-10 22:09:43 +02:00
reboot.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
recvfrom.c use __restrict instead of restrict 2012-03-30 17:37:53 +02:00
recvmsg.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
rename.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
rmdir.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sbrk.c retire PUBLIC, PRIVATE and FORWARD 2012-03-25 21:58:14 +02:00
select.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sem.c various symbol referencing fixes 2012-06-28 15:20:53 +02:00
sendmsg.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sendto.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
setgid.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
setgroups.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
setitimer.c use __restrict instead of restrict 2012-03-30 17:37:53 +02:00
setsid.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
setsockopt.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
settimeofday.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
setuid.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
shmat.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
shmctl.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
shmget.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
shutdown.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sigaction.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sigpending.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sigprocmask.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sigreturn.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sigsuspend.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sizeup.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
socket.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
socketpair.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sprofile.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
stat.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
statvfs.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
stime.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
symlink.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
sync.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
syscall.c SYSENTER/SYSCALL support 2012-09-24 15:53:43 +02:00
sysuname.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
truncate.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
umask.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
unlink.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
vectorio.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00
vfork.c various symbol referencing fixes 2012-06-28 15:20:53 +02:00
write.c Full switch to clang/ELF. Drop ack. Simplify. 2012-02-14 14:52:02 +01:00