Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Weird assembly code behavior



On Thu, Mar 12, 2020 at 03:02:32AM +0100, Emmanuel Dreyfus wrote:
> If I understand correctly, that means code built with x86_64 target
> architecture if not generaly suitable to run before switching the CPU to
> long mode. multiboot2_pre_reloc(), which is run before this operation,
> must therefore be built with -m32, like it was in the patch I posted in
> january:
> http://mail-index.netbsd.org/port-amd64/2020/01/30/msg003139.html

No, you can't run 64bit code in 32bit mode with few exceptions. But that
doesn't answer the more important question on why it has to be run in
64bit mode.

Joerg


Home | Main Index | Thread Index | Old Index