2020-12-06 23:47:53 -05:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
2020-11-28 16:24:50 -05:00
|
|
|
#include <kernaux/multiboot2.h>
|
|
|
|
|
2020-11-29 07:57:34 -05:00
|
|
|
#include <assert.h>
|
2020-11-28 16:24:50 -05:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2020-11-29 15:08:44 -05:00
|
|
|
#include "multiboot2_example1.h"
|
2020-11-28 16:24:50 -05:00
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
2020-11-29 07:57:34 -05:00
|
|
|
assert(KernAux_Multiboot2_is_valid(
|
2020-11-29 15:08:44 -05:00
|
|
|
(struct KernAux_Multiboot2*)multiboot2_example1
|
2020-11-29 07:57:34 -05:00
|
|
|
));
|
|
|
|
|
2020-11-28 16:24:50 -05:00
|
|
|
KernAux_Multiboot2_print(
|
2020-11-29 15:08:44 -05:00
|
|
|
(struct KernAux_Multiboot2*)multiboot2_example1,
|
2020-11-28 16:24:50 -05:00
|
|
|
(void (*)(const char *format, ...))printf
|
|
|
|
);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|