]> Zhao Yanbai Git Server - minix.git/commit
Removing CSU patches 41/941/2
authorLionel Sambuc <lionel@minix3.org>
Fri, 13 Sep 2013 18:12:22 +0000 (20:12 +0200)
committerLionel Sambuc <lionel@minix3.org>
Tue, 18 Feb 2014 10:25:02 +0000 (11:25 +0100)
commitcfd3379bb1a183dd1bde0b190f2c94a9e0223fa9
tree5f767b80ca1dc9c0d7a696b6033b9d664d6469f0
parent5d04b92e0662f11c8a776b466d4bbcb5d967ddef
Removing CSU patches

 * Removed startup code patches in lib/csu regarding kernel to userland
   ABI.

 * Aligned stack layout on NetBSD stack layout.

 * Generate valid stack pointers instead of offsets by taking into account
   _minix_kerninfo->kinfo->user_sp.

 * Refactored stack generation, by moving part of execve in two
   functions {minix_stack_params(), minix_stack_fill()} and using them
   in execve(), rs and vm.

 * Changed load offset of rtld (ld.so) to:
      execi.args.stack_high - execi.args.stack_size - 0xa00000
   which is 10MB below the main executable stack.

Change-Id: I839daf3de43321cded44105634102d419cb36cec
29 files changed:
include/lib.h
include/minix/com.h
include/minix/ipc.h
include/minix/syslib.h
kernel/arch/earm/memory.c
kernel/arch/earm/protect.c
kernel/arch/i386/memory.c
kernel/arch/i386/protect.c
kernel/proto.h
kernel/system/do_exec.c
lib/csu/arch/earm/crt0.S
lib/csu/arch/i386/crt0.S
lib/csu/common/crt0-common.c
lib/libc/sys-minix/Makefile.inc
lib/libc/sys-minix/execve.c
lib/libc/sys-minix/stack_utils.c [new file with mode: 0644]
lib/libexec/exec_general.c
lib/libexec/libexec.h
lib/libminc/Makefile
lib/libsys/sys_exec.c
servers/pm/exec.c
servers/pm/main.c
servers/pm/proto.h
servers/rs/exec.c
servers/vfs/exec.c
servers/vfs/main.c
servers/vfs/proto.h
servers/vm/main.c
test/Makefile