Move some config options from start into config.h

This commit is contained in:
Imbus 2025-06-26 05:56:41 +02:00
parent ff3ad1e719
commit cda703873b
2 changed files with 8 additions and 6 deletions

8
config.h Normal file
View 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

View file

@ -1,12 +1,6 @@
#include <riscv.h> #include <riscv.h>
#include <types.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. */ /* QEMU memory maps a UART device here. */
#define UART_BASE ((volatile char *)0x10000000) #define UART_BASE ((volatile char *)0x10000000)