[feat] Desktop render color
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
#include <fs.h>
|
||||
#include <serial.h>
|
||||
#include <kernel/fs.h>
|
||||
#include <kernel/serial.h>
|
||||
#include <memory/heap.h>
|
||||
#include <common.h>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <gdt.h>
|
||||
#include <kernel/gdt.h>
|
||||
#include <common.h>
|
||||
#include <serial.h>
|
||||
#include <kernel/serial.h>
|
||||
|
||||
static gdt_entry g_gdt[7]; // 5 segments + TSS (2 entries)
|
||||
static gdt_ptr g_gdt_ptr;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <idt.h>
|
||||
#include <kernel/idt.h>
|
||||
#include <common.h>
|
||||
#include <pic.h>
|
||||
#include <serial.h>
|
||||
#include <kernel/pic.h>
|
||||
#include <kernel/serial.h>
|
||||
|
||||
// Defined in isr.S — 256 ISR stubs
|
||||
extern "C" void* isr_stub_table[256];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <pic.h>
|
||||
#include <kernel/pic.h>
|
||||
#include <common.h>
|
||||
#include <serial.h>
|
||||
#include <kernel/serial.h>
|
||||
|
||||
static inline void outb(UINT16 port, UINT8 val) {
|
||||
ASM("outb %0, %1" : : "a"(val), "Nd"(port));
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <pit.h>
|
||||
#include <kernel/pit.h>
|
||||
#include <common.h>
|
||||
#include <pic.h>
|
||||
#include <serial.h>
|
||||
#include <kernel/pic.h>
|
||||
#include <kernel/serial.h>
|
||||
|
||||
static inline void outb(UINT16 port, UINT8 val) {
|
||||
ASM("outb %0, %1" : : "a"(val), "Nd"(port));
|
||||
|
||||
+10
-7
@@ -2,16 +2,17 @@
|
||||
#include <graphics/context.h>
|
||||
#include <graphics/draw.h>
|
||||
#include <fonts/pixel_font.h>
|
||||
#include <serial.h>
|
||||
#include <kernel/serial.h>
|
||||
#include <common.h>
|
||||
#include <memory/pmm.h>
|
||||
#include <memory/heap.h>
|
||||
#include <scheduler.h>
|
||||
#include <fs.h>
|
||||
#include <gdt.h>
|
||||
#include <idt.h>
|
||||
#include <pic.h>
|
||||
#include <pit.h>
|
||||
#include <kernel/scheduler.h>
|
||||
#include <kernel/fs.h>
|
||||
#include <kernel/gdt.h>
|
||||
#include <kernel/idt.h>
|
||||
#include <kernel/pic.h>
|
||||
#include <kernel/pit.h>
|
||||
#include <desktop/prepare.h>
|
||||
|
||||
extern EFI_SYSTEM_TABLE *ST;
|
||||
|
||||
@@ -131,6 +132,8 @@ extern "C" void kernel_main() {
|
||||
pf_print("Welcome to Sylva OS!\n");
|
||||
serial_write(" Kernel prepared well.\n");
|
||||
|
||||
prepare((UINT32) g_gfx.vr, (UINT32) g_gfx.hr);
|
||||
|
||||
// --- Interrupt infrastructure ---
|
||||
serial_write("Sylva: init GDT...\n");
|
||||
gdt_init();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <memory/heap.h>
|
||||
#include <memory/pmm.h>
|
||||
#include <serial.h>
|
||||
#include <kernel/serial.h>
|
||||
|
||||
struct heap_block {
|
||||
UINTN size; // includes header; bit 0 = 1 used, 0 free
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <memory/pmm.h>
|
||||
#include <serial.h>
|
||||
#include <kernel/serial.h>
|
||||
|
||||
extern EFI_SYSTEM_TABLE *ST;
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#include <scheduler.h>
|
||||
#include <idt.h>
|
||||
#include <pic.h>
|
||||
#include <kernel/scheduler.h>
|
||||
#include <kernel/idt.h>
|
||||
#include <kernel/pic.h>
|
||||
#include <memory/heap.h>
|
||||
#include <memory/pmm.h>
|
||||
#include <common.h>
|
||||
#include <serial.h>
|
||||
#include <kernel/serial.h>
|
||||
|
||||
// Assembly: context_switch(UINT64* old_rsp, UINT64 new_rsp)
|
||||
extern "C" void context_switch(UINT64* old_rsp, UINT64 new_rsp);
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#include <serial.h>
|
||||
#include <kernel/serial.h>
|
||||
|
||||
extern EFI_SYSTEM_TABLE *ST;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user