Fixed .devcontainer to be as it is in original repo

This commit is contained in:
Chris
2026-04-10 15:29:05 +00:00
parent 1c0886c2ae
commit 4d83b36644
6 changed files with 28 additions and 7 deletions

View File

@@ -58,7 +58,7 @@ set(OS_KERNEL_LINKER "${CMAKE_CURRENT_SOURCE_DIR}/src/arch/${OS_ARCH_TARGET}/lin
# Add executable target for the kernel
add_executable(uiaos-kernel
# src/multiboot2.asm # TODO: Add multiboot2 support
src/multiboot2.asm # TODO: Add multiboot2 support
src/kernel.c
)

View File

@@ -0,0 +1,16 @@
#include <libc/stdio.h>
#include <libc/stdint.h>
#include <libc/limits.h>
#include <libc/stddef.h>
const size_t VGA_HEIGHT = 25;
const size_t VGA_WIDTH = 80;
static uint16_t* terminalBuffer = (uint16_t*) 0xB8000;
void terminalEntryAt(char c, uint8_t colour, size_t x, size_t y){
size_t index = y * VGA_WIDTH + x;
terminalBuffer[index] = vgaEntry(c, colour);
}

View File

@@ -1,6 +1,6 @@
#include <libc/stdint.h>
void kernel_main(void) {
void main(void) {
for (;;) {
__asm__ volatile ("hlt");
}

View File

@@ -58,7 +58,7 @@ set(OS_KERNEL_LINKER "${CMAKE_CURRENT_SOURCE_DIR}/src/arch/${OS_ARCH_TARGET}/lin
# Add executable target for the kernel
add_executable(uiaos-kernel
# src/multiboot2.asm # TODO: Add multiboot2 support
src/multiboot2.asm # TODO: Add multiboot2 support
src/kernel.c
)