feat: Eliminate all stubs; implement real RTL8139 physical DMA ping, dmesg ring buffer, live scheduler thread list, and physical RAM stats
This commit is contained in:
@@ -20,6 +20,9 @@
|
||||
#define SYS_FB_INFO 15 /* Query Limine Linear Framebuffer */
|
||||
#define SYS_PROC_KILL 16 /* Terminate process/thread by PID */
|
||||
#define SYS_DMESG 17 /* Retrieve kernel boot log */
|
||||
#define SYS_PROC_LIST 18 /* Query active kernel thread list */
|
||||
#define SYS_PROC_SPAWN 19 /* Dynamically load and run ELF process */
|
||||
#define SYS_DMA_ALLOC 20 /* Allocate physical DMA buffer */
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
@@ -27,6 +30,21 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct thread_info {
|
||||
uint64_t tid;
|
||||
char name[32];
|
||||
uint32_t state; // 0=Unused, 1=Ready, 2=Running, 3=Blocked, 4=Dead
|
||||
uint64_t cpu_ticks;
|
||||
uint64_t user_rip;
|
||||
uint64_t user_rsp;
|
||||
} thread_info_t;
|
||||
|
||||
typedef struct dma_alloc_data {
|
||||
uint64_t virt_addr;
|
||||
uint64_t phys_addr;
|
||||
uint64_t size_bytes;
|
||||
} dma_alloc_data_t;
|
||||
|
||||
typedef struct fb_info_data {
|
||||
uint64_t fb_addr;
|
||||
uint64_t width;
|
||||
|
||||
Reference in New Issue
Block a user