From: Ingo Molnar <mingo@elte.hu>
To: Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux-devel@lists.sourceforge.net,
Andrew Morton <akpm@osdl.org>
Subject: [uml-devel] [patch] uml-fixes2-2.6.1-mm5-A1
Date: Tue, 20 Jan 2004 21:01:05 +0100 [thread overview]
Message-ID: <20040120200105.GA2289@elte.hu> (raw)
In-Reply-To: <20040120194328.GA1518@elte.hu>
[-- Attachment #1: Type: text/plain, Size: 280 bytes --]
> plus the attached patch is needed ontop of the previous one, to make
> x86 compile too. (and UML still compiles & works.)
i've attached uml-fixes2-2.6.1-A1 which is a replacement for the
uml-fixes2-2.6.1-A0 patch - the Makefile.lib and Makefile diffs were
superfluous.
Ingo
[-- Attachment #2: uml-fixes2-2.6.1-A1 --]
[-- Type: text/plain, Size: 2085 bytes --]
--- linux/arch/i386/kernel/head.S.orig
+++ linux/arch/i386/kernel/head.S
@@ -13,6 +13,7 @@
#include <linux/linkage.h>
#include <asm/segment.h>
#include <asm/page.h>
+#include <asm/processor.h>
#include <asm/pgtable.h>
#include <asm/desc.h>
#include <asm/cache.h>
--- linux/arch/i386/kernel/vmlinux.lds.S.orig
+++ linux/arch/i386/kernel/vmlinux.lds.S
@@ -5,6 +5,7 @@
#include <asm-generic/vmlinux.lds.h>
#include <linux/config.h>
#include <asm/page.h>
+#include <asm/processor.h>
#include <asm/asm_offsets.h>
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
--- linux/arch/i386/boot/setup.S.orig
+++ linux/arch/i386/boot/setup.S
@@ -59,6 +59,7 @@
#include <asm/e820.h>
#include <asm/edd.h>
#include <asm/page.h>
+#include <asm/processor.h>
/* Signature words to ensure LILO loaded us right */
#define SIG1 0xAA55
--- linux/include/asm-i386/processor.h.orig
+++ linux/include/asm-i386/processor.h
@@ -7,6 +7,8 @@
#ifndef __ASM_I386_PROCESSOR_H
#define __ASM_I386_PROCESSOR_H
+#ifndef __ASSEMBLY__
+
#include <asm/vm86.h>
#include <asm/math_emu.h>
#include <asm/segment.h>
@@ -649,4 +651,30 @@ extern void select_idle_routine(const st
#define ARCH_HAS_SCHED_WAKE_BALANCE
#endif
+#endif /* ! __ASSEMBLY__ */
+
+/*
+ * This handles the memory map.. We could make this a config
+ * option, but too many people screw it up, and too few need
+ * it.
+ *
+ * A __PAGE_OFFSET of 0xC0000000 means that the kernel has
+ * a virtual address space of one gigabyte, which limits the
+ * amount of physical memory you can use to about 950MB.
+ *
+ * If you want more physical memory than this then see the CONFIG_HIGHMEM4G
+ * and CONFIG_HIGHMEM64G options in the kernel configuration.
+ *
+ * Note: on PAE the kernel must never go below 32 MB, we use the
+ * first 8 entries of the 2-level boot pgd for PAE magic.
+ */
+
+#ifdef CONFIG_X86_4G_VM_LAYOUT
+#define __PAGE_OFFSET (0x02000000)
+#define TASK_SIZE (0xff000000)
+#else
+#define __PAGE_OFFSET (0xc0000000)
+#define TASK_SIZE (0xc0000000)
+#endif
+
#endif /* __ASM_I386_PROCESSOR_H */
next prev parent reply other threads:[~2004-01-20 20:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-20 19:17 [uml-devel] [patch] uml-fixes-2.6.1-mm5-A1 Ingo Molnar
2004-01-20 19:43 ` [uml-devel] [patch] uml-fixes2-2.6.1-mm5-A0 Ingo Molnar
2004-01-20 20:01 ` Ingo Molnar [this message]
2004-01-22 16:21 ` [uml-devel] [patch] uml fixes, 2.6.1-mm5-A2 Ingo Molnar
2004-01-22 18:42 ` Jeff Dike
2004-01-23 6:18 ` nsb034
2004-01-28 4:39 ` Jeff Dike
2004-01-23 9:35 ` [uml-devel] " Ingo Molnar
2004-01-23 13:56 ` Jeff Dike
2004-01-23 13:51 ` Ingo Molnar
2004-01-23 16:09 ` Jeff Dike
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=20040120200105.GA2289@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@osdl.org \
--cc=jdike@addtoit.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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