Ignore:
Timestamp:
Jun 26, 2017, 11:48:28 AM (5 years ago)
Author:
max@…
Message:

Use mcmodel=large, in order to have a kernel image that is located at the
beginning of each cluster in virtual memory, as discussed with Alain. The
performance cost will be taken care of later.

Now, the active kernel is located at 0xfffff00000000000, and the base of
the clusters is 0xffff800000000000.

File:
1 edited

Legend:

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

    r46 r47  
    8888        x86_printf("[+] cpu_attach called\n");
    8989
    90         x86_printf("[+] bootloader: %s\n", mb_loader_name);
     90        x86_printf("[+] bootloader: '%s'\n", mb_loader_name);
    9191
    9292        dump_memmap();
     
    109109
    110110        x86_printf("-> mytest = %z\n", mytest);
    111         size_t *myptr = XPTR_KIMG(0, &mytest) + CLUSTER_KIMG_MIN_VA(0);
     111        size_t *myptr = CLUSTER_MIN_VA(0) + XPTR(0, &mytest);
    112112        *myptr = 1;
    113113        x86_printf("-> mytest = %z\n", mytest);
Note: See TracChangeset for help on using the changeset viewer.