Subversion Repositories HelenOS

Rev

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

Rev 2222 Rev 2697
Line 85... Line 85...
85
    int i;
85
    int i;
86
    int identity_flags = PAGE_CACHEABLE | PAGE_EXEC | PAGE_GLOBAL | PAGE_WRITE;
86
    int identity_flags = PAGE_CACHEABLE | PAGE_EXEC | PAGE_GLOBAL | PAGE_WRITE;
87
 
87
 
88
    if (config.cpu_active == 1) {
88
    if (config.cpu_active == 1) {
89
        page_mapping_operations = &pt_mapping_operations;
89
        page_mapping_operations = &pt_mapping_operations;
90
       
90
 
91
        /*
91
        /*
92
         * PA2KA(identity) mapping for all frames.
92
         * PA2KA(identity) mapping for all frames.
93
         */
93
         */
94
        for (cur = 0; cur < last_frame; cur += FRAME_SIZE) {
94
        for (cur = 0; cur < last_frame; cur += FRAME_SIZE) {
95
            /* Standard identity mapping */
95
            /* Standard identity mapping */
96
            page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, identity_flags);
96
            page_mapping_insert(AS_KERNEL, PA2KA(cur), cur, identity_flags);
97
        }
97
        }
-
 
98
       
98
        /* Upper kernel mapping
99
        /* Upper kernel mapping
99
         * - from zero to top of kernel (include bottom addresses
100
         * - from zero to top of kernel (include bottom addresses
100
         *   because some are needed for init )
101
         *   because some are needed for init)
101
         */
102
         */
102
        for (cur = PA2KA_CODE(0); cur < config.base + config.kernel_size; cur += FRAME_SIZE)
103
        for (cur = PA2KA_CODE(0); cur < config.base + config.kernel_size; cur += FRAME_SIZE)
103
            page_mapping_insert(AS_KERNEL, cur, KA2PA(cur), identity_flags);
104
            page_mapping_insert(AS_KERNEL, cur, KA2PA(cur), identity_flags);
104
       
105
       
105
        for (cur = config.stack_base; cur < config.stack_base + config.stack_size; cur += FRAME_SIZE)
106
        for (cur = config.stack_base; cur < config.stack_base + config.stack_size; cur += FRAME_SIZE)