1/** 2 * \file 3 * \brief x86-64 architecture initialization 4 */ 5 6/* 7 * Copyright (c) 2007, 2008, 2009, 2010, ETH Zurich. 8 * All rights reserved. 9 * 10 * This file is distributed under the terms in the attached LICENSE file. 11 * If you do not find this file, copies can be found by writing to: 12 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. 13 */ 14 15#ifndef INIT_H 16#define INIT_H 17 18/// Magic value passed when kernel is booted by itself (and not bootloader) 19#define KERNEL_BOOT_MAGIC 0x33e1f154 20 21#ifndef __ASSEMBLER__ 22 23extern bool idt_initialized; 24 25void arch_init(uint32_t magic, void *pointer) __attribute__ ((noreturn)); 26 27/** 28 * Fast system call entry point (in Assembler). 29 */ 30extern void syscall_entry(void); 31 32#endif 33 34#endif 35