Ignore:
Timestamp:
Jun 23, 2017, 9:57:35 AM (7 years ago)
Author:
max@…
Message:

Update. We need to use two separate arrays: one for the heap and one for
the kimg. The size of a heap entry is configurable, but that of the kimg
is not (fixed by mcmodel).

As a result, we also need to use two XPTRs: XPTR_HEAP and XPTR_KIMG. For
now we only declare XPTR_KIMG, and are not using it yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/hal_init.c

    r39 r44  
    3939void cpu_attach();
    4040
     41size_t mytest __in_kdata = 0;
    4142
    4243struct multiboot_info mb_info __in_kdata;
     
    9899        x86_printf("[+] hal_acpi_init called\n");
    99100
     101        x86_printf("-> mytest = %z\n", mytest);
     102        size_t *myptr = XPTR_KIMG(0, &mytest) + CLUSTER_KIMG_MIN_VA(0);
     103        *myptr = 1;
     104        x86_printf("-> mytest = %z\n", mytest);
    100105
    101106        int m = 0;
Note: See TracChangeset for help on using the changeset viewer.