From cda703873bb15e795d2f902a6676ce73abab87a8 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 26 Jun 2025 05:56:41 +0200 Subject: [PATCH] Move some config options from start into config.h --- config.h | 8 ++++++++ start.c | 6 ------ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 config.h diff --git a/config.h b/config.h new file mode 100644 index 0000000..5c778ee --- /dev/null +++ b/config.h @@ -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 diff --git a/start.c b/start.c index e07633f..27ef439 100644 --- a/start.c +++ b/start.c @@ -1,12 +1,6 @@ #include #include -/* - * 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)