summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2024-08-02 01:20:40 +0200
committerdzwdz2024-08-02 01:20:40 +0200
commite818cab3f1fc4a3d4d0b8e2c9424fb2e7b1dff70 (patch)
tree5d59d2e0ea74253f5b265cdd542b74daca6dce5a /src/kernel/proc.h
parent1890868af4b8cf2593a4b0831e2fc69a44ec680b (diff)
*: use a generic UserRegs type everywhere I'm storing registers
mostly inspired by Plan 9's Ureg, probably obvious from the name
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index a371e04..bd4c961 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -34,7 +34,8 @@ struct Proc {
/* if NULL, refcount == 1. kmalloc'd */
uint64_t *pages_refcount;
- CpuRegs regs;
+ UserRegs regs;
+ _Alignas(16) char sse[512];
Proc *sibling, *child, *parent;
enum proc_state state;