[add] laos using xv6-riscv thought
This commit is contained in:
8
laos/include/asm.h
Normal file
8
laos/include/asm.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "defs.h"
|
||||
|
||||
#ifndef ASM_H__
|
||||
#define ASM_H__
|
||||
|
||||
#define CPUID 0x020
|
||||
|
||||
#endif
|
||||
@@ -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
6
laos/include/defs.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef DEFS_H__
|
||||
#define DEFS_H__
|
||||
|
||||
#define NCPU 1
|
||||
|
||||
#endif
|
||||
0
laos/include/la32r.h
Normal file
0
laos/include/la32r.h
Normal file
0
laos/include/util.h
Normal file
0
laos/include/util.h
Normal file
Reference in New Issue
Block a user