kern

diff src/main.c @ 31:3ed041d07ae1

ops ... range->size = pgcount * PGSIZE not pg * PGSIZE
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 27 May 2011 13:08:23 +0300
parents 7795225808b3
children 2cb5ab18e76e 373a9f50b4e6
line diff
     1.1 --- a/src/main.c	Fri May 27 12:05:38 2011 +0300
     1.2 +++ b/src/main.c	Fri May 27 13:08:23 2011 +0300
     1.3 @@ -69,6 +69,24 @@
     1.4  	dbg_print_vm(MEM_USER);
     1.5  	dbg_print_vm(MEM_KERNEL);
     1.6  
     1.7 +	{
     1.8 +		void *foo, *bar, *xyzzy, *koko, *lala;
     1.9 +
    1.10 +		foo = malloc(128);
    1.11 +		bar = malloc(32 * 1024);
    1.12 +		xyzzy = malloc(8000);
    1.13 +
    1.14 +		free(bar);
    1.15 +
    1.16 +		koko = malloc(700);
    1.17 +		lala = malloc(6 * 1024 * 1024);
    1.18 +
    1.19 +		free(xyzzy);
    1.20 +		free(foo);
    1.21 +		free(koko);
    1.22 +		free(lala);
    1.23 +	}
    1.24 +
    1.25  	for(;;) {
    1.26  		char c, keypress;
    1.27  		do {