: Add sparc64 loader implementation.
PATCH 5/7 : Add sparc64 loader implementation.
2009-03-03 David S. Miller <[email protected]>
* include/grub/sparc64/ieee1275/loader.h: New file.
* include/grub/sparc64/ieee1275/memory.h: Likewise.
* include/grub/sparc64/kernel.h: Likewise.
* loader/sparc64/ieee1275/linux.c: Likewise.
* loader/sparc64/ieee1275/linux_normal.c: Likewise.
--- include/grub/sparc64/ieee1275/loader.h | 27 +++ include/grub/sparc64/ieee1275/memory.h | 24 +++ include/grub/sparc64/kernel.h | 28 +++ loader/sparc64/ieee1275/linux.c | 318 ++++++++++++++++++++++++++++++++ loader/sparc64/ieee1275/linux_normal.c | 60 ++++++ 5 files changed, 457 insertions(+), 0 deletions(-) create mode 100644 include/grub/sparc64/ieee1275/loader.h create mode 100644 include/grub/sparc64/ieee1275/memory.h create mode 100644 include/grub/sparc64/kernel.h create mode 100644 loader/sparc64/ieee1275/linux.c create mode 100644 loader/sparc64/ieee1275/linux_normal.c
include/grub/sparc64/ieee1275/loader.h new file +27 -0
@@ -0,0 +1,27 @@ +/* +* GRUB -- GRand Unified Bootloader +* Copyright (C) 2009 Free Software Foundation, Inc. +* +* GRUB is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* GRUB is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with GRUB. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef GRUB_LOADER_MACHINE_HEADER +#define GRUB_LOADER_MACHINE_HEADER 1 + +/* The symbol shared between the normal mode and rescue mode +loader. */ +void grub_rescue_cmd_linux (int argc,char *argv[]); +void grub_rescue_cmd_initrd (int argc,char *argv[]); + +#endif /* ! GRUB_LOADER_MACHINE_HEADER */
include/grub/sparc64/ieee1275/memory.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* GRUB -- GRand Unified Bootloader +* Copyright (C) 2009 Free Software Foundation, Inc. +* +* GRUB is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* GRUB is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with GRUB. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef GRUB_MEMORY_MACHINE_HEADER +#define GRUB_MEMORY_MACHINE_HEADER 1 + +#define GRUB_MACHINE_MEMORY_AVAILABLE 1 + +#endif
include/grub/sparc64/kernel.h new file +28 -0
@@ -0,0 +1,28 @@ +/* +* GRUB -- GRand Unified Bootloader +* Copyright (C) 2009 Free Software Foundation, Inc. +* +* GRUB is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* GRUB is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with GRUB. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef GRUB_KERNEL_CPU_HEADER +#define GRUB_KERNEL_CPU_HEADER 1 + +#define GRUB_MOD_ALIGN 0x2000 +#define GRUB_MOD_GAP 0x8000 + +#define GRUB_KERNEL_CPU_PREFIX 0x8 +#define GRUB_KERNEL_CPU_DATA_END 0x48 + +#endif
loader/sparc64/ieee1275/linux.c new file +318 -0
318 lines not on this page · raw message
loader/sparc64/ieee1275/linux_normal.c new file +60 -0
60 lines not on this page · raw message
Signature · 1 line
1.6.1.2.253.ga34a
Quoted 7 lines · David Miller
2009-03-03 David S. Miller <[email protected]>
*
include/grub/sparc64/ieee1275/loader.h: New file.
*include/grub/sparc64/ieee1275/memory.h: Likewise.
*include/grub/sparc64/kernel.h: Likewise.
*loader/sparc64/ieee1275/linux.c: Likewise.
*loader/sparc64/ieee1275/linux_normal.c: Likewise.
Please re-use as much as possible of common code. In example linux_normal.c is there in loader/linux_normal.c.
I think Robert committed some changes that unified a bit these.
From: Vesa Jääskeläinen <[email protected]>
Date: Wed, 04 Mar 2009 13:44:16 +0200
Quoted 9 lines
Quoted 7 lines · David Miller
2009-03-03 David S. Miller <[email protected]>
*
include/grub/sparc64/ieee1275/loader.h: New file.
*include/grub/sparc64/ieee1275/memory.h: Likewise.
*include/grub/sparc64/kernel.h: Likewise.
*loader/sparc64/ieee1275/linux.c: Likewise.
*loader/sparc64/ieee1275/linux_normal.c: Likewise.
Quoted 4 lines
Please re-use as much as possible of common code. In example
linux_normal.cis there inloader/linux_normal.c.I think Robert committed some changes that unified a bit these.
Sure, then powerpc needs the same. I'll unify both sparc and powerpc in this way after my patches are added, promise :-)
Quoted 3 lines
Sure, then powerpc needs the same. I'll unify both sparc and powerpc in this way after my patches are added, promise :-)
If you need powerpc testing you can contact me. I can offer testing on iMac G3. But I'm not yet familiar with powerpc.
Quoted 6 lines
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'phcoder' Serbinenko
Hi,
Quoted 4 lines · phcoder
Quoted 2 lines
Sure, then powerpc needs the same. I'll unify both sparc and powerpc in this way after my patches are added, promise :-)
If you need powerpc testing you can contact me. I can offer testing on iMac G3. But I'm not yet familiar with powerpc.
FWIW, I'm using GRUB to boot my PowerBook without manual intervention, given a few tweaks to the generated grub.cfg, so I can also easily test ppc-related changes if you wish.
It's scary though. I find it breaks at least on Apple quite easily. :)
Signature · 3 lines
Jordi Mallach Pérez -- Debian developer http://www.debian.org/ [email protected] [email protected] http://www.sindominio.net/ GnuPG public key information available at http://oskuro.net/