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