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