提交 51fbb4ba 编写于 作者: M Matthew Wilcox 提交者: Linus Torvalds

markup_oops: fix it with 32-bit userspace on a 64-bit kernel

A 32-bit perl can't handle 64-bit addresses without using the BigInt
package.
Signed-off-by: NMatthew Wilcox <willy@linux.intel.com>
Acked-by: NArjan van de Ven <arjan@linux.intel.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 f5886c7f
#!/usr/bin/perl
use File::Basename;
use Math::BigInt;
# Copyright 2008, Intel Corporation
#
......@@ -172,8 +173,8 @@ while (<STDIN>) {
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";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册