public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: Stas Sergeev <stssppnn@yahoo.com>
To: linux-msdos@vger.kernel.org
Subject: Re: A20 Address line - XMS issue
Date: Sat, 07 Dec 2002 03:31:37 +0300	[thread overview]
Message-ID: <3DF14169.3050207@yahoo.com> (raw)

Hello.

Bart Oldeman wrote:
> IIRC himem uses Big Real Mode for the 386, LOADALL for the 286
Yes, but 286 is a bit out of
the scope:)

> and int15
> if (BRM/LOADALL) fails.
It checks the PE bit of cr0 before
trying BRM, and if it is set, it
does int15/ah=0x87:
---
smsw    ax
shr     ax, 1                           ; Protected mode?
jc      MEM3_MoveBlock                  ; if so, use int 15h
---

However int15/87h executes in protected
mode and requires a pointer to GDT as
a parameter, so again, I have a very big
doubts it can work in v86:
---
; MEM3_MoveBlock
;       Set up GDT and call int 15h Move Block
[]
mov     ah, 87h         ; Block Move - Assumes protect
int     15h             ; mode code will allow interrupts
---
So again, whoever hooks int15, must either
have a ring0 access to set up the GDTR for
that GDT or, probably, it is also possible
to just evaluate the necessary addresses
from that GDT and do the transfer from
within the ring3 (taking into an account
also bases, access rights and all the other
info from that GDT) but then who told that
this can't work under cpu-emu?:)


             reply	other threads:[~2002-12-07  0:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-07  0:31 Stas Sergeev [this message]
2002-12-07  0:38 ` A20 Address line - XMS issue Bart Oldeman
  -- strict thread matches above, loose matches on Subject: below --
2002-12-06 22:29 Stas Sergeev
2002-12-06 22:46 ` Bart Oldeman
2002-12-06 17:30 Stas Sergeev
2002-12-06 14:53 S.Gopi
2002-12-06 15:01 ` Reinhard Karcher
2002-12-06 21:13 ` Bart Oldeman
2002-12-07  6:05   ` S.Gopi

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=3DF14169.3050207@yahoo.com \
    --to=stssppnn@yahoo.com \
    --cc=linux-msdos@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