My Project
Chargement...
Recherche...
Aucune correspondance
plan-memoire-pc.h
Aller à la documentation de ce fichier.
1
8/*----------------------------------------------------------------------------*/
9/* Organisation de la mémoire lors du boot. */
10/*----------------------------------------------------------------------------*/
11/*
12 * Positionnement du code d'init, utilisé en cas de boot sur disquette. On peut
13 * réutiliser cette mémoire dans le noyau, puisque le code d'init est terminé
14 * lorsque le noyau est initialisé.
15 */
16#ifndef MANUX_BOOT_START_ADDRESS
17# define MANUX_BOOT_START_ADDRESS 0x7c00
18#endif
19#ifndef MANUX_INIT_START_ADDRESS
20# define MANUX_INIT_START_ADDRESS 0x7e00
21#endif
22
23/*----------------------------------------------------------------------------*/
24/* Organisation de la mémoire au démarrage. */
25/*----------------------------------------------------------------------------*/
32#ifndef MANUX_ADRESSE_BIOS
33# define MANUX_ADRESSE_BIOS 0x80000
34#endif
35
36#ifndef MANUX_BIOS_NB_PAGES
37# define MANUX_BIOS_NB_PAGES 0x80
38#endif
39
43#ifndef MANUX_ADRESSE_ECRAN
44# define MANUX_ADRESSE_ECRAN 0xb8000
45#endif
46
50#ifndef MANUX_ADRESSE_IDT
51# define MANUX_ADRESSE_IDT 0x1000 //0x48000 //0x41000 //0x31000
52#endif
53
54#ifndef MANUX_IDT_NB_PAGES
55# define MANUX_IDT_NB_PAGES 1
56#endif
57
61#ifndef MANUX_ADRESSE_GDT
62# define MANUX_ADRESSE_GDT 0x2000 //0x49000 //0x42000 //0x32000
63#endif
64
65#ifndef MANUX_GDT_NB_PAGES
66# define MANUX_GDT_NB_PAGES 1
67#endif
68
72#ifndef MANUX_KERNEL_START_ADDRESS
73# define MANUX_KERNEL_START_ADDRESS 0x10000
74#endif
75
76#ifndef MANUX_STACK_SEG_16
77# define MANUX_STACK_SEG_16 0x9000
78#endif
79
83#ifndef MANUX_TAILLE_PILE
84# define MANUX_TAILLE_PILE 16384
85#endif
86
87#ifndef MANUX_ELF_HEADER_SIZE
88# define MANUX_ELF_HEADER_SIZE 0x80
89#endif
90
91#ifndef MANUX_NB_SECT_INIT
92# define MANUX_NB_SECT_INIT 0x02
93#endif
94