Changeset bc428e2 in mainline


Ignore:
Timestamp:
2011-11-08T23:24:17Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6641295
Parents:
e1ed831f
Message:

Partition mips32 kernel memory.

Location:
kernel/arch/mips32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/include/mm/km.h

    re1ed831f rbc428e2  
    3636#define KERN_mips32_KM_H_
    3737
     38#define KM_MIPS32_KSEG0_START   UINT32_C(0x80000000)
     39#define KM_MIPS32_KSEG0_SIZE    UINT32_C(0x20000000)
     40
     41#define KM_MIPS32_KSSEG_START   UINT32_C(0xc0000000)
     42#define KM_MIPS32_KSSEG_SIZE    UINT32_C(0x20000000)
     43
     44#define KM_MIPS32_KSEG3_START   UINT32_C(0xe0000000)
     45#define KM_MIPS32_KSEG3_SIZE    UINT32_C(0x20000000)
     46
    3847extern void km_identity_arch_init(void);
    3948extern void km_non_identity_arch_init(void);
  • kernel/arch/mips32/src/mm/km.c

    re1ed831f rbc428e2  
    3232
    3333#include <arch/mm/km.h>
     34#include <mm/km.h>
     35#include <config.h>
    3436
    3537void km_identity_arch_init(void)
    3638{
     39        config.identity_base = KM_MIPS32_KSEG0_START;
     40        config.identity_size = KM_MIPS32_KSEG0_SIZE;
    3741}
    3842
    3943void km_non_identity_arch_init(void)
    4044{
     45        km_non_identity_span_add(KM_MIPS32_KSSEG_START, KM_MIPS32_KSSEG_SIZE);
     46        km_non_identity_span_add(KM_MIPS32_KSEG0_START, KM_MIPS32_KSEG0_SIZE);
    4147}
    4248
Note: See TracChangeset for help on using the changeset viewer.