Changeset 7eade45 in mainline


Ignore:
Timestamp:
2005-04-19T16:19:48Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
425913b
Parents:
cb4b61d
Message:

Fix wrong order of *_init() function calls.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/ia32.c

    rcb4b61d r7eade45  
    5151
    5252        if (config.cpu_active == 1) {
    53                 ega_init();     /* video */
    5453                i8042_init();   /* a20 bit */
    55                 i8259_init();   /* PIC */
     54                i8259_init();   /* PIC */
    5655                i8254_init();   /* hard clock */
    57                
     56
    5857                trap_register(VECTOR_SYSCALL, syscall);
    5958               
     
    6564}
    6665
     66void arch_post_mm_init()
     67{
     68        ega_init();     /* video */
     69}
     70
    6771void calibrate_delay_loop(void)
    6872{
  • arch/mips/src/mips.c

    rcb4b61d r7eade45  
    5050        cp0_count_write(0);
    5151}
     52
     53void arch_post_mm_init(void)
     54{
     55}
  • include/arch.h

    rcb4b61d r7eade45  
    4141
    4242extern void arch_init(void);
     43extern void arch_post_mm_init(void);
    4344extern void calibrate_delay_loop(void);
    4445
  • src/main/main.c

    rcb4b61d r7eade45  
    104104        arch_init();
    105105
    106 
    107         printf("%s, %s\n", project, copyright);
    108 
    109         printf("%L: hardcoded_ktext_size=%dK, hardcoded_kdata_size=%dK\n",
    110                 config.base, hardcoded_ktext_size/1024, hardcoded_kdata_size/1024);
    111 
    112106        heap_init(config.base + hardcoded_ktext_size + hardcoded_kdata_size, CONFIG_HEAP_SIZE);
    113107        frame_init();
     
    115109        tlb_init();
    116110
     111        arch_post_mm_init();
     112
     113        printf("%s, %s\n", project, copyright);
     114
     115        printf("%L: hardcoded_ktext_size=%dK, hardcoded_kdata_size=%dK\n",
     116                config.base, hardcoded_ktext_size/1024, hardcoded_kdata_size/1024);
     117
    117118        #ifdef __SMP__
    118119        mp_init();      /* Multiprocessor */
  • src/mm/page.c

    rcb4b61d r7eade45  
    3232void page_init(void)
    3333{       
     34        page_arch_init();
    3435        map_page_to_frame(0x0, 0x0, PAGE_NOT_PRESENT, 0);
    35         page_arch_init();
    3636}
Note: See TracChangeset for help on using the changeset viewer.