- _init_idt();
-
- multiboot_memory_map_t* map = (multiboot_memory_map_t*)mb_info->mmap_addr;
-
- // TODO: 内核初始化
- // (v) 根据memory map初始化内存管理器
- // (v) 分配新的栈空间
- // 调整映射:
- // ( ) + 映射 memory map (APCI,APIC,IO映射) (以后)
- // (v) + 释放 hhk_init 所占据的空间
-
-#pragma region INIT_MM
- // 初始化物理内存管理器
- pmm_init(MEM_1MB + mb_info->mem_upper << 10);
- vmm_init();
-#pragma endregion
-
- // 初始化VGA
- tty_init(VGA_BUFFER_PADDR);
- tty_set_theme(VGA_COLOR_GREEN, VGA_COLOR_BLACK);
-
- printf("[KERNEL] === Initialization === \n");
- unsigned int map_size =
- mb_info->mmap_length / sizeof(multiboot_memory_map_t);
- printf("[MM] Mem: %d KiB, Extended Mem: %d KiB\n",
- mb_info->mem_lower,
- mb_info->mem_upper);
+ char buf[64];
+
+ printf("Hello higher half kernel world!\nWe are now running in virtual "
+ "address space!\n\n");
+
+ cpu_get_brand(buf);
+ printf("CPU: %s\n\n", buf);