Subversion Repositories HelenOS-historic

Rev

Rev 576 | Rev 714 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 576 Rev 703
Line 33... Line 33...
33
#include <arch/i8259.h>
33
#include <arch/i8259.h>
34
#include <func.h>
34
#include <func.h>
35
#include <cpu.h>
35
#include <cpu.h>
36
#include <arch/asm.h>
36
#include <arch/asm.h>
37
#include <mm/tlb.h>
37
#include <mm/tlb.h>
-
 
38
#include <mm/as.h>
38
#include <arch.h>
39
#include <arch.h>
39
#include <symtab.h>
40
#include <symtab.h>
40
#include <proc/thread.h>
41
#include <proc/thread.h>
41
 
42
 
42
/*
43
/*
Line 97... Line 98...
97
 
98
 
98
 
99
 
99
 
100
 
100
void page_fault(int n, void *stack)
101
void page_fault(int n, void *stack)
101
{
102
{
-
 
103
    __address page;
-
 
104
 
-
 
105
    page = read_cr2();
-
 
106
    if (!as_page_fault(page)) {
102
    PRINT_INFO_ERRCODE(stack);
107
        PRINT_INFO_ERRCODE(stack);
103
    printf("page fault address: %X\n", read_cr2());
108
        printf("page fault address: %X\n", page);
104
    panic("page fault\n");
109
        panic("page fault\n");
-
 
110
    }
105
}
111
}
106
 
112
 
107
void syscall(int n, void *stack)
113
void syscall(int n, void *stack)
108
{
114
{
109
    printf("cpu%d: syscall\n", CPU->id);
115
    printf("cpu%d: syscall\n", CPU->id);