From 589c25c10cb5a472265c96b354817d574a453c8e Mon Sep 17 00:00:00 2001 From: Lephe Date: Tue, 22 Sep 2020 15:17:31 +0200 Subject: [PATCH] kernel: do not rely on COMMON sections for GMAPPED refs Seems to break with binutils 2.35. --- include/gint/gint.h | 2 +- src/kernel/cpu.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/gint/gint.h b/include/gint/gint.h index 0b2649c..e086e4b 100644 --- a/include/gint/gint.h +++ b/include/gint/gint.h @@ -135,6 +135,6 @@ void *gint_inthandler(int event_code, void const *handler, size_t size); @callback Callback function, may take no argument in practice @arg Argument Returns the return value of the callback. */ -int (*gint_inth_callback)(int (*function)(void *arg), void *arg); +extern int (*gint_inth_callback)(int (*function)(void *arg), void *arg); #endif /* GINT_GINT */ diff --git a/src/kernel/cpu.h b/src/kernel/cpu.h index 22ef2e2..dd158ea 100644 --- a/src/kernel/cpu.h +++ b/src/kernel/cpu.h @@ -21,7 +21,8 @@ @conf_intc Configuration function @arg Additional argument for conf_intc Returns the previous VBR address. */ -uint32_t (*cpu_setVBR)(uint32_t vbr, void (*conf_intc)(int arg), int arg); +extern uint32_t (*cpu_setVBR)(uint32_t vbr, void (*conf_intc)(int arg), + int arg); /* cpu_setCPUOPM(): Change the CPU Operation Mode register