lkml.org 
[lkml]   [2005]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Implement Computer Aided Ignorance

Jörn

--
Happiness isn't having what you want, it's wanting what you have.
-- unknown

Implement Computer Aided Ignorance (CAI) for Randy:
o Only negative numbers >= -256MiB are turned positive.
o Numbers above 256MiB (or below -256MiB) are ignored.

This specifically catches a case when 0xc000_0000 is added/removed.

Signed-off-by: Jörn Engel <joern@wohnheim.fh-wedel.de>
---

scripts/checkstack.pl | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)

--- linux-2.6.11cow/scripts/checkstack.pl~randy_check 2004-12-28 17:31:38.000000000 +0100
+++ linux-2.6.11cow/scripts/checkstack.pl 2005-03-07 00:39:44.000000000 +0100
@@ -90,11 +90,12 @@ while (my $line = <STDIN>) {
my $size = $1;
$size = hex($size) if ($size =~ /^0x/);

- if ($size > 0x80000000) {
+ if ($size > 0xf0000000) {
$size = - $size;
$size += 0x80000000;
$size += 0x80000000;
}
+ next if ($size > 0x10000000);

next if $line !~ m/^($xs*)/;
my $addr = $1;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.023 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site