Draft: start lab 3

This commit is contained in:
2025-03-23 11:21:31 +08:00
parent a6dc454a4c
commit 6156975775
5 changed files with 122 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
#include <mman.h>
#include <shell.h>
#include <vector.h>
#include <utils.h>
void init(void *dtb, file_node_t **initrd_root)
{
@@ -34,6 +35,10 @@ void main(void *dtb)
file_node_t *initrd_root = 0x0;
init(dtb, &initrd_root);
uint64_t el;
R_SYSREG(el, CurrentEL);
INFOR(el);
void *page1 = allocate_page(1);
INFOR(page1);