f124497815
* There is now 2 structures, preloaded_elf32_image and preloaded_elf64_image, which both inherit from preloaded_image. * For now I've just hardcoded in use of preloaded_elf32_image, but the bootloader ELF code will shortly be converted to use templates which use the appropriate structure. The kernel will be changed later when I add ELF64 support to it. * All kernel_args data is now compatible between 32-bit and 64-bit kernels.
29 lines
569 B
C
29 lines
569 B
C
/*
|
|
* Copyright 2005, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef KERNEL_BOOT_ARCH_H
|
|
#define KERNEL_BOOT_ARCH_H
|
|
|
|
#include <SupportDefs.h>
|
|
#include <boot/elf.h>
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* ELF support */
|
|
|
|
extern status_t boot_arch_elf_relocate_rel(preloaded_elf32_image *image,
|
|
struct Elf32_Rel *rel, int rel_len);
|
|
extern status_t boot_arch_elf_relocate_rela(preloaded_elf32_image *image,
|
|
struct Elf32_Rela *rel, int rel_len);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* KERNEL_BOOT_ARCH_H */
|