diff options
author | Richard Braun <rbraun@sceen.net> | 2011-06-29 23:24:35 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2011-06-29 23:25:23 +0200 |
commit | 60ed9ca70c1dea0a9263faf511bef726d8f89e7d (patch) | |
tree | c4f4f6b15000b3b1594693623548de19cef9369e /test | |
parent | 55ae0e4212300d2cfdc712d363271654181f6954 (diff) |
phys: replace page frame numbers with addresses
Diffstat (limited to 'test')
-rw-r--r-- | test/test_phys.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_phys.c b/test/test_phys.c index fe94b43..700b306 100644 --- a/test/test_phys.c +++ b/test/test_phys.c @@ -45,8 +45,8 @@ int main(int argc, char *argv[]) sizeof(struct phys_free_list)); printf("sizeof(struct phys_page): %zu\n", sizeof(struct phys_page)); printf("sizeof(struct phys_seg): %zu\n", sizeof(struct phys_seg)); - printf("allocating one page\n"); - page = phys_alloc_pages(1); + printf("allocating two pages\n"); + page = phys_alloc_pages(PAGE_SIZE * 2); if (page == NULL) { fprintf(stderr, "unable to allocate memory\n"); @@ -55,8 +55,8 @@ int main(int argc, char *argv[]) phys_info(); - printf("freeing the allocated page\n"); - phys_free_pages(page, 1); + printf("freeing the allocated pages\n"); + phys_free_pages(page, PAGE_SIZE * 2); phys_info(); return 0; |