futex and rlimit
This commit is contained in:
22
kernel/mem.c
22
kernel/mem.c
@@ -45,7 +45,27 @@ static struct aal_mc_pa_ops allocator = {
|
||||
|
||||
static void page_fault_handler(unsigned long address, void *regs)
|
||||
{
|
||||
kprintf("Page fault for %016lx\n", address);
|
||||
struct vm_range *range, *next;
|
||||
char found = 0;
|
||||
|
||||
kprintf("[%d] Page fault for 0x%lX\n",
|
||||
aal_mc_get_processor_id(), address);
|
||||
|
||||
list_for_each_entry_safe(range, next,
|
||||
&cpu_local_var(current)->vm->vm_range_list,
|
||||
list) {
|
||||
|
||||
if (range->start <= address && range->end > address) {
|
||||
kprintf("address is in range, flag: 0x%X! \n", range->flag);
|
||||
found = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!found)
|
||||
kprintf("address is out of range! \n");
|
||||
|
||||
|
||||
/* TODO */
|
||||
aal_mc_debug_show_interrupt_context(regs);
|
||||
panic("page fault");
|
||||
|
||||
Reference in New Issue
Block a user