diff options
author | rsc <rsc> | 2006-07-17 01:52:13 +0000 |
---|---|---|
committer | rsc <rsc> | 2006-07-17 01:52:13 +0000 |
commit | b5ee516575b4d2f1fd7de014230fee7cf8b6b538 (patch) | |
tree | 158b9cf0466e66ac80c96d948a12ae67afcb1d9a /kalloc.c | |
parent | 857d60cb0c56df19a5125584c677aa56c4488e98 (diff) | |
download | xv6-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |