ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] linux-libc-headers & vm86.h
Date: Thu, 13 Jul 2006 21:46:19 +0400
Message-ID: <20060713174619.GA15351@procyon.home> (raw)
In-Reply-To: <20060713172628.GA2905@lks.home>

[-- Attachment #1: Type: text/plain, Size: 1137 bytes --]

On Thu, Jul 13, 2006 at 09:26:28PM +0400, Konstantin A. Lepikhov wrote:
> Hi Led!
> 
> Thursday 13, at 08:22:59 PM you wrote:
> 
> > В сообщении от 13 июля 2006 20:18 Konstantin A. Lepikhov написал(a):
> > > Hi Led!
> > >
> > > Thursday 13, at 08:07:43 PM you wrote:
> > > > Отсутствие asm/vm86.h в сборке linux-libc-headers для x86_64 -
> > > > преднамеренно?
> > >
> > > для x86_64 vm86() неактуально.
> > 
> > Неактуально или невозможно?
> на уровне ia32_syscall оно поддерживается.

Нет - x86_64 вообще не поддерживает vm86():

long sys32_vm86_warning(void)
{ 
	struct task_struct *me = current;
	static char lastcomm[sizeof(me->comm)];
	if (strncmp(lastcomm, me->comm, sizeof(lastcomm))) {
		printk(KERN_INFO "%s: vm86 mode not supported on 64 bit kernel\n",
		       me->comm);
		strncpy(lastcomm, me->comm, sizeof(lastcomm));
	} 
	return -ENOSYS;
} 

Единственный возможный способ выполнения кода для реального режима
8086 на x86_64 - полная программная эмуляция процессора.  В частности,
соответствующий код (x86emu) есть в xorg (там он используется для
выполнения кода из BIOS видеоадаптера).

[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]

  parent reply	other threads:[~2006-07-13 17:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-13 17:07 Led
2006-07-13 17:18 ` Konstantin A. Lepikhov
2006-07-13 17:22   ` Led
2006-07-13 17:26     ` Konstantin A. Lepikhov
2006-07-13 17:32       ` Led
2006-07-13 17:45         ` Konstantin A. Lepikhov
2006-07-13 17:46       ` Sergey Vlasov [this message]
2006-07-13 17:52         ` Led

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=20060713174619.GA15351@procyon.home \
    --to=vsu@altlinux.ru \
    --cc=devel@lists.altlinux.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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git