On Mon, 21 Apr 2008 21:25:17 +0100 David Woodhouse <dwmw2@infradead.org> wrote:Okay, does anyone have a problem with this? The OFW sig check requires an ioremap that is dangerous on non-OLPC systems. Long term, we should be getting the signature from the device tree (/openprom/model), but for right now just limit the check to only run on a subset of Geode (GX2/LX) systems. Signed-off-by: Andres Salomon <dilinger@debian.org> --- arch/x86/kernel/olpc.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/olpc.c b/arch/x86/kernel/olpc.c index 11670be..3e66722 100644 --- a/arch/x86/kernel/olpc.c +++ b/arch/x86/kernel/olpc.c @@ -211,6 +211,10 @@ static int __init olpc_init(void) { unsigned char *romsig; + /* The ioremap check is dangerous; limit what we run it on */ + if (!is_geode() || geode_has_vsa2()) + return 0; + spin_lock_init(&ec_lock); romsig = ioremap(0xffffffc0, 16); -- 1.5.4.4 -- Need a kernel or Debian developer? Contact me, I'm looking for contracts. --
| Ryan Hope | reiser4 for 2.6.27-rc1 |
| Ingo Molnar | Re: 2.6.24-rc6-mm1 |
| Tim Tassonis | reiser4 for 2.6.27-rc1 |
| Ingo Molnar | Re: [patch] MTD: fix DOC2000/2001/2001PLUS build error |
git: | |
| Petko Manolov | git and binary files |
| Wink Saville | Resolving conflicts |
| Ken Pratt | pack operation is thrashing my server |
| Junio C Hamano | What's cooking in git.git (Aug 2008, #07; Sat, 23) |
| Richard Stallman | Real men don't attack straw men |
| Julien TOUCHE | setting up ssh tunnel/vpn |
| Jeffrey 'jf' Lim | Re: SSHJail patch for OpenBSD |
| Daniel Ouellet | identifying sparse files and get ride of them trick available? |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Peter MacDonald | demand paging: proposal |
| Stephen Pierce | SLS |
| Drew Eckhardt | Re: 20MB drive & wdxt-gen2 controller on 386? |
