In gas i try to do
ljmp $0x20,$(%eax)
but gas says internal compiler error. please report this bug.
that is all fine and dandy(the bug reporting thing) but how do i compile my kernel.
gcc has internal error at ljmp
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
you are trying to assemble something that an intel processor can't do:
according to intel's big book of patterns you can only:
JMP FAR immediate:immediate
or
JMP FAR [far_pointer_in_memory]
you can not:
JMP FAR immediate:register
and especially not
JMP FAR 0x20:[DS:EAX]
Which throughly messes up GAS into asking you to go tell the developers...
according to intel's big book of patterns you can only:
JMP FAR immediate:immediate
or
JMP FAR [far_pointer_in_memory]
you can not:
JMP FAR immediate:register
and especially not
JMP FAR 0x20:[DS:EAX]
Which throughly messes up GAS into asking you to go tell the developers...