linux-mips-fnet
[Top] [All Lists]

Re: Memory corruption: is anybody who remeber why ?!

To: "Vladimir A. Roganov" <roganov@niisi.msk.ru>
Subject: Re: Memory corruption: is anybody who remeber why ?!
From: Ralf Baechle <ralf@uni-koblenz.de>
Date: Thu, 25 May 2000 20:15:40 +0200
Cc: linux-mips@fnet.fr
In-reply-to: <20000525184143.A10373@uni-koblenz.de>; from ralf@uni-koblenz.de on Thu, May 25, 2000 at 06:41:44PM +0200
References: <XFMail.990707230857.Harald.Koerfgen@home.ivm.de> <392CF17D.5A7DC4EA@niisi.msk.ru> <20000525184143.A10373@uni-koblenz.de>
On Thu, May 25, 2000 at 06:41:44PM +0200, Ralf Baechle wrote:

> Lemme ask the oracle for you ...
> 
> [ralf@lappi linux-sgi-2.2]$ head /dev/random
> [ralf@lappi linux-sgi-2.2]$

Oops, wrong oracle ...

[ralf@lappi linux-sgi-2.2]$ head /dev/urandom
Index: pgtable.h
===================================================================
RCS file: /home/pub/cvs/linux/include/asm-mips/pgtable.h,v
retrieving revision 1.19
retrieving revision 1.19.2.1
diff -u -r1.19 -r1.19.2.1
--- pgtable.h   1999/06/13 16:35:53     1.19
+++ pgtable.h   1999/07/22 01:57:13     1.19.2.1
@@ -1,4 +1,4 @@
-/* $Id: pgtable.h,v 1.18 1999/02/15 02:22:11 ralf Exp $
+/* $Id: pgtable.h,v 1.19 1999/06/13 16:35:53 ralf Exp $
  *
  * This file is subject to the terms and conditions of the GNU General Public
  * License.  See the file "COPYING" in the main directory of this archive
@@ -580,9 +580,9 @@
 /*
  * Kernel with 32 bit address space
  */
-#define SWP_TYPE(entry) (((entry) >> 1) & 0x3f)
-#define SWP_OFFSET(entry) ((entry) >> 8)
-#define SWP_ENTRY(type,offset) (((type) << 1) | ((offset) << 8))
+#define SWP_TYPE(entry) (((entry) >> 8) & 0x7f)
+#define SWP_OFFSET(entry) ((entry) >> 15)
+#define SWP_ENTRY(type,offset) (((type) << 8) | ((offset) << 15))
 
 #define module_map      vmalloc
 #define module_unmap    vfree
[ralf@lappi linux-sgi-2.2]$

  Ralf

<Prev in Thread] Current Thread [Next in Thread>