All of lore.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: B.Zolnierkiewicz@elka.pw.edu.pl
Cc: linux-kernel@vger.kernel.org
Subject: PRD_ENTRIES is 256
Date: Wed, 25 Feb 2004 01:53:17 -0800	[thread overview]
Message-ID: <20040225095317.GJ693@holomorphy.com> (raw)

PRD_ENTRIES is specified to be precisely 256; on platforms where
PAGE_SIZE varies from 4KB the calculation in the current expression
defining it is inaccurate, which may cause crashes. This patch changes
it to the constant literal 256.


-- wli


===== include/linux/ide.h 1.88 vs edited =====
--- 1.88/include/linux/ide.h	Tue Feb 10 07:35:39 2004
+++ edited/include/linux/ide.h	Wed Feb 25 01:46:45 2004
@@ -224,7 +224,7 @@
  * allowing each to have about 256 entries (8 bytes each) from this.
  */
 #define PRD_BYTES       8
-#define PRD_ENTRIES     (PAGE_SIZE / (2 * PRD_BYTES))
+#define PRD_ENTRIES     256
 
 /*
  * Some more useful definitions

             reply	other threads:[~2004-02-25  9:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-25  9:53 William Lee Irwin III [this message]
2004-02-25 13:11 ` PRD_ENTRIES is 256 Bartlomiej Zolnierkiewicz
2004-02-25 13:18   ` William Lee Irwin III
2004-02-25 16:15   ` Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040225095317.GJ693@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=B.Zolnierkiewicz@elka.pw.edu.pl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.