Re: A newbie's question

jbradford@dial.pipex.com
Thu, 26 Sep 2002 16:22:27 +0100 (BST)


> Hi, all. I am a newbie to Linuxe Kernel. I am reading the kernel source about bootstrap in Linux.
> I was confused by the boot.s:
> /////////////////////////////
> mov ax,#BOOTSEG
> mov ds,ax
> mov ax,#INITSEG
> mov es,ax
> mov cx,#256
> sub si,si
> sub di,di
> rep
> movw
> jmpi go,INITSEG
> /////////////////////////////
> 1. What assembly language used in boot.s? Intel Asm or AT&T?
> 2. Where is the definition of operand movw and jmpi? I cant find it in the Intel Manual.
>
> Please give me some adivices.

I could be totally wrong here, but my understanding of the situtation is that the bootstrap was originally compiled with as86, not gas, and therefore was in the Intel format, (the standard for gas being AT&T, although Gas can also compile Intel format using the .intel_syntax pseudo-op). I assume that the bootloader has stayed in Intel format for historical reasons.

However, I could be totally wrong. The last assembler coding I did was on a Z80 :-).

John.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/