summaryrefslogtreecommitdiff
path: root/src/libk/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/libk/include')
-rw-r--r--src/libk/include/camellia/types.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libk/include/camellia/types.h b/src/libk/include/camellia/types.h
index 6fee578..0790db3 100644
--- a/src/libk/include/camellia/types.h
+++ b/src/libk/include/camellia/types.h
@@ -32,15 +32,16 @@ struct ufs_request {
int flags;
};
-struct intr_data {
- /* same order as CpuRegs.
- * notable omissions:
- * - SSE registers (usually there's no need to save them, userland can do
- * that itself if it wants) */
+typedef struct UserRegs UserRegs;
+struct UserRegs {
uint64_t r15, r14, r13, r12, r11, r10, r9, r8;
uint64_t rdi, rsi, rbp, rsp, rbx, rdx, rcx, rax;
uint64_t rip, flags;
+};
+_Static_assert(sizeof(UserRegs) == 8 * 18); /* for asm */
+struct intr_data {
+ UserRegs reg;
char msg[]; /* variable size, NUL terminated */
};