aboutsummaryrefslogtreecommitdiff
path: root/src/boot.h
blob: 646fb4c69037fd697537e13552d6825a74dc0f13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* *** glitch kernel ***
 * spdx-license-identifier: ISC
 * description: kernel boot information
 * */

#pragma once

typedef struct {
  /* kernel command line */
  char cmdline[64];

  /* memory map */
  unsigned bitmap[1024 * 32];

  /* module */
  unsigned module_start;
  unsigned module_end;
  char module_cmdline[64];
} boot_info_t;

/* TODO _Static_assert((1024 * 32 * sizeof(unsigned) * 8) == (1024 * 1024), "bitmap size check"); */