linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Implement Computer Aided Ignorance
@ 2005-03-07 20:50 Jörn Engel
  0 siblings, 0 replies; only message in thread
From: Jörn Engel @ 2005-03-07 20:50 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Randy.Dunlap, linux-kernel


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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-07 21:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-07 20:50 [PATCH] Implement Computer Aided Ignorance Jörn Engel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).