mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
Kernel: Tell compiler about invisible calls
This makes the Kernel build cleanly with -Wmissing-declarations.
This commit is contained in:
parent
8a41ce5cc7
commit
936d5dcc01
3 changed files with 47 additions and 28 deletions
|
@ -89,6 +89,12 @@ namespace Kernel {
|
|||
[[noreturn]] static void init_stage2();
|
||||
static void setup_serial_debug();
|
||||
|
||||
// boot.S expects these functions precisely this this. We declare them here
|
||||
// to ensure the signatures don't accidentally change.
|
||||
extern "C" void init_finished(u32 cpu);
|
||||
extern "C" [[noreturn]] void init_ap(u32 cpu, Processor* processor_info);
|
||||
extern "C" [[noreturn]] void init();
|
||||
|
||||
VirtualConsole* tty0;
|
||||
|
||||
static Processor s_bsp_processor; // global but let's keep it "private"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue