marco_g
121c1d832e
2005-06-30 Marco Gerards <metgerards@student.han.nl>
...
* configure.ac: Fix the test for cross-compiling.
* genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
define GRUB_UTIL anymore.
* util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
so this function works on other systems than just big endian.
(load_modules): Likewise.
(add_segments): Likewise.
2005-06-30 10:21:37 +00:00
hollisb
a5ce3a4a04
2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
...
* commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
instead of grub_ieee1275_interpret.
(grub_halt_init): New function.
(grub_halt_fini): Likewise.
(GRUB_MOD_INIT): Correct message grammar.
* commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
instead of grub_ieee1275_interpret.
(grub_reboot_init): New function.
(grub_reboot_fini): Likewise.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
util/i386/pc/misc.c with commands/ieee1275/halt.c,
commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
* disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
function.
* include/grub/powerpc/ieee1275/console.h (grub_console_fini):
Add prototype.
* include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
prototype.
(grub_halt): Likewise.
* include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
(cmain): Remove __attribute__((unused)).
* kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
(grub_heap_len): Likewise.
(grub_machine_fini): New function.
* kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
(grub_halt): Likewise.
* term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
function.
* util/powerpc/ieee1275/misc.c: New file.
2005-03-26 17:34:50 +00:00
hollisb
d0ff18e182
2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
...
* util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
(note_path): Remove variable.
(GRUB_IEEE1275_NOTE_NAME): New macro.
(GRUB_IEEE1275_NOTE_TYPE): Likewise.
(grub_ieee1275_note_hdr): New structure.
(grub_ieee1275_note_desc): Likewise.
(grub_ieee1275_note): Likewise.
(load_note): Remove `dir' argument. All callers updated. Remove
`note_img' and `path'. Do not load a file from `note_path'.
Initialize a struct grub_ieee1275_note and write that to `out'.
Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
2005-01-09 18:11:05 +00:00
marco_g
0b412211b3
2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
...
* TODO: Add note about endianness in grub-mkimage.
* boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
section.
* conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
(grub_mkimage_SOURCES): New target.
* include/grub/kernel.h (grub_start_addr): Remove variable.
(grub_end_addr): Likewise.
(grub_total_module_size): Likewise.
(grub_kernel_image_size): Likewise.
(GRUB_MODULE_MAGIC): New constant.
(grub_module_info): New structure.
(grub_arch_modules_addr): New prototype.
(grub_get_end_addr): Remove prototype.
* include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
* include/grub/powerpc/ieee1275/kernel.h: New file.
* include/grub/util/misc.h (grub_util_get_fp_size): New
prototype.
(grub_util_read_at): Likewise.
(grub_util_write_image_at): Likewise.
* kern/main.c (grub_get_end_addr): Remove function.
(grub_load_modules): Call grub_arch_modules_addr instead of using
grub_end_addr. Look for a grub_module_info struct in memory. Use
the grub_module_info fields instead of calling grub_get_end_addr
as loop conditions. Move grub_add_unused_region code here.
(grub_add_unused_region): Remove function.
* kern/i386/pc/init.c: Include grub/cache.h.
(grub_machine_init): Remove call to grub_get_end_addr. Remove
one call to add_mem_region.
(grub_arch_modules_addr): New function.
* kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
(grub_total_module_size): Likewise.
Include grub/machine/kernel.h.
(grub_arch_modules_addr): New function.
* util/grub-emu.c (grub_end_addr): Remove variable.
(grub_total_module_size): Likewise.
(grub_arch_modules_addr): New function.
* util/misc.c: Include unistd.h.
(grub_util_get_fp_size): New function.
(grub_util_read_at): Likewise.
(grub_util_write_image_at): Likewise.
(grub_util_read_image): Call grub_util_read_at.
(grub_util_write_image): Call grub_util_write_image_at.
* util/i386/pc/grub-mkimage.c (generate_image): Allocate
additional memory in kernel_img for a struct grub_module_info.
Fill in that grub_module_info.
* util/powerpc/ieee1275/grub-mkimage.c: New file.
2005-01-04 14:01:45 +00:00