Changeset 77a493a in mainline


Ignore:
Timestamp:
2011-11-08T22:30:17Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5dd830c
Parents:
5dc34af
Message:

Partition arm32 kernel memory.

Location:
kernel/arch/arm32
Files:
2 edited

Legend:

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

    r5dc34af r77a493a  
    3636#define KERN_arm32_KM_H_
    3737
     38#define KM_ARM32_IDENTITY_START         UINT32_C(0x80000000)
     39#define KM_ARM32_IDENTITY_SIZE          UINT32_C(0x40000000)
     40
     41#define KM_ARM32_NON_IDENTITY_START     UINT32_C(0xc0000000)
     42#define KM_ARM32_NON_IDENTITY_SIZE      UINT32_C(0x40000000)
     43
    3844extern void km_identity_arch_init(void);
    3945extern void km_non_identity_arch_init(void);
  • kernel/arch/arm32/src/mm/km.c

    r5dc34af r77a493a  
    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_ARM32_IDENTITY_START;
     40        config.identity_size = KM_ARM32_IDENTITY_SIZE;
    3741}
    3842
    3943void km_non_identity_arch_init(void)
    4044{
     45        km_non_identity_span_add(KM_ARM32_NON_IDENTITY_START,
     46            KM_ARM32_NON_IDENTITY_SIZE);
    4147}
    4248
Note: See TracChangeset for help on using the changeset viewer.