Files
magenta/arch/x86_64/include/mango/machine/init.h
T

29 lines
619 B
C
Raw Normal View History

2024-11-02 11:31:51 +00:00
#ifndef MANGO_X86_64_INIT_H_
#define MANGO_X86_64_INIT_H_
#include <stddef.h>
#include <stdint.h>
2023-03-20 20:41:39 +00:00
#ifdef __cplusplus
extern "C" {
#endif
#define __X2(x) #x
2026-02-08 11:36:16 +00:00
#define __X(x) __X2(x)
2026-02-08 11:36:16 +00:00
#define __define_initcall(fn, id) \
static initcall_t __initcall_##fn##id __used __section( \
".initcall" __X(id) ".init") \
= (fn)
extern int ml_init(uintptr_t arg);
2023-06-08 20:46:43 +01:00
extern const struct framebuffer_varinfo *bootfb_varinfo(void);
extern const struct framebuffer_fixedinfo *bootfb_fixedinfo(void);
2023-03-20 20:41:39 +00:00
#ifdef __cplusplus
}
#endif
#endif