/*
 *   ASXSoft Nuke - Operating System
 *   Copyright (C) 2009  Patrick Pokatilo
 *
 *   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.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "stdint.h"
#include "stddef.h"
#include "gdt.h"

extern gdt_pointer_t gdt_pointer;

void start_rocket_engine()
{
	gdt_initialize();
	gdt_load();
	gdt_flush_registers(0x08, 0x18, 0x18, 0x00, 0x00, 0x18);

	while(1);
}

Set up GDT and load 32-Bit Segments
Rocket: Set up GDT and load 32-Bit Segments

Signed-off-by: Patrick Pokatilo <cdeca2a4be8a4e00f97216f8984b997a40d1b424@asxsoft.de>
