diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-04-02 23:56:31 -0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-04-04 02:16:37 +0200 |
commit | 4fd5e9c2c18fa71ebc6dce5fcfe077f8c9f29bab (patch) | |
tree | 10e2c1ba63c76627d79a587f666b074877c9f605 /doc | |
parent | 4096bd9d9cbdbac9b1bfce99a393295f63a88cc5 (diff) | |
download | gnumach-4fd5e9c2c18fa71ebc6dce5fcfe077f8c9f29bab.tar.gz gnumach-4fd5e9c2c18fa71ebc6dce5fcfe077f8c9f29bab.tar.bz2 gnumach-4fd5e9c2c18fa71ebc6dce5fcfe077f8c9f29bab.zip |
Align the user stack correctly for 64 bit programs.
* i386/i386/thread.h: Define USER_STACK_ALIGN which is 16-byte for 64 bit
programs as recommended by the System V AMD64 guidelines. Also define
KERNEL_STACK_ALIGN which can differ from user land.
* i386/i386/pcb.c: Use USER_STACK_ALIGN to align the bootstrap arguments and
ultimately the stack where the program starts on.
* kern/bootstrap.c: Do not align arg_len here since it will be aligned
in set_user_regs.
Message-Id: <ZCpOb6vNEfPclKPr@jupiter.tail36e24.ts.net>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions