mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:27:39 +00:00
Kernel: Fix stack for new threads on x86_64
Unlike on x86 iretq always pops rsp and ss.
This commit is contained in:
parent
8eb48039c9
commit
328d44e227
2 changed files with 8 additions and 17 deletions
|
@ -65,13 +65,14 @@ struct [[gnu::packed]] RegisterState {
|
|||
#else
|
||||
FlatPtr rflags;
|
||||
FlatPtr userspace_rsp;
|
||||
FlatPtr userspace_ss;
|
||||
#endif
|
||||
};
|
||||
|
||||
#if ARCH(I386)
|
||||
# define REGISTER_STATE_SIZE (19 * 4)
|
||||
#else
|
||||
# define REGISTER_STATE_SIZE (21 * 8)
|
||||
# define REGISTER_STATE_SIZE (22 * 8)
|
||||
#endif
|
||||
static_assert(REGISTER_STATE_SIZE == sizeof(RegisterState));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue