diff options
author | Richard Braun <rbraun@sceen.net> | 2014-11-17 21:44:31 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2014-11-17 21:48:19 +0100 |
commit | 49a3f5db0b9d829d89c7f7a2e994ea3f5dbdec3c (patch) | |
tree | 983096d6b86dc5a46894d24d40af80bf2599c963 /arch/x86/machine/cpu.h | |
parent | 43533e334e6ec118651c2c689ddb75adb73d922b (diff) |
vm/vm_kmem: minor interface updates
Make functions accept and return pointers instead of integers. Most
users of the kernel allocator directly use the returned addresses.
Pointers make that more practical.
Diffstat (limited to 'arch/x86/machine/cpu.h')
-rw-r--r-- | arch/x86/machine/cpu.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/machine/cpu.h b/arch/x86/machine/cpu.h index 88d2a270..4f7589d2 100644 --- a/arch/x86/machine/cpu.h +++ b/arch/x86/machine/cpu.h @@ -177,8 +177,8 @@ struct cpu { struct cpu_tss double_fault_tss; #endif /* __LP64__ */ volatile int state; - unsigned long boot_stack; - unsigned long double_fault_stack; + void *boot_stack; + void *double_fault_stack; }; /* @@ -510,7 +510,7 @@ cpu_delay(unsigned long usecs) /* * Return the address of the boot stack allocated for the current processor. */ -unsigned long cpu_get_boot_stack(void); +void * cpu_get_boot_stack(void); /* * Install an interrupt handler in the IDT. |