mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 22:48:21 +00:00
context: zero by default
This commit is contained in:
@@ -47,6 +47,7 @@ typedef struct {
|
|||||||
extern size_t arch_xsave_size;
|
extern size_t arch_xsave_size;
|
||||||
|
|
||||||
#define CTX_INIT(x,u,interrupts) \
|
#define CTX_INIT(x,u,interrupts) \
|
||||||
|
memset(x, 0, sizeof(context_t)); \
|
||||||
if (u) { \
|
if (u) { \
|
||||||
(x)->cs = 0x23; \
|
(x)->cs = 0x23; \
|
||||||
(x)->ds = (x)->es = (x)->ss = 0x1b; \
|
(x)->ds = (x)->es = (x)->ss = 0x1b; \
|
||||||
|
|||||||
Reference in New Issue
Block a user