Ignore:
Timestamp:
Jun 22, 2017, 8:10:37 AM (5 years ago)
Author:
max@…
Message:

Update:

  • Introduce a basic VM manager in hal_gpt.c, to create the initial page tree for cluster0.
  • Locate the ACPI RSDP table, which involves entering the PA into cluster0's VA space.

The definitions are still a bit messy, but they will be reorganized later.

File:
1 edited

Legend:

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

    r32 r35  
    2424#include <hal_multiboot.h>
    2525#include <hal_segmentation.h>
     26#include <hal_internal.h>
    2627
    2728#include <memcpy.h>
     
    3435#include <cluster.h>
    3536
    36 void x86_printf(char *s, ...);
    37 
    3837static void gdt_create();
    3938static void idt_create();
     
    4746#define offsetof(type, member) __builtin_offsetof(type, member)
    4847
    49 
    5048/* -------------------------------------------------------------------------- */
    5149
     
    9593
    9694        dump_memmap();
    97 
    9895        x86_printf("[+] dump finished\n");
     96
     97        hal_gpt_init(firstpa);
     98        x86_printf("[+] hal_gpt_init called\n");
     99
     100        hal_acpi_init();
     101        x86_printf("[+] hal_acpi_init called\n");
     102
     103
     104        int m = 0;
     105        int v = 1 / m;
    99106
    100107        char *buf = NULL;
    101108        *buf = (char)0x01;
    102 
    103         int m = 0;
    104         int v = 1 / m;
    105109
    106110        x86_printf("ALIVE!\n");
Note: See TracChangeset for help on using the changeset viewer.