]> git.proxmox.com Git - qemu.git/commit - hw/ppc_newworld.c
PPC: calculate kernel,initrd,cmdline locations dynamically
authorAlexander Graf <agraf@suse.de>
Wed, 15 Jun 2011 21:27:19 +0000 (23:27 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 17 Jun 2011 00:58:27 +0000 (02:58 +0200)
commitb9e17a345382ebb91446fd6cf0bb8f0eb5ba5706
tree718cacaede8d8b12b0f77c6e003cea0c893779b9
parent826e7b827c5f83e88d5aa84c0bf0b3459f28ec35
PPC: calculate kernel,initrd,cmdline locations dynamically

During testing, I was generating a vmlinux binary that easily occupied
more than 20MB of RAM. Since the current -kernel code loads the initrd
at a fixed address behind the kernel, we were overwriting kernel data
when the kernel got too big.

To finally get rid of the issue, let's calculate the initrd and cmdline
addresses relative to the kernel size, so we can have kernels and initrds
that are as big as they want to - as long as they fit in RAM.

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc_mac.h
hw/ppc_newworld.c
hw/ppc_oldworld.c