summaryrefslogtreecommitdiff
path: root/arch/x86/machine/pmap.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-01-13 00:16:09 +0100
committerRichard Braun <rbraun@sceen.net>2017-01-13 00:16:09 +0100
commitcf59c5fa63b4639777fbe28fba79cfbd63fa6d4e (patch)
tree6cd4b64fc94f7cc9c2c1f75ba298169a88248657 /arch/x86/machine/pmap.h
parent27e9a04a0a07707d7a85dc65198b4ab8f32888f6 (diff)
Replace unsigned long with uintptr_t for integer/pointer conversions
This is mostly done for the machine-independent part.
Diffstat (limited to 'arch/x86/machine/pmap.h')
-rw-r--r--arch/x86/machine/pmap.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/machine/pmap.h b/arch/x86/machine/pmap.h
index a0565d69..a344d5ee 100644
--- a/arch/x86/machine/pmap.h
+++ b/arch/x86/machine/pmap.h
@@ -177,7 +177,7 @@ int pmap_thread_init(struct thread *thread);
* This function walks the page tables to retrieve the physical address
* mapped at the given virtual address.
*/
-int pmap_kextract(unsigned long va, phys_addr_t *pap);
+int pmap_kextract(uintptr_t va, phys_addr_t *pap);
/*
* Create a pmap for a user task.
@@ -196,7 +196,7 @@ int pmap_create(struct pmap **pmapp);
*
* This function may trigger an implicit update.
*/
-int pmap_enter(struct pmap *pmap, unsigned long va, phys_addr_t pa,
+int pmap_enter(struct pmap *pmap, uintptr_t va, phys_addr_t pa,
int prot, int flags);
/*
@@ -206,7 +206,7 @@ int pmap_enter(struct pmap *pmap, unsigned long va, phys_addr_t pa,
*
* This function may trigger an implicit update.
*/
-int pmap_remove(struct pmap *pmap, unsigned long va,
+int pmap_remove(struct pmap *pmap, uintptr_t va,
const struct cpumap *cpumap);
/*
@@ -214,7 +214,7 @@ int pmap_remove(struct pmap *pmap, unsigned long va,
*
* This function may trigger an implicit update.
*/
-int pmap_protect(struct pmap *pmap, unsigned long va, int prot,
+int pmap_protect(struct pmap *pmap, uintptr_t va, int prot,
const struct cpumap *cpumap);
/*