m4 macros in boot0.s

m4 macros in boot0.s

Post by Mike DiClaudi » Wed, 05 Apr 2000 04:00:00



Can anyone explain why m4 macros are used in /sys/boot/i386/boot0/boot0.s?
I see macros like "callwi" and "jmpnwi" and I'm wondering why "call" and
"jmp" weren't used instead?  I'm guessing it's got something to do with the
code relocating itself, but can someone explain this?

Thanks,

Mike DiClaudio
Cidera, Inc.
-----------------------------------
[this signature intentionally left blank]

 
 
 

m4 macros in boot0.s

Post by J Wuns » Sun, 09 Apr 2000 04:00:00



> Can anyone explain why m4 macros are used in
> /sys/boot/i386/boot0/boot0.s?

`rnordier' committed the first version of the file, so he should be
able to tell you. ;-)

My guess is that Robert was trying to provide 16-bit opcodes by this
which gas doesn't support out of the box.

Quote:> I see macros like "callwi" and "jmpnwi" and I'm wondering why "call"
> and "jmp" weren't used instead?

It seems to me he purposely selected mnemonics that don't collide with
the regular ones (which refer to 32-bit opcodes in gas).

--
cheers, J"org  /  73 de DL8DTL


Never trust an operating system you don't have sources for. ;-)