Page 1 of 1

Bochs - int 15h AX=e820

Posted: Tue Jun 24, 2014 9:26 am
by begin
Hi,

i cant use this (int 15h AX=e820) function in bochs to get a memory map.
I get the following error:
*** int 15h function AX=e820, BX=0000 not yet supported!
But on this page it seems to work.

I compiled bochs with the following options:
./configure --enable-smp \
--enable-cpu-level=6 \
--enable-all-optimizations \
--enable-x86-64 \
--enable-pci \
--enable-vmx \
--enable-debugger \
--enable-disasm \
--enable-debugger-gui \
--enable-logging \
--enable-fpu \
--enable-3dnow \
--enable-sb16=dummy \
--enable-cdrom \
--enable-x86-debugger \
--enable-iodebug \
--disable-plugins \
--disable-docbook \
--enable-avx \
--enable-long-phy-address \
--enable-idle-hack \
--enable-e1000 \
--with-x --with-x11 --with-term

Can someone help me?
Thanks (and sorry for my english)

Edit:
Im on Ubuntu 14.04 x64
I also used the 2.6.6 install version of bochs on windows, same error.

Re: Bochs - int 15h AX=e820

Posted: Tue Jun 24, 2014 10:50 am
by iansjack
"Not yet supported" seems a fairly clear message to me.

Re: Bochs - int 15h AX=e820

Posted: Tue Jun 24, 2014 11:44 am
by Combuster
Bochs has supported it for ages now. I tried breaking it and apparently it also prints that message when EDX has the wrong value - and possibly others.

Re: Bochs - int 15h AX=e820

Posted: Tue Jun 24, 2014 12:34 pm
by begin
Combuster wrote:Bochs has supported it for ages now. I tried breaking it and apparently it also prints that message when EDX has the wrong value - and possibly others.
Thank you for that, I found my mistake.
A missing "[BITS X]" in my include file translated

Code: Select all

mov		EDX, 0x534D4150
into

Code: Select all

mov		DX, 0x4150
My bad :oops: . Thanks for your help!