From: Rusty Trivial Russell <trivial@rustcorp.com.au>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel@vger.kernel.org
Subject: [TRIVIAL] Re: document unused pte bits on i386
Date: Wed, 24 Sep 2003 12:52:53 +1000 [thread overview]
Message-ID: <20030924032924.B3AEB2C491@lists.samba.org> (raw)
From: Ed L Cashin <ecashin@uga.edu>
Ed L Cashin <ecashin@uga.edu> writes:
> Hi. This small patch documents that bits 9, 10, and 11 are unused by
> the Linux kernel. The IA-32 Intel Architecture Software Developer's
> Manual says that these bits are available for programmer use.
>
> I checked and couldn't see any use of these bits in the Linux kernel.
> If I'm wrong and these bits *are* being used by the linux kernel, a
> comment in include/asm-i386/pgtable.h would be helpful. If they are
> not, this patch confirms for developers that the kernel isn't using
> these bits.
For consistency, there should be the analogous _PAGE_BIT_XXX macros,
too, so here's a replacement patch that has those.
--- trivial-2.6.0-test5-bk10/include/asm-i386/pgtable.h.orig 2003-09-24 12:27:18.000000000 +1000
+++ trivial-2.6.0-test5-bk10/include/asm-i386/pgtable.h 2003-09-24 12:27:18.000000000 +1000
@@ -108,6 +108,9 @@
#define _PAGE_BIT_DIRTY 6
#define _PAGE_BIT_PSE 7 /* 4 MB (or 2MB) page, Pentium+, if present.. */
#define _PAGE_BIT_GLOBAL 8 /* Global TLB entry PPro+ */
+#define _PAGE_BIT_UNUSED1 9 /* available for programmer */
+#define _PAGE_BIT_UNUSED2 10
+#define _PAGE_BIT_UNUSED3 11
#define _PAGE_PRESENT 0x001
#define _PAGE_RW 0x002
@@ -118,6 +121,9 @@
#define _PAGE_DIRTY 0x040
#define _PAGE_PSE 0x080 /* 4 MB (or 2MB) page, Pentium+, if present.. */
#define _PAGE_GLOBAL 0x100 /* Global TLB entry PPro+ */
+#define _PAGE_UNUSED1 0x200 /* available for programmer */
+#define _PAGE_UNUSED2 0x400
+#define _PAGE_UNUSED3 0x800
#define _PAGE_FILE 0x040 /* set:pagecache unset:swap */
#define _PAGE_PROTNONE 0x080 /* If not present */
--
What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
Don't blame me: the Monkey is driving
File: Ed L Cashin <ecashin@uga.edu>: Re: [TRIVIAL][PATCH] document unused pte bits on i386
reply other threads:[~2003-09-24 3:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20030924032924.B3AEB2C491@lists.samba.org \
--to=trivial@rustcorp.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®