linux.c revision 2
2N/A * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
2N/A/* /virtual-memory/translations property layout */
2N/Astruct grub_ieee1275_translation {
2N/Astatic int of_num_trans;
2N/Astatic char *linux_args;
2N/Astruct linux_bootstr_info {
2N/Astruct linux_hdrs {
2N/A unsigned short hdrs_version;
2N/A unsigned short root_flags;
2N/A unsigned int __deprecated_ramdisk_image;
2N/A unsigned int ramdisk_size;
2N/A char *reboot_command;
2N/A unsigned long ramdisk_image;
2N/Astatic grub_err_t
2N/Agrub_linux_boot (void)
2N/A if (initrd_addr)
2N/A return GRUB_ERR_NONE;
2N/Astatic grub_err_t
2N/Agrub_linux_release_mem (void)
2N/A linux_args = 0;
2N/A linux_addr = 0;
2N/A initrd_addr = 0;
2N/A return GRUB_ERR_NONE;
2N/Astatic grub_err_t
2N/Agrub_linux_unload (void)
2N/Astatic grub_addr_t
2N/Astatic grub_err_t
2N/A if (linux_size == 0)
2N/A return grub_errno;
2N/Astatic grub_err_t
2N/A if (! linux_args)
2N/A initrd_addr = 0;
2N/A return grub_errno;
2N/Astatic grub_err_t
2N/A if (!grub_errno)
2N/A return grub_errno;
2N/Adetermine_phys_base (void)
2N/A auto int NESTED_FUNC_ATTR get_physbase (grub_uint64_t addr, grub_uint64_t len __attribute__((unused)), grub_uint32_t type);
2N/A int NESTED_FUNC_ATTR get_physbase (grub_uint64_t addr, grub_uint64_t len __attribute__((unused)), grub_uint32_t type)
2N/Afetch_translations (void)
2N/A for (i = 0; i < of_num_trans; i++)
2N/A (unsigned long) grub_phys_start,
2N/A (unsigned long) grub_phys_end);