My Project
Chargement...
Recherche...
Aucune correspondance
bootloader.h
Aller à la documentation de ce fichier.
1
7#ifndef BOOTLOADER_CONFIG
8#define BOOTLOADER_CONFIG
9
10#include <manux/types.h> // uint...
11#include <manux/string.h> // memcpy
12
16#define MULTIBOOT_SIGNATURE 0x2BADB002
17
22
26#ifndef MANUX_INIT_SIGNATURE
27# define MANUX_INIT_SIGNATURE 0x01c0ffee
28#endif
29
33#define MULTIBOOT_PAGE_ALIGN 0x00000001
34#define MULTIBOOT_MEMORY_INFO 0x00000002
35#define MULTIBOOT_INFO_CMDLINE 0x00000004
36
41typedef struct _InfoSysteme {
42 uint32_t flags; // Pour compatibilité avec multiboot
48
49
55
61
70void bootloaderInitialiser(void);
71
77void bootloaderLireLigneCmd(void);
78
79#endif
80
unsigned long uint32_t
Definition types.h:20
uint32_t signatureBootloader
Valeur passée via eax par le bootloader pour s'identifier.
Definition bootloader.c:23
void bootloaderLireLigneCmd(void)
Analyse de la ligne de commande et modification de certains paramètres. Cette fonction estparticulièr...
Definition bootloader.c:104
struct _InfoSysteme InfoSysteme
Structure passée en paramètre par la phase d'init (cf init-manux.nasm)
InfoSysteme * _infoSysteme
Adresse de la zone mémoire dans laquelle le bootloader nous fournit les informations sur le système.
Definition bootloader.c:35
InfoSysteme infoSysteme
Stockage des informations décrivant le système fournies par le bootloader.
Definition bootloader.c:29
void bootloaderInitialiser(void)
Lecture des informations fournies par le bootloader.
Definition bootloader.c:46
Structure passée en paramètre par la phase d'init (cf init-manux.nasm)
Definition bootloader.h:41
char * ligneCommande
Definition bootloader.h:46
uint32_t flags
Definition bootloader.h:42
uint32_t peripheriqueDemarrage
Definition bootloader.h:45
uint32_t memoireDeBase
Definition bootloader.h:43
uint32_t memoireEtendue
Definition bootloader.h:44