Kevin Wolf writes:
> Am 23.01.2012 13:49, schrieb Göran Weinholt:
>> There are two special cases in the address fields of the multiboot
>> format. If mh_load_end_addr is zero then the whole image file should
>> be loaded and if mh_bss_end_addr is zero then there is no bss
-off-by: Göran Weinholt
Tested-by: Alexander Graf
---
hw/multiboot.c | 15 ++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/hw/multiboot.c b/hw/multiboot.c
index b4484a3..db28328 100644
--- a/hw/multiboot.c
+++ b/hw/multiboot.c
@@ -202,10 +202,23 @@ int
dr is zero then there is no bss segment.
With this change it is again possible to boot kernels where these
fields are zero.
Signed-off-by: Göran Weinholt
Tested-by: Alexander Graf
---
hw/multiboot.c | 15 ++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/hw/multibo
Alexander Graf writes:
> On 19.12.2011, at 23:01, Anthony Liguori wrote:
>
> On 12/19/2011 11:35 AM, Alexander Graf wrote:
>
> On 24.07.2011, at 17:55, Göran Weinholt wrote:
>
> Multiboot images can specify a bss segment. The boot loader mus
data should be read from the image and how much
memory should be reserved to the bss segment.
Signed-off-by: Göran Weinholt
---
hw/multiboot.c | 14 +-
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/hw/multiboot.c b/hw/multiboot.c
index 2426e84..a1d3f41 100644
--- a/hw
Alexander Graf writes:
> On 24.07.2011, at 12:14, Göran Weinholt wrote:
>
>> Multiboot images can specify a bss segment. The boot loader must clear
>> the memory of the bss and ensure that no modules or structures are
>> allocated inside it. Several fields are provided in
data should be read from the image and how much
memory should be reserved to the bss segment.
Signed-off-by: Göran Weinholt
---
hw/multiboot.c |9 ++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/hw/multiboot.c b/hw/multiboot.c
index 2426e84..4cff6aa 100644
--- a/hw
* 16 + 4;
+}
+#endif
+uint32_t *registers = (uint32_t *)mem_buf;
for(i = 0; i < 8; i++) {
registers[i] = env->regs[i];
--
Göran Weinholt <[EMAIL PROTECTED]>
I was making donuts and now I'm on a bus!