kernel: do not rely on COMMON sections for GMAPPED refs

Seems to break with binutils 2.35.
This commit is contained in:
Lephe 2020-09-22 15:17:31 +02:00
parent e5abe03b89
commit 589c25c10c
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
2 changed files with 3 additions and 2 deletions

View file

@ -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 @callback Callback function, may take no argument in practice
@arg Argument @arg Argument
Returns the return value of the callback. */ 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 */ #endif /* GINT_GINT */

View file

@ -21,7 +21,8 @@
@conf_intc Configuration function @conf_intc Configuration function
@arg Additional argument for conf_intc @arg Additional argument for conf_intc
Returns the previous VBR address. */ 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 /* cpu_setCPUOPM(): Change the CPU Operation Mode register