aboutsummaryrefslogtreecommitdiff
path: root/kernel/multiboot.c
blob: eafe4c523c8b1de72c322ad5f7faa505f5374c10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// MIT License, Copyright (c) 2021 Marvin Borner

#include <assert.h>
#include <def.h>
#include <multiboot.h>

static struct multiboot_info *info = NULL;

void multiboot_init(u32 magic, u32 addr)
{
	assert(magic == MULTIBOOT_MAGIC);
	info = (void *)addr;

	if (info->flags & MULTIBOOT_INFO_CMDLINE) {
		printf("CMDLINE: '%s'\n", info->cmdline);
	}
}