Skip to content

Commit

Permalink
markup_oops: fix it with 32-bit userspace on a 64-bit kernel
Browse files Browse the repository at this point in the history
A 32-bit perl can't handle 64-bit addresses without using the BigInt
package.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Acked-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Matthew Wilcox authored and torvalds committed Jul 30, 2009
1 parent f5886c7 commit 51fbb4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/markup_oops.pl
@@ -1,6 +1,7 @@
#!/usr/bin/perl

use File::Basename;
use Math::BigInt;

# Copyright 2008, Intel Corporation
#
Expand Down Expand Up @@ -172,8 +173,8 @@ sub process_x86_regs
parse_x86_regs($line);
}

my $decodestart = hex($target) - hex($func_offset);
my $decodestop = hex($target) + 8192;
my $decodestart = Math::BigInt->from_hex("0x$target") - Math::BigInt->from_hex("0x$func_offset");
my $decodestop = Math::BigInt->from_hex("0x$target") + 8192;
if ($target eq "0") {
print "No oops found!\n";
print "Usage: \n";
Expand Down

0 comments on commit 51fbb4b

Please sign in to comment.