On Sep 7, Jan Fricke wrote:
> Hallo!
> This is my second try to load the BeOS kernel from grub. It worked on my
> computer, but if I ommit the "debugging output" in the function
> beos_boot in the file asm.S then it doesn't. Can anybody help or explain
> why?
I assume with debugging output you mean this:
> + movw $0xb800, %ax
> + movw %ax, %es
> +
> + movb $0x40, %es:0
> +
> + mov $0x1000, %ax
> + mov %ax, %ds
> +
> + mov %ds:0x2a6, %al
> + mov %al, %es:2
> + mov %ds:0x2a7, %al
> + mov %al, %es:4
I would guess that it is important that %ds points to the segment
where zBEOS gets loaded (segment 0x1000).
You should also try to use the "w/b/l" suffixes for the assembler
instructions.
Jochen