uptime() sys call for benchmarking
increase PHYSTOP
This commit is contained in:
parent
83d2db91f7
commit
789b508d53
9 changed files with 47 additions and 9 deletions
4
kalloc.c
4
kalloc.c
|
@ -23,14 +23,10 @@ struct {
|
|||
int nfreemem;
|
||||
|
||||
// Initialize free list of physical pages.
|
||||
// This code cheats by just considering one megabyte of
|
||||
// pages after end. Real systems would determine the
|
||||
// amount of memory available in the system and use it all.
|
||||
void
|
||||
kinit(char *p, uint len)
|
||||
{
|
||||
initlock(&kmem.lock, "kmem");
|
||||
cprintf("end 0x%x free = %d(0x%x)\n", p, len);
|
||||
nfreemem = 0;
|
||||
kfree(p, len);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue