Subversion Repositories HelenOS-historic

Rev

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

Rev 205 Rev 235
Line 35... Line 35...
35
#include <arch/interrupt.h>
35
#include <arch/interrupt.h>
36
#include <arch/asm.h>
36
#include <arch/asm.h>
37
#include <synch/spinlock.h>
37
#include <synch/spinlock.h>
38
#include <debug.h>
38
#include <debug.h>
39
#include <memstr.h>
39
#include <memstr.h>
-
 
40
#include <print.h>
40
 
41
 
41
__address bootstrap_dba;
42
__address bootstrap_dba;
42
 
43
 
43
void page_arch_init(void)
44
void page_arch_init(void)
44
{
45
{
Line 48... Line 49...
48
    if (config.cpu_active == 1) {
49
    if (config.cpu_active == 1) {
49
        dba = frame_alloc(FRAME_KA | FRAME_PANIC);
50
        dba = frame_alloc(FRAME_KA | FRAME_PANIC);
50
        memsetb(dba, PAGE_SIZE, 0);
51
        memsetb(dba, PAGE_SIZE, 0);
51
 
52
 
52
        bootstrap_dba = dba;
53
        bootstrap_dba = dba;
53
 
54
       
54
        /*
55
        /*
55
         * Identity mapping for all frames.
56
         * Identity mapping for all frames.
56
         * PA2KA(identity) mapping for all frames.
57
         * PA2KA(identity) mapping for all frames.
57
         */
58
         */
58
        for (i = 0; i < frames; i++) {
59
        for (i = 0; i < frames; i++) {