Ignore:
Timestamp:
Jun 22, 2017, 4:06:44 PM (5 years ago)
Author:
max@…
Message:

Explicitly use configurable parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/hal_boot.h

    r35 r42  
    130130#define NPDPG   (PAGE_SIZE / sizeof (pt_entry_t))
    131131
    132 #define CLUSTER0_MIN_VA 0xffff800000000000
    133 #define CLUSTER0_MAX_VA 0xffff800100000000 /* MIN + 4GB */
     132#define CLUSTERS_BASE_VA        0xffff800000000000
    134133
     134/*
     135 * These parameters are configurable.
     136 */
     137#define CLUSTER_VA_SIZE 0x100000000 /* 4GB */
     138#define CLUSTER_PA_SIZE 0x200000000 /* 8GB */
     139
     140#define CLUSTER_MIN_VA(n)       (CLUSTERS_BASE_VA + n * CLUSTER_VA_SIZE)
     141#define CLUSTER_MAX_VA(n)       (CLUSTER_MIN_VA(n) + CLUSTER_VA_SIZE)
     142
Note: See TracChangeset for help on using the changeset viewer.