aboutsummaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorLuca Dariz <luca@orpolo.org>2023-02-12 18:28:16 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-12 19:07:26 +0100
commitf8d840ae46e014d3c65021e169c32e5e39c9ab5a (patch)
tree9f3172a158b7cb64515c80845d6c0f706cc5e565 /i386
parent1956a5e0f56793e11edc8fcf0a66fb68c1e4049d (diff)
downloadgnumach-f8d840ae46e014d3c65021e169c32e5e39c9ab5a.tar.gz
gnumach-f8d840ae46e014d3c65021e169c32e5e39c9ab5a.tar.bz2
gnumach-f8d840ae46e014d3c65021e169c32e5e39c9ab5a.zip
extend data types to hold a 64-bit address
* i386/i386/trap.c: change from int to a proper type to hold a register value * x86_64/locore.S: use 64-bit register to avoid address truncation Message-Id: <20230212172818.1511405-8-luca@orpolo.org>
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/trap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/i386/i386/trap.c b/i386/i386/trap.c
index 1e04ae7d..9a35fb42 100644
--- a/i386/i386/trap.c
+++ b/i386/i386/trap.c
@@ -154,9 +154,9 @@ char *trap_name(unsigned int trapnum)
*/
void kernel_trap(struct i386_saved_state *regs)
{
- int code;
- int subcode;
- int type;
+ unsigned long code;
+ unsigned long subcode;
+ unsigned long type;
vm_map_t map;
kern_return_t result;
thread_t thread;
@@ -357,9 +357,9 @@ dump_ss(regs);
int user_trap(struct i386_saved_state *regs)
{
int exc = 0; /* Suppress gcc warning */
- int code;
- int subcode;
- int type;
+ unsigned long code;
+ unsigned long subcode;
+ unsigned long type;
thread_t thread = current_thread();
#ifdef __x86_64__