From af2f9184e03015dc3b188ea437bbf496638000ce Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 11 Sep 2021 18:04:57 +0200 Subject: replace `user_ptr` with a linux-style `__user` annotation --- src/kernel/arch/i386/registers.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/kernel/arch/i386/registers.h') diff --git a/src/kernel/arch/i386/registers.h b/src/kernel/arch/i386/registers.h index cca374d..fb369b7 100644 --- a/src/kernel/arch/i386/registers.h +++ b/src/kernel/arch/i386/registers.h @@ -1,13 +1,16 @@ #pragma once +#include #include struct registers { /* those are in the order of pushad/popad - so you can load/save this * struct in (almost) one instruction */ - uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax; + uint32_t edi, esi; + userptr_t ebp, esp; + uint32_t ebx, edx, ecx, eax; // not part of pushad/popad, but still useful - uint32_t eip; + userptr_t eip; } __attribute__((__packed__)); // saves a return value according to the SysV ABI -- cgit v1.2.3