Changeset 8449000 in mainline


Ignore:
Timestamp:
2006-06-18T20:21:54Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e3e29b75
Parents:
beec330
Message:

Fix bad booting address on MIPS when not compiled in debug mode.

File:
1 edited

Legend:

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

    rbeec330 r8449000  
    6868#define CACHE_EXC ((char *) 0x80000100)
    6969
    70 bootinfo_t bootinfo;
     70
     71/* Why the linker moves the variable 64K away in assembler
     72 * when not in .text section ????????
     73 */
     74__address supervisor_sp __attribute__ ((section (".text")));
     75/* Stack pointer saved when entering user mode */
     76/* TODO: How do we do it on SMP system???? */
     77bootinfo_t bootinfo __attribute__ ((section (".text")));
    7178
    7279void arch_pre_main(void)
     
    121128{
    122129#ifdef CONFIG_FB
    123                 fb_init(0x12000000, 640, 480, 24, 1920); // gxemul framebuffer
     130        fb_init(0x12000000, 640, 480, 24, 1920); // gxemul framebuffer
    124131#endif
    125                 sysinfo_set_item_val("machine." STRING(MACHINE),NULL,1);
     132        sysinfo_set_item_val("machine." STRING(MACHINE),NULL,1);
    126133}
    127134
     
    133140{
    134141}
    135 
    136 /* Stack pointer saved when entering user mode */
    137 /* TODO: How do we do it on SMP system???? */
    138 
    139 /* Why the linker moves the variable 64K away in assembler
    140  * when not in .text section ????????
    141  */
    142 __address supervisor_sp __attribute__ ((section (".text")));
    143142
    144143void userspace(uspace_arg_t *kernel_uarg)
Note: See TracChangeset for help on using the changeset viewer.