public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* wistron_btns-add-support-for-x86_64-systems.patch in -mm
@ 2007-12-23 14:47 Andi Kleen
  2008-01-05 17:52 ` Rémi Hérilier
  0 siblings, 1 reply; 3+ messages in thread
From: Andi Kleen @ 2007-12-23 14:47 UTC (permalink / raw)
  To: akpm, linux-kernel, rherilier, dtor


While looking for something else I stumbled over

wistron_btns-add-support-for-x86_64-systems.patch

in -mm. The patch looks very dubious to me. It basically
calls a BIOS function in long mode. To work like implemented
the BIOS would need to know magically what it was called
from (32bit or 64bit) and then execute different code paths.

It's very unlikely that this works. Most likely 
it will crash and if it happens to currently work 
it will be extremly fragile and crash at some future
point.

If anything you would need to set up a compat mode segment
and call the BIOS from that, but there are other problems
like interrupts not working etc (compat mode is somewhat
limited). Early in the x86-64 port there was a decision
to not call any BIOS calls from long mode because of these
problems. 

The only sane way to call that code would be to do so
from user space using some kind of emulator (e.g. like
the x server does) 

So I think the patch should be dropped.

-Andi


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

end of thread, other threads:[~2008-01-06  0:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-23 14:47 wistron_btns-add-support-for-x86_64-systems.patch in -mm Andi Kleen
2008-01-05 17:52 ` Rémi Hérilier
2008-01-06  0:28   ` Carlos Corbacho

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