Changeset e1ed831f in mainline


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

Partition ia64 kernel memory.

Location:
kernel/arch/ia64
Files:
2 edited

Legend:

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

    r5dd830c re1ed831f  
    3636#define KERN_ia64_KM_H_
    3737
     38/*
     39 * Be conservative and assume the minimal (3 + 51)-bit virtual address width
     40 * of the Itanium CPU even if running on CPU with full 64-bit virtual
     41 * address width, such as Itanium 2.
     42 */
     43
     44#define KM_IA64_IDENTITY_START          UINT64_C(0xe000000000000000)
     45#define KM_IA64_IDENTITY_SIZE           UINT64_C(0x0004000000000000)
     46
     47#define KM_IA64_NON_IDENTITY_START      UINT64_C(0xfffc000000000000)
     48#define KM_IA64_NON_IDENTITY_SIZE       UINT64_C(0x0004000000000000)
     49
    3850extern void km_identity_arch_init(void);
    3951extern void km_non_identity_arch_init(void);
  • kernel/arch/ia64/src/mm/km.c

    r5dd830c re1ed831f  
    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_IA64_IDENTITY_START;
     40        config.identity_size = KM_IA64_IDENTITY_SIZE;   
    3741}
    3842
    3943void km_non_identity_arch_init(void)
    4044{
     45        km_non_identity_span_add(KM_IA64_NON_IDENTITY_START,
     46            KM_IA64_NON_IDENTITY_SIZE);
    4147}
    4248
Note: See TracChangeset for help on using the changeset viewer.