x86-64: switch order of user code and data segments for syscall instruction

This commit is contained in:
Matheus
2023-05-07 17:46:26 -03:00
parent 42b28716a4
commit 9c1e92831d
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ typedef struct {
#define CTX_INIT(x,u) \
if (u) { \
(x)->cs = 0x1b; \
(x)->ds = (x)->es = (x)->ss = 0x23; \
(x)->cs = 0x23; \
(x)->ds = (x)->es = (x)->ss = 0x1b; \
} else { \
(x)->cs = 0x8; \
(x)->ds = (x)->es = (x)->ss = 0x10; \