blob: 697248ecc907f8e46f2a595fb9d4e982a210adbe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// MIT License, Copyright (c) 2020 Marvin Borner
#ifndef LOAD_H
#define LOAD_H
#include <proc.h>
#define EFLAGS_ALWAYS 0x2 // Always one
#define EFLAGS_INTERRUPTS 0x200 // Enable interrupts
#define GDT_DATA_OFFSET 0x10 // Data segment offset in GDT
#define GDT_CODE_OFFSET 0x8 // Code segment offset in GDT
void bin_load(char *path, struct proc *proc);
#endif
|