Changeset 6641295 in mainline


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

Partition ppc32 kernel memory.

Location:
kernel/arch/ppc32
Files:
2 edited

Legend:

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

    rbc428e2 r6641295  
    3636#define KERN_ppc32_KM_H_
    3737
     38#define KM_PPC32_IDENTITY_START         UINT32_C(0x80000000)
     39#define KM_PPC32_IDENTITY_SIZE          UINT32_C(0x40000000)
     40
     41#define KM_PPC32_NON_IDENTITY_START     UINT32_C(0xc0000000)
     42#define KM_PPC32_NON_IDENTITY_SIZE      UINT32_C(0x40000000)
     43
    3844extern void km_identity_arch_init(void);
    3945extern void km_non_identity_arch_init(void);
  • kernel/arch/ppc32/src/mm/km.c

    rbc428e2 r6641295  
    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_PPC32_IDENTITY_START;
     40        config.identity_size = KM_PPC32_IDENTITY_SIZE;
    3741}
    3842
    3943void km_non_identity_arch_init(void)
    4044{
     45        km_non_identity_span_add(KM_PPC32_NON_IDENTITY_START,
     46            KM_PPC32_NON_IDENTITY_SIZE);
    4147}
    4248
Note: See TracChangeset for help on using the changeset viewer.