kernel: dont print message on user page faults
@@ -782,7 +782,6 @@ static __attribute__ ((used))
struct dispatcher_shared_generic *disp =
get_dispatcher_shared_generic(handle);
uint64_t rip = cpu_save_area[X86_SAVE_RIP];
- uint64_t rsp = cpu_save_area[X86_SAVE_RSP];
lvaddr_t fault_address, handler = 0, param = 0;
assert(vec < NEXCEPTIONS);
@@ -829,10 +828,13 @@ static __attribute__ ((used))
__asm volatile("mov %%cr2, %[fault_address]"
: [fault_address] "=r" (fault_address));
+ #if 0
+ uint64_t rsp = cpu_save_area[X86_SAVE_RSP];
printk(LOG_WARN, "user page fault%s in '%.*s': addr %lx IP %lx SP %lx "
"error 0x%lx\n",
disabled ? " WHILE DISABLED" : "", DISP_NAME_LEN,
disp->name, fault_address, rip, rsp, error);
+ #endif
/* sanity-check that the trap handler saved in the right place */
assert((disabled && disp_save_area == dispatcher_get_trap_save_area(handle))
