summaryrefslogtreecommitdiff
path: root/test
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 /test
parent27e9a04a0a07707d7a85dc65198b4ab8f32888f6 (diff)
Replace unsigned long with uintptr_t for integer/pointer conversions
This is mostly done for the machine-independent part.
Diffstat (limited to 'test')
-rw-r--r--test/test_vm_page_fill.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_vm_page_fill.c b/test/test_vm_page_fill.c
index dc25ba8a..d20fd8ae 100644
--- a/test/test_vm_page_fill.c
+++ b/test/test_vm_page_fill.c
@@ -26,6 +26,7 @@
#include <kern/error.h>
#include <kern/list.h>
#include <kern/stddef.h>
+#include <kern/stdint.h>
#include <kern/thread.h>
#include <machine/pmap.h>
#include <test/test.h>
@@ -42,8 +43,8 @@ static void
test_write_pages(void)
{
struct vm_page *page;
- unsigned long va;
int error, flags;
+ uintptr_t va;
for (;;) {
page = vm_page_alloc(0, VM_PAGE_SEL_HIGHMEM, VM_PAGE_KERNEL);
@@ -77,8 +78,8 @@ static void
test_reset_pages(void)
{
struct vm_page *page;
- unsigned long va;
int error, flags;
+ uintptr_t va;
while (!list_empty(&test_pages)) {
page = list_first_entry(&test_pages, struct vm_page, node);