public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* int 0x15, ah=0x88 question
@ 2003-05-19 10:22 S-n-e-a-k-e-r
  2003-05-19 13:08 ` Dave Jones
  0 siblings, 1 reply; 2+ messages in thread
From: S-n-e-a-k-e-r @ 2003-05-19 10:22 UTC (permalink / raw)
  To: linux-kernel

Hi all,

Following code comes from arch/i386/boot/setup.S (memory detection):

387         movb    $0x88, %ah
388         int     $0x15
389         movw    %ax, (2)

Why memory address 2 is used? Where else in the kernel is it used? We are in
real mode, so (2) should be the same as %ds:(2), or not?

Sorry that I'm bugging the mailing list with that question but I didn't
found the answer anywhere. So a web page, a book or something else would be also
nice as an answer.

Regards,

Andy

Ps: please cc me!

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: int 0x15, ah=0x88 question
  2003-05-19 10:22 int 0x15, ah=0x88 question S-n-e-a-k-e-r
@ 2003-05-19 13:08 ` Dave Jones
  0 siblings, 0 replies; 2+ messages in thread
From: Dave Jones @ 2003-05-19 13:08 UTC (permalink / raw)
  To: S-n-e-a-k-e-r; +Cc: linux-kernel

On Mon, May 19, 2003 at 12:22:07PM +0200, S-n-e-a-k-e-r@gmx.net wrote:
 > 
 > 387         movb    $0x88, %ah
 > 388         int     $0x15
 > 389         movw    %ax, (2)
 > 
 > Why memory address 2 is used? Where else in the kernel is it used? We are in
 > real mode, so (2) should be the same as %ds:(2), or not?

This code is building the entries in the zero page for use later.

 > Sorry that I'm bugging the mailing list with that question but I didn't
 > found the answer anywhere. So a web page, a book or something else would be also
 > nice as an answer.

See Documentation/i386/zero-page.txt

		Dave


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-19 12:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-19 10:22 int 0x15, ah=0x88 question S-n-e-a-k-e-r
2003-05-19 13:08 ` Dave Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox