2008-08-29 Pavel Roskin <proski@gnu.org>
* kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and grub/cpu/kernel.h. Add start label for consistency with other platforms. Add grub_prefix immediately after start. Add jump to the code after grub_prefix. * include/grub/powerpc/kernel.h: Provide valid values for GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
This commit is contained in:
parent
6e5a42fe9a
commit
b497a269db
3 changed files with 31 additions and 5 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2008-08-29 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
|
||||||
|
grub/cpu/kernel.h. Add start label for consistency with other
|
||||||
|
platforms. Add grub_prefix immediately after start. Add jump
|
||||||
|
to the code after grub_prefix.
|
||||||
|
* include/grub/powerpc/kernel.h: Provide valid values for
|
||||||
|
GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
|
||||||
|
|
||||||
2008-08-29 Bean <bean123ch@gmail.com>
|
2008-08-29 Bean <bean123ch@gmail.com>
|
||||||
|
|
||||||
* configure.ac: Change host_os to cygwin for mingw.
|
* configure.ac: Change host_os to cygwin for mingw.
|
||||||
|
|
|
@ -26,8 +26,7 @@
|
||||||
rewrite grub-mkimage to generate valid ELF files. */
|
rewrite grub-mkimage to generate valid ELF files. */
|
||||||
#define GRUB_MOD_GAP 0x8000
|
#define GRUB_MOD_GAP 0x8000
|
||||||
|
|
||||||
/* prefix not supported on powerpc yet. */
|
#define GRUB_KERNEL_CPU_PREFIX 0x4
|
||||||
#define GRUB_KERNEL_CPU_PREFIX 0
|
#define GRUB_KERNEL_CPU_DATA_END 0x44
|
||||||
#define GRUB_KERNEL_CPU_DATA_END 0
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -17,13 +17,31 @@
|
||||||
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <grub/symbol.h>
|
||||||
|
#include <grub/cpu/kernel.h>
|
||||||
|
|
||||||
.extern __bss_start
|
.extern __bss_start
|
||||||
.extern _end
|
.extern _end
|
||||||
|
|
||||||
.text
|
.text
|
||||||
.align 2
|
.align 2
|
||||||
.globl _start
|
.globl start, _start
|
||||||
|
start:
|
||||||
_start:
|
_start:
|
||||||
|
b codestart
|
||||||
|
|
||||||
|
. = EXT_C(start) + GRUB_KERNEL_CPU_PREFIX
|
||||||
|
|
||||||
|
VARIABLE(grub_prefix)
|
||||||
|
/* to be filled by grub-mkelfimage */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Leave some breathing room for the prefix.
|
||||||
|
*/
|
||||||
|
|
||||||
|
. = EXT_C(start) + GRUB_KERNEL_CPU_DATA_END
|
||||||
|
|
||||||
|
codestart:
|
||||||
li 2, 0
|
li 2, 0
|
||||||
li 13, 0
|
li 13, 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue