Hello world

This commit is contained in:
2026-02-04 19:43:33 +04:00
commit fde896f371
12 changed files with 248 additions and 0 deletions

17
src/kernel.h Normal file
View File

@@ -0,0 +1,17 @@
#pragma once
#include "common.h"
extern char __bss[], __bss_end[], __stack_top[];
struct sbiret {
long error;
long value;
};
#define PANIC(fmt, ...) \
do { \
printf("PANIC: %s:%d: " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__); \
while (1) { \
} \
} while (0)