diff options
| author | Jake Mannens <jake72360@gmail.com> | 2018-07-11 06:23:44 +1000 |
|---|---|---|
| committer | Jake Mannens <jake72360@gmail.com> | 2018-07-11 06:23:44 +1000 |
| commit | 6a6d5142d19638177c79c45d828f4b95db14799c (patch) | |
| tree | ef5426c5ab366010b00f2a6496aeb1cafd568c90 /include/kernel/sched.h | |
| parent | 59cac783f5ba12a47308b05b87d5cfa769473a49 (diff) | |
Memory is now allocated for a kernel stack unique to each address space
during process creation. This new kernel stack is placed at 0xFFFFFFFF,
as the last page in the 4GB address space. The base of the user's stack
has been moved down to 0xFFFFDFFF, exactly two pages below. The extra
page below the kernel's stack page will be left unmapped so as to
trigger a page fault if the kernel's stack overflows.
The initial values of the user's TSS have also been updated to reflect
the new bases of the stacks, and to ensure that the kernel's unique
stack is loaded when an interrupt occurs.
Diffstat (limited to 'include/kernel/sched.h')
0 files changed, 0 insertions, 0 deletions
