Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
triazo
/
kernel
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
3
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b135dd23
authored
Oct 19, 2015
by
triazo
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add multiboot header
parent
f68e09e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
src/multiboot.h
src/multiboot.h
0 → 100644
View file @
b135dd23
/*
multiboot.h defines structures used in the multiboot standard
much of this file was closely inspired by the gnu version
*/
#ifndef _MULTIBOOT_INC
#define _MULTIBOOT_INC
#include <stdint.h>
typedef
struct
{
uint32_t
size
;
uint64_t
base_addr
;
uint64_t
length
;
uint32_t
type
;
}
multiboot_memory_map
;
typedef
struct
{
uint32_t
tabsize
;
uint32_t
strsize
;
uint32_t
addr
;
uint32_t
reserved
;
}
aout_symbol_table
;
typedef
struct
{
uint32_t
flags
;
uint32_t
mem_lower
;
uint32_t
mem_upper
;
uint32_t
boot_device
;
uint32_t
cmdline
;
uint32_t
mods_count
;
uint32_t
mods_addr
;
union
{
aout_symbol_table
aout_sym
;
}
u
;
uint32_t
mmap_length
;
multiboot_memory_map
*
mmap_addr
;
}
multiboot_info
;
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment