Changeset 9b9f195 in mainline


Ignore:
Timestamp:
2006-02-06T16:56:53Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3d2d2fc2
Parents:
021d471
Message:

Gxemul support for mips userspace. MIPS now _must_ be started
always with userspace, there is (almost) no way how to pass parameters
to kernel.

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/Makefile.inc

    r021d471 r9b9f195  
    4444INIT_ADDRESS = 0x80110000
    4545INIT_SIZE = 65536
     46MIPS_USPACE_ADDR = 0x20000000
     47
    4648CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss
    47 DEFS += -DMACHINE=${MIPS_MACHINE} -DKERNEL_LOAD_ADDRESS=${KERNEL_LOAD_ADDRESS} -DINIT_ADDRESS=${INIT_ADDRESS} -DINIT_SIZE=${INIT_SIZE}
     49
     50DEFS += -DMACHINE=${MIPS_MACHINE} -DKERNEL_LOAD_ADDRESS=${KERNEL_LOAD_ADDRESS} -DINIT_ADDRESS=${INIT_ADDRESS} -DINIT_SIZE=${INIT_SIZE} -DMIPS_USPACE_ADDR=$(MIPS_USPACE_ADDR)
    4851
    4952## Compile with hierarchical page tables support.
     
    7780        BFD = ecoff-littlemips
    7881        CFLAGS += -DHAVE_FPU -mips3
     82        MIPS_USPACE_ADDR = 0x1800000
    7983endif
    8084ifeq ($(MIPS_MACHINE),bgxemul)
     
    8488        TOOLCHAIN_DIR = /usr/local/mips/bin
    8589        CFLAGS += -EB -DBIG_ENDIAN -DHAVE_FPU -mips3
     90        MIPS_USPACE_ADDR = 0x1800000
    8691endif
    8792ifeq ($(MIPS_MACHINE),simics)
  • arch/mips32/src/mips32.c

    r021d471 r9b9f195  
    9898
    9999        /* Setup usermode...*/
    100         config.init_addr = 0x20000000;
     100        config.init_addr = MIPS_USPACE_ADDR;
    101101        config.init_size = FRAME_SIZE;
    102102}
Note: See TracChangeset for help on using the changeset viewer.