Subversion Repositories HelenOS-historic

Rev

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

Rev 883 Rev 894
Line 38... Line 38...
38
#include <config.h>
38
#include <config.h>
39
#include <arch/trap/trap.h>
39
#include <arch/trap/trap.h>
40
#include <panic.h>
40
#include <panic.h>
41
#include <arch/asm.h>
41
#include <arch/asm.h>
42
#include <symtab.h>
42
#include <symtab.h>
-
 
43
 
43
#include <arch/drivers/fb.h>
44
#include <arch/drivers/fb.h>
-
 
45
#include <arch/drivers/keyboard.h>
44
 
46
 
45
char *context_encoding[] = {
47
char *context_encoding[] = {
46
    "Primary",
48
    "Primary",
47
    "Secondary",
49
    "Secondary",
48
    "Nucleus",
50
    "Nucleus",
Line 125... Line 127...
125
    data.pfn = fr.pfn;
127
    data.pfn = fr.pfn;
126
    data.l = true;
128
    data.l = true;
127
    data.cp = 0;
129
    data.cp = 0;
128
    data.cv = 0;
130
    data.cv = 0;
129
    data.p = true;
131
    data.p = true;
-
 
132
    data.w = true;
-
 
133
    data.g = true;
-
 
134
 
-
 
135
    dtlb_data_in_write(data.value);
-
 
136
   
-
 
137
    /*
-
 
138
     * Quick hack: map keyboard
-
 
139
     */
-
 
140
    fr.address = KBD_PHYS_ADDRESS;
-
 
141
    pg.address = KBD_VIRT_ADDRESS;
-
 
142
 
-
 
143
    tag.value = ASID_KERNEL;
-
 
144
    tag.vpn = pg.vpn;
-
 
145
 
-
 
146
    dtlb_tag_access_write(tag.value);
-
 
147
 
-
 
148
    data.value = 0;
-
 
149
    data.v = true;
-
 
150
    data.size = PAGESIZE_8K;
-
 
151
    data.pfn = fr.pfn;
-
 
152
    data.l = true;
-
 
153
    data.cp = 0;
-
 
154
    data.cv = 0;
-
 
155
    data.p = true;
130
    data.w = true;
156
    data.w = true;
131
    data.g = true;
157
    data.g = true;
132
 
158
 
133
    dtlb_data_in_write(data.value);
159
    dtlb_data_in_write(data.value);
134
}
160
}