Changeset f07bba5 in mainline


Ignore:
Timestamp:
2005-04-22T14:11:38Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c9b8c5c
Parents:
25f62cdf
Message:

Code cleanup after arch_init() splitting.
Restore %ds and %es registers before iret.

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/asm.s

    r25f62cdf rf07bba5  
    130130        movl %esp,%ebp
    131131        pusha
     132
     133        push %ds
     134        push %es
    132135   
    133136        # we must fill the data segment registers
     
    142145        call trap_dispatcher
    143146        addl $8,%esp
     147
     148        pop %es
     149        pop %ds
    144150
    145151        popa
     
    315321utext:
    3163220:
    317         movl $0xdeadbeaf, %eax
     323#       movl $0xdeadbeaf, %eax
    318324        int $48
    319325        jmp 0b
  • arch/ia32/src/ia32.c

    r25f62cdf rf07bba5  
    4646
    4747
    48 void arch_init(void)
     48void arch_pre_mm_init(void)
    4949{
    5050        pm_init();
  • arch/mips/src/mips.c

    r25f62cdf rf07bba5  
    3131#include <arch/exception.h>
    3232
    33 void arch_init(void)
     33void arch_pre_mm_init(void)
    3434{
    3535        /*
  • include/arch.h

    r25f62cdf rf07bba5  
    4040#define TASK            (cpu_private_data[CPU_ID_ARCH].task)
    4141
    42 extern void arch_init(void);
     42extern void arch_pre_mm_init(void);
    4343extern void arch_post_mm_init(void);
    4444extern void calibrate_delay_loop(void);
  • src/Makefile.config

    r25f62cdf rf07bba5  
    66
    77# Support for symetric multiprocessors
    8 #SMP=__SMP__
     8SMP=__SMP__
    99
    1010# Improved support for hyperthreading
  • src/main/main.c

    r25f62cdf rf07bba5  
    102102        thread_t *t;
    103103
    104         arch_init();
     104        arch_pre_mm_init();
    105105
    106106        heap_init(config.base + hardcoded_ktext_size + hardcoded_kdata_size, CONFIG_HEAP_SIZE);
     
    171171        config.cpu_active++;
    172172
    173         arch_init();
     173        arch_pre_mm_init();
    174174        frame_init();
    175175        page_init();
     176        arch_post_mm_init();
    176177
    177178        cpu_init();
Note: See TracChangeset for help on using the changeset viewer.