From: "David Brown" <dmlb2000@gmail.com>
To: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: [PATCH] remove availability for PAGE_SIZE and friends (i386)
Date: Tue, 6 Mar 2007 08:31:45 -0800 [thread overview]
Message-ID: <9c21eeae0703060831k1a99bd13k1bf81afaabb6f1af@mail.gmail.com> (raw)
After a bit of discussion I found out that PAGE_SIZE really shouldn't
be available for use at all by userspace. So here's a patch to move
the __KERNEL__ define to include PAGE_SIZE and friends for i386.
Thanks,
- David Brown
diff --git a/include/asm-i386/page.h b/include/asm-i386/page.h
index 7b19f45..2f686d5 100644
--- a/include/asm-i386/page.h
+++ b/include/asm-i386/page.h
@@ -1,6 +1,8 @@
#ifndef _I386_PAGE_H
#define _I386_PAGE_H
+#define __KERNEL__
+
/* PAGE_SHIFT determines the page size */
#define PAGE_SHIFT 12
#define PAGE_SIZE (1UL << PAGE_SHIFT)
@@ -9,7 +11,6 @@
#define LARGE_PAGE_MASK (~(LARGE_PAGE_SIZE-1))
#define LARGE_PAGE_SIZE (1UL << PMD_SHIFT)
-#ifdef __KERNEL__
#ifndef __ASSEMBLY__
next reply other threads:[~2007-03-06 16:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-06 16:31 David Brown [this message]
2007-03-06 17:03 ` [PATCH] remove availability for PAGE_SIZE and friends (i386) David M. Lloyd
2007-03-06 17:58 ` David Brown
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=9c21eeae0703060831k1a99bd13k1bf81afaabb6f1af@mail.gmail.com \
--to=dmlb2000@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox