summaryrefslogtreecommitdiff
path: root/kalloc.c
diff options
context:
space:
mode:
authorrsc <rsc>2006-07-17 01:52:13 +0000
committerrsc <rsc>2006-07-17 01:52:13 +0000
commitb5ee516575b4d2f1fd7de014230fee7cf8b6b538 (patch)
tree158b9cf0466e66ac80c96d948a12ae67afcb1d9a /kalloc.c
parent857d60cb0c56df19a5125584c677aa56c4488e98 (diff)
downloadxv6-labs-b5ee516575b4d2f1fd7de014230fee7cf8b6b538.tar.gz
xv6-labs-b5ee516575b4d2f1fd7de014230fee7cf8b6b538.tar.bz2
xv6-labs-b5ee516575b4d2f1fd7de014230fee7cf8b6b538.zip
add uint and standardize on typedefs instead of unsigned
Diffstat (limited to 'kalloc.c')
-rw-r--r--kalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kalloc.c b/kalloc.c
index d016090..0b22c91 100644
--- a/kalloc.c
+++ b/kalloc.c
@@ -34,11 +34,11 @@ void
kinit(void)
{
extern int end;
- unsigned mem;
+ uint mem;
char *start;
start = (char *) &end;
- start = (char *) (((unsigned)start + PAGE) & ~(PAGE-1));
+ start = (char *) (((uint)start + PAGE) & ~(PAGE-1));
mem = 256; // XXX
cprintf("mem = %d\n", mem * PAGE);
kfree(start, mem * PAGE);