kern

diff src/vm.c @ 33:373a9f50b4e6

8254 timer code
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 08 Jun 2011 03:02:42 +0300
parents 387078ef5c0d
children 5f6c5751ae05
line diff
     1.1 --- a/src/vm.c	Fri May 27 13:08:23 2011 +0300
     1.2 +++ b/src/vm.c	Wed Jun 08 03:02:42 2011 +0300
     1.3 @@ -259,7 +259,7 @@
     1.4  
     1.5  void pgfree(int start, int num)
     1.6  {
     1.7 -	int i, area, end, intr_state;
     1.8 +	int i, area, intr_state;
     1.9  	struct page_range *node, *new, *prev, *next;
    1.10  
    1.11  	intr_state = get_intr_state();
    1.12 @@ -276,7 +276,7 @@
    1.13  		panic("pgfree: can't allocate new page_range node to add the freed pages\n");
    1.14  	}
    1.15  	new->start = start;
    1.16 -	end = new->end = start + num;
    1.17 +	new->end = start + num;
    1.18  
    1.19  	area = PAGE_TO_ADDR(start) >= KMEM_START ? MEM_KERNEL : MEM_USER;
    1.20