mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
x86-64: fix user context init
This commit is contained in:
@@ -44,8 +44,8 @@ typedef struct {
|
||||
|
||||
#define CTX_INIT(x,u) \
|
||||
if (u) { \
|
||||
(x)->cs = 0x18; \
|
||||
(x)->ds = (x)->es = (x)->ss = 0x20; \
|
||||
(x)->cs = 0x1b; \
|
||||
(x)->ds = (x)->es = (x)->ss = 0x23; \
|
||||
} else { \
|
||||
(x)->cs = 0x8; \
|
||||
(x)->ds = (x)->es = (x)->ss = 0x10; \
|
||||
|
||||
Reference in New Issue
Block a user