020a25ce46
For now I've just put all the stub functions that are needed to link the kernel into a file called stubs.cpp. I've not yet moved across the interrupt handling code or the ELF64 relocation code to the x86 directory. Once those have been moved I can get rid of the x86_64 headers/source directories.
28 lines
562 B
C
28 lines
562 B
C
/*
|
|
* Copyright 2004-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _KERNEL_ARCH_x86_SYSTEM_INFO_H
|
|
#define _KERNEL_ARCH_x86_SYSTEM_INFO_H
|
|
|
|
|
|
#include <OS.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef __x86_64__
|
|
status_t get_current_cpuid(cpuid_info *info, uint32 eax);
|
|
uint32 get_eflags(void);
|
|
void set_eflags(uint32 value);
|
|
|
|
status_t _user_get_cpuid(cpuid_info *info, uint32 eax, uint32 cpu);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _KRENEL_ARCH_x86_SYSTEM_INFO_H */
|