kernel: Fix unsafe cross-section reference in init_tick()

This is a small wrapper function which calls other init code
and is only called from init code; mark it INIT_ATTR to fix
the unsafe reference.

Change-Id: I5525461e9fd63955c6396d3151d209c457b3d798
This commit is contained in:
Aidan MacDonald 2022-12-03 14:10:19 +00:00
parent e8ad52be94
commit b650e774a1

View file

@ -23,7 +23,7 @@
#include "config.h"
#include "system.h" /* for NULL */
extern void init_tick(void);
extern void init_tick(void) INIT_ATTR;
#define HZ 100 /* number of ticks per second */