diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-01-20 00:47:55 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-01-20 00:47:55 +0100 |
commit | 6c2e983d328874ea41cb35bacb510bf2709a229f (patch) | |
tree | e2a5c596a3fcd1af3ed792494b78f2d503911b44 /sys/src/9/port/page.c | |
parent | b99ecee6cd8c7c9fce1ff2cfa56d5a6807a0fc7c (diff) |
kernel: apply uintptr for ulong when a pointer is stored
this change is in preparation for amd64. the systab calling
convention was also changed to return uintptr (as segattach
returns a pointer) and the arguments are now passed as
va_list which handles amd64 arguments properly (all arguments
are passed in 64bit quantities on the stack, tho the upper
part will not be initialized when the element is smaller
than 8 bytes).
this is partial. xalloc needs to be converted in the future.
Diffstat (limited to 'sys/src/9/port/page.c')
-rw-r--r-- | sys/src/9/port/page.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/src/9/port/page.c b/sys/src/9/port/page.c index f9eda93f7..d76fc4038 100644 --- a/sys/src/9/port/page.c +++ b/sys/src/9/port/page.c @@ -118,7 +118,7 @@ pagechainhead(Page *p) } Page* -newpage(int clear, Segment **s, ulong va) +newpage(int clear, Segment **s, uintptr va) { Page *p; KMap *k; @@ -409,7 +409,7 @@ cachepage(Page *p, Image *i) } void -cachedel(Image *i, ulong daddr) +cachedel(Image *i, uintptr daddr) { Page *f; @@ -434,7 +434,7 @@ retry: } Page * -lookpage(Image *i, ulong daddr) +lookpage(Image *i, uintptr daddr) { Page *f; @@ -574,7 +574,7 @@ checkpagerefs(void) nwrong = 0; for(i=0; i<np; i++){ if(palloc.pages[i].ref != ref[i]){ - iprint("page %#.8lux ref %d actual %lud\n", + iprint("page %#p ref %d actual %lud\n", palloc.pages[i].pa, palloc.pages[i].ref, ref[i]); ref[i] = 1; nwrong++; @@ -627,7 +627,7 @@ portcountpagerefs(ulong *ref, int print) continue; if(print){ if(ref[pagenumber(entry)]) - iprint("page %#.8lux in segment %#p\n", entry->pa, s); + iprint("page %#p in segment %#p\n", entry->pa, s); continue; } if(ref[pagenumber(entry)]++ == 0) |