Subversion Repositories HelenOS-historic

Rev

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

Rev 1063 Rev 1101
Line 160... Line 160...
160
 
160
 
161
    /*
161
    /*
162
     * Memory management subsystems initialization.
162
     * Memory management subsystems initialization.
163
     */
163
     */
164
    arch_pre_mm_init();
164
    arch_pre_mm_init();
165
    /* Initialize at least 1 memory segment big enough for slab to work */
165
    frame_init();       /* Initialize at least 1 memory segment big enough for slab to work */
166
    frame_init();
-
 
167
    slab_cache_init();
166
    slab_cache_init();
168
    as_init();
167
    as_init();
169
    page_init();
168
    page_init();
170
    tlb_init();
169
    tlb_init();
171
    arch_post_mm_init();   
170
    arch_post_mm_init();   
172
    version_print();
-
 
173
 
171
 
-
 
172
    version_print();
174
    printf("%P: hardcoded_ktext_size=%dK, hardcoded_kdata_size=%dK\n",
173
    printf("%P: hardcoded_ktext_size=%dK, hardcoded_kdata_size=%dK\n",
175
        config.base, hardcoded_ktext_size/1024, hardcoded_kdata_size/1024);
174
        config.base, hardcoded_ktext_size/1024, hardcoded_kdata_size/1024);
176
 
175
 
177
    arch_pre_smp_init();
176
    arch_pre_smp_init();
178
    smp_init();
177
    smp_init();
-
 
178
   
179
    /* Slab must be initialized AFTER we know the number of processors */
179
    slab_enable_cpucache(); /* Slab must be initialized AFTER we know the number of processors */
180
    slab_enable_cpucache();
-
 
181
 
180
 
182
    printf("config.memory_size=%dM\n", config.memory_size/(1024*1024));
181
    printf("config.memory_size=%dM\n", config.memory_size/(1024*1024));
183
    printf("config.cpu_count=%d\n", config.cpu_count);
182
    printf("config.cpu_count=%d\n", config.cpu_count);
184
    cpu_init();
183
    cpu_init();
185
   
184