AquilaOS documentation
How it works, and its code
Toggle main menu visibility
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1
#ifndef _X86_CONFIG_H
2
#define _X86_CONFIG_H
3
4
/* x86: what the kernel needs to know of the architecture, i386 or x86_64
5
* (the generic part is include/config.h). */
6
7
#ifndef __x86_64__
8
#define ARCH X86
9
#define ARCH_X86
10
#define ARCH_BITS 32
11
#define MULTIBOOT_GFX 1
12
13
/* the machine of the programs it runs (sys/binfmt/elf.c) */
14
#define ELF_MACHINE 0x0003
/* EM_386 */
15
16
#define UTSNAME_MACHINE "i386"
17
#else
18
#define ARCH X86_64
19
#define ARCH_X86_64
20
#define ARCH_BITS 64
21
#define MULTIBOOT_GFX 1
22
23
/* the machine of the programs it runs (sys/binfmt/elf.c) */
24
#define ELF_MACHINE 0x003E
/* EM_X86_64 */
25
26
#define UTSNAME_MACHINE "x86_64"
27
#endif
28
29
#include_next <config.h>
30
31
#endif
/* ! _X86_CONFIG_H */
kernel
arch
i386
include
config.h
Generated by
1.18.0