summaryrefslogtreecommitdiff
path: root/arch/x86/machine/cpu.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2014-11-17 21:44:31 +0100
committerRichard Braun <rbraun@sceen.net>2014-11-17 21:48:19 +0100
commit49a3f5db0b9d829d89c7f7a2e994ea3f5dbdec3c (patch)
tree983096d6b86dc5a46894d24d40af80bf2599c963 /arch/x86/machine/cpu.h
parent43533e334e6ec118651c2c689ddb75adb73d922b (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.h6
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.