From: "Ed Schouten" <ed@il.fontys.nl>
To: linux-kernel@vger.kernel.org
Cc: akpm@osdl.org
Subject: [Patch 2/5] xbox: disable optimization for kernel decompressor
Date: Sat, 9 Oct 2004 21:59:28 +0200 (CEST) [thread overview]
Message-ID: <59743.217.121.83.210.1097351968.squirrel@217.121.83.210> (raw)
When using the kernel decompressor on a Microsoft Xbox, the system hangs
because of invalid paging requests. When compiling the decompressor with
-O0, we can safely avoid this problem.
You can also download this patch at:
http://linux.g-rave.nl/patches/patch-xbox-optimization.diff
---
Makefile | 7 +++++++
1 files changed, 7 insertions(+)
diff -u -r --new-file linux-2.6.9-rc3/arch/i386/boot/compressed/Makefile
linux-2.6.9-rc3-ed0/arch/i386/boot/compressed/Makefile
--- linux-2.6.9-rc3/arch/i386/boot/compressed/Makefile 2004-09-30
05:05:20.000000000 +0200
+++ linux-2.6.9-rc3-ed0/arch/i386/boot/compressed/Makefile 2004-10-09
19:38:25.084610000 +0200
@@ -7,6 +7,13 @@
targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o piggy.o
EXTRA_AFLAGS := -traditional
+# Microsoft Xbox workaround:
+# Xbox v1.1+ crashes while decompressing the kernel when paging is off.
+# By disabling optimization we can fix this.
+ifeq ($(CONFIG_X86_XBOX),y)
+ CFLAGS_misc.o := -O0
+endif
+
LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -e startup_32
$(obj)/vmlinux: $(obj)/head.o $(obj)/misc.o $(obj)/piggy.o FORCE
next reply other threads:[~2004-10-09 19:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-09 19:59 Ed Schouten [this message]
2004-10-12 20:20 ` Pavel Machek
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=59743.217.121.83.210.1097351968.squirrel@217.121.83.210 \
--to=ed@il.fontys.nl \
--cc=akpm@osdl.org \
--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
all inboxes | Powered by JetHome®