linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: jbradford@dial.pipex.com
To: immortal1015@52mail.com (immortal1015)
Cc: linux-kernel@vger.kernel.org
Subject: Re: A newbie's question
Date: Thu, 26 Sep 2002 16:22:27 +0100 (BST)	[thread overview]
Message-ID: <200209261522.g8QFMRs1001756@darkstar.example.net> (raw)
In-Reply-To: <20020926144558Z261317-8740+1711@vger.kernel.org> from "immortal1015" at Sep 26, 2002 10:52:23 PM

> 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.

  reply	other threads:[~2002-09-26 15:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-26 14:52 A newbie's question immortal1015
2002-09-26 15:22 ` jbradford [this message]
2002-09-26 16:14 ` DervishD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200209261522.g8QFMRs1001756@darkstar.example.net \
    --to=jbradford@dial.pipex.com \
    --cc=immortal1015@52mail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).