I'm using nasm to assembly the bootstrap code for a 64-bit higher-half kernel, and am getting this warning on these two lines (full source
here, assembled with
nasm -felf64 boot.asm).
lgdt [gdt64.pointer_low - KERNEL_BASE]
mov [pd_table - KERNEL_BASE + ecx * 8], eax
I found
this thread on the same warning when searching which suggests it's spurious, but the suggested workaround doesn't work here because
`&' operator may only be applied to scalar values. What can I do to convince nasm I know what I'm doing?