futex and rlimit

This commit is contained in:
Balazs Gerofi
2012-05-08 18:32:43 +09:00
parent c3463e7393
commit a7c0225423
17 changed files with 1534 additions and 65 deletions

View File

@@ -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");