Changeset View
Changeset View
Standalone View
Standalone View
stand/efi/loader/conf.c
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
#if defined(LOADER_NET_SUPPORT) | #if defined(LOADER_NET_SUPPORT) | ||||
&efinetif, | &efinetif, | ||||
#endif | #endif | ||||
NULL | NULL | ||||
}; | }; | ||||
extern struct console efi_console; | extern struct console efi_console; | ||||
extern struct console comconsole; | extern struct console comconsole; | ||||
#if defined(__amd64__) || defined(__i386__) | #if !defined(__riscv) | ||||
tsoome: IMO, as nullconsole and spinconsole are just software devices, there is no reason to exclude… | |||||
extern struct console nullconsole; | extern struct console nullconsole; | ||||
#endif | |||||
#if defined(__amd64__) || defined(__i386__) | |||||
extern struct console spinconsole; | extern struct console spinconsole; | ||||
#endif | #endif | ||||
struct console *consoles[] = { | struct console *consoles[] = { | ||||
&efi_console, | &efi_console, | ||||
&comconsole, | &comconsole, | ||||
#if defined(__amd64__) || defined(__i386__) | #if !defined(__riscv) | ||||
&nullconsole, | &nullconsole, | ||||
#endif | |||||
#if defined(__amd64__) || defined(__i386__) | |||||
&spinconsole, | &spinconsole, | ||||
#endif | #endif | ||||
NULL | NULL | ||||
}; | }; |
IMO, as nullconsole and spinconsole are just software devices, there is no reason to exclude them for some platforms. Otherwise you would need to start #ifdef game in loader/main.c as well.