| 
      
      
      From: Jeff D. <jd...@ka...> - 2000-08-15 13:32:58
      
     | 
| test6 is better now. I found a stupid casting bug which was causing pointer arithmetic to happen instead of integer arithetic. With this patch, uml now at least boots. The patch is below. Jeff --- cvs/linux/include/asm-um/page.h Thu Aug 10 14:33:23 2000 +++ um/include/asm-um/page.h Tue Aug 15 00:46:29 2000 @@ -32,7 +32,7 @@ #define __va_space (8*1024*1024) -#define __pa(x) ((unsigned long) ((x) - (physmem))) +#define __pa(x) ((unsigned long) (x) - (physmem)) #define __va(x) ((void *) ((x) + (physmem))) #define virt_to_page(kaddr) (mem_map + (__pa(kaddr) >> PAGE_SHIFT)) --- cvs/linux/include/asm-um/pgtable.h Thu Aug 10 14:33:23 2000 +++ um/include/asm-um/pgtable.h Tue Aug 15 00:46:42 2000 @@ -151,7 +151,7 @@ #define BAD_PAGETABLE __bad_pagetable() #define BAD_PAGE __bad_page() -#define ZERO_PAGE(vaddr) (virt_to_page(((unsigned long) empty_zero_page))) +#define ZERO_PAGE(vaddr) (virt_to_page(empty_zero_page)) /* number of bits that fit into a memory pointer */ #define BITS_PER_PTR (8*sizeof(unsigned long)) |