summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/gdt.h
blob: 5e40cd7ee943fb5a5fe95d06aceb062b6382f8df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

enum {
	SEG_null,
	// order dictated by SYSENTER
	SEG_r0code,
	SEG_r0data,
	SEG_r3code,
	SEG_r3data,
	SEG_TSS,

	SEG_end
};

void gdt_init(void);
void gdt_farjump(int segment);