MonkOS
v0.1
A simple 64-bit operating system (x86_64)
segments.h
Go to the documentation of this file.
1
//============================================================================
2
/// @file segments.h
3
/// @brief Memory segment definitions.
4
//
5
// Copyright 2016 Brett Vickers.
6
// Use of this source code is governed by a BSD-style license that can
7
// be found in the MonkOS LICENSE file.
8
//============================================================================
9
10
#pragma once
11
12
#include <
core.h
>
13
14
// Segment selector values for segment registers.
15
#define SEGMENT_SELECTOR_KERNEL_DATA 0x08
16
#define SEGMENT_SELECTOR_KERNEL_CODE 0x10
17
#define SEGMENT_SELECTOR_USER_DATA 0x18
18
#define SEGMENT_SELECTOR_USER_CODE 0x20
19
#define SEGMENT_SELECTOR_TSS 0x28
core.h
Core include file.
include
kernel
mem
segments.h
Generated by
1.8.11