1 |
/* |
/* |
2 |
* GRUB -- GRand Unified Bootloader |
* GRUB -- GRand Unified Bootloader |
3 |
* Copyright (C) 2002 Free Software Foundation, Inc. |
* Copyright (C) 2002, 2005 Free Software Foundation, Inc. |
4 |
* |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
6 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
31 |
grub_size_t size; |
grub_size_t size; |
32 |
}; |
}; |
33 |
|
|
34 |
/* The start address of the kernel. */ |
/* "gmim" (GRUB Module Info Magic). */ |
35 |
extern grub_addr_t grub_start_addr; |
#define GRUB_MODULE_MAGIC 0x676d696d |
36 |
|
|
37 |
/* The end address of the kernel. */ |
struct grub_module_info |
38 |
extern grub_addr_t grub_end_addr; |
{ |
39 |
|
/* Magic number so we know we have modules present. */ |
40 |
/* The total size of modules including their headers. */ |
grub_uint32_t magic; |
41 |
extern grub_size_t grub_total_module_size; |
/* The offset of the modules. */ |
42 |
|
grub_off_t offset; |
43 |
|
/* The size of all modules plus this header. */ |
44 |
|
grub_size_t size; |
45 |
|
}; |
46 |
|
|
47 |
/* The size of the kernel image. */ |
extern grub_addr_t grub_arch_modules_addr (void); |
|
extern grub_size_t grub_kernel_image_size; |
|
48 |
|
|
49 |
/* The start point of the C code. */ |
/* The start point of the C code. */ |
50 |
void grub_main (void); |
void grub_main (void); |
52 |
/* The machine-specific initialization. This must initialize memory. */ |
/* The machine-specific initialization. This must initialize memory. */ |
53 |
void grub_machine_init (void); |
void grub_machine_init (void); |
54 |
|
|
|
/* Return the end address of the core image. */ |
|
|
grub_addr_t grub_get_end_addr (void); |
|
|
|
|
55 |
/* Register all the exported symbols. This is automatically generated. */ |
/* Register all the exported symbols. This is automatically generated. */ |
56 |
void grub_register_exported_symbols (void); |
void grub_register_exported_symbols (void); |
57 |
|
|