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
|
@ -17,13 +17,31 @@
|
|||
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <grub/symbol.h>
|
||||
#include <grub/cpu/kernel.h>
|
||||
|
||||
.extern __bss_start
|
||||
.extern _end
|
||||
|
||||
.text
|
||||
.align 2
|
||||
.globl _start
|
||||
_start:
|
||||
.globl 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 13, 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue