[add] laos using xv6-riscv thought

This commit is contained in:
bLueriVerLHR
2023-05-18 00:05:52 +08:00
parent 399c978c09
commit 5d31bf294c
21 changed files with 462 additions and 22 deletions

8
laos/include/asm.h Normal file
View File

@@ -0,0 +1,8 @@
#include "defs.h"
#ifndef ASM_H__
#define ASM_H__
#define CPUID 0x020
#endif

View File

@@ -1,5 +1,10 @@
#include "defs.h"
#ifndef COMMON_H__
#define COMMON_H__
void main();
void start();
void _entry() __attribute__ ((section (".entry")));
#endif // COMMON_H__

6
laos/include/defs.h Normal file
View File

@@ -0,0 +1,6 @@
#ifndef DEFS_H__
#define DEFS_H__
#define NCPU 1
#endif

0
laos/include/la32r.h Normal file
View File

0
laos/include/util.h Normal file
View File