From d5d3737996d3828397e02f0f953fbc5c9e63f709 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Sat, 3 Oct 2009 02:42:33 -0400 Subject: [PATCH 1/1] Remove demapper from pagingstub.c, since that code is now elsewhere. Correct location of stack. --- netwatch/pagingstub.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/netwatch/pagingstub.c b/netwatch/pagingstub.c index 4041bdc..7fa240b 100644 --- a/netwatch/pagingstub.c +++ b/netwatch/pagingstub.c @@ -132,19 +132,6 @@ int addmap_4m(unsigned long vaddr, unsigned long paddr) return 0; } -void *demap(unsigned long client_pd, unsigned long vaddr) -{ - unsigned long pde = ((unsigned long *)p2v(client_pd))[PDE_FOR(vaddr)]; - unsigned long pte; - - if (!(pde & PTE_PRESENT)) - return (void*)0x0; - pte = ((unsigned long *)p2v(ADDR_12_MASK(pde)))[PTE_FOR(vaddr)]; - if (!(pte & PTE_PRESENT)) - return (void*)0x0; - return p2v((pte & ~0xFFF) + (vaddr & 0xFFF)); -} - static void pt_setup(int tseg_start, int tseg_size) { int i; @@ -243,7 +230,7 @@ void c_entry(void) traps_install(); DBG(0x09); - ps_switch_stack(init_and_run, 0xa2000); + ps_switch_stack(init_and_run, 0x270000); DBG(0xFA); } -- 2.43.0