Skip to contentSkip to conversation

int 0x15, ah=0x88 question

DISCUSSION [email protected] 2 participants 2 messages May 19, 2003

lore
Share & tools
lore
#0 lore raw

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!

Signature · 2 lines
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
#1 lore raw
Quoted 7 lines · On Mon, May 19, 2003 at 12:22:07PM +0200, [email protected] 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.

Quoted 3 lines

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