reopen 265919
thanks

Hi,

The latest upload did not build properly at all.

>From the build log:
gcc -DCONFIG_PCI -DCONFIG_ISA -DASK_BOOT=3 -DBOOT_FIRST=BOOT_NIC 
-DALLOW_ONLY_ENCAPSULATED -DBACKOFF_LIMIT=7 -DCONGESTED -DTAGGED_IMAGE 
-DELF_IMAGE -DDOWNLOAD_PROTO_TFTP -DPXE_IMAGE -DPXE_EXPORT -Os -ffreestanding 
-Wall -W -Wno-format -DPCBIOS -fstrength-reduce -fomit-frame-pointer 
-march=i386 -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mcpu=i386 
-DVERSION_MAJOR=5 -DVERSION_MINOR=3 -DVERSION=\"5.3.14\"  -I include -I 
arch/i386/include -DARCH=i386 -DCONFIG_X86_64  -o bin/undi.o -c 
arch/i386/drivers/net/undi.c
/tmp/ccLhp0Px.s: Assembler messages:
/tmp/ccLhp0Px.s:699: Error: `rm_undi_call(%rip)' is not a valid 32 bit 
base/index expression
/tmp/ccLhp0Px.s:700: Error: `rm_undi_call_end(%rip)' is not a valid 32 bit 
base/index expression
/tmp/ccLhp0Px.s:701: Warning: `movq' is not supported on `i386'
/tmp/ccLhp0Px.s:701: Error: suffix or operands invalid for `movq'
/tmp/ccLhp0Px.s:702: Warning: `movq' is not supported on `i386'
/tmp/ccLhp0Px.s:702: Error: bad register name `%r8'
/tmp/ccLhp0Px.s:704: Error: bad register name `%r9d'
[...]

This seems to be caused by the real mode / 16 bit
assembler in it.  I think it needs to return to the
sledgehammer arch / 64 bit mode.

Then we get:
arch/i386/core/start32.S: Assembler messages:
arch/i386/core/start32.S:473: Error: suffix or operands invalid for `and'
arch/i386/core/start32.S:476: Error: suffix or operands invalid for `and'
arch/i386/core/start32.S:480: Error: suffix or operands invalid for `and'

Those lines contain something like:
andq    $0xffffffff, %rbx

I think those should be changed to:
andl    $0xffffffff, %ebx

I think they can even be removed.

Next, in arch/i386/core/realmode.c you have some pushl's
and a popl.  They're not supported on x86_64, you only
have pushq/popq.

There are probably a few more problems with it to get it to
build.


Kurt



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to