Move some config options from start into config.h
This commit is contained in:
parent
ff3ad1e719
commit
cda703873b
2 changed files with 8 additions and 6 deletions
8
config.h
Normal file
8
config.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
/*
|
||||
* Number of CPU's For now, this is hard-coded here. It will likely be
|
||||
* dynamically discovered in the future.
|
||||
*/
|
||||
#define NCPU 3
|
||||
|
||||
/* Maximum number of files open */
|
||||
#define NOFILE 10
|
6
start.c
6
start.c
|
@ -1,12 +1,6 @@
|
|||
#include <riscv.h>
|
||||
#include <types.h>
|
||||
|
||||
/*
|
||||
* Number of CPU's For now, this is hard-coded here. It will likely be in a
|
||||
* header, or dynamically discovered in the future
|
||||
*/
|
||||
#define NCPU 3
|
||||
|
||||
/* QEMU memory maps a UART device here. */
|
||||
#define UART_BASE ((volatile char *)0x10000000)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue