add uint and standardize on typedefs instead of unsigned
This commit is contained in:
parent
857d60cb0c
commit
b5ee516575
15 changed files with 84 additions and 82 deletions
4
kalloc.c
4
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue