From f01e48444829cce9eec25f4562778da0ed4ae66c Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Sun, 5 Mar 2017 22:37:54 +0100 Subject: gdt: add simple gdt implementation Add a simple Global Descriptor Table implementation based on [0]. [0] http://www.lowlevel.eu/wiki/Global_Descriptor_Table --- include/garmos/gdt.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 include/garmos/gdt.h (limited to 'include/garmos/gdt.h') diff --git a/include/garmos/gdt.h b/include/garmos/gdt.h new file mode 100644 index 0000000..b49f42d --- /dev/null +++ b/include/garmos/gdt.h @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2017 Robin Krahl + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation, either version 3 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + */ + +#ifndef GARMOS_GDT_H +#define GARMOS_GDT_H + +#include + +void gdt_init(void); + +#endif -- cgit v1.2.1