From: Joel Soete <soete.joel@tiscali.be>
To: Randolph Chung <randolph@tausq.org>, parisc-linux@parisc-linux.org
Subject: [parisc-linux] backport unaligned.c Randolph patch
Date: Sat, 01 Nov 2003 16:32:39 +0000 [thread overview]
Message-ID: <3FA3E027.3030409@tiscali.be> (raw)
Hi Randolph,
Here is the backport of your unaligned.c patch:
=====
--- unaligned.c.SAV 2003-11-01 15:26:14.000000000 +0000
+++ unaligned.c 2003-11-01 15:26:04.000000000 +0000
@@ -24,24 +24,6 @@
#include <linux/config.h>
#include <linux/sched.h>
#include <linux/kernel.h>
-#include <linux/string.h>
-#include <linux/errno.h>
-#include <linux/ptrace.h>
-#include <linux/timer.h>
-#include <linux/mm.h>
-#include <linux/smp.h>
-#include <linux/smp_lock.h>
-#include <linux/spinlock.h>
-#include <linux/init.h>
-#include <linux/interrupt.h>
-#include <asm/system.h>
-#include <asm/uaccess.h>
-#include <asm/io.h>
-#include <asm/irq.h>
-#include <asm/atomic.h>
-
-#include <asm/smp.h>
-#include <asm/pdc.h>
/* #define DEBUG_UNALIGNED 1 */
@@ -493,37 +475,6 @@
struct siginfo si;
register int flop=0; /* true if this is a flop */
- /* if the unaligned access is inside the kernel:
- * if the access is caused by a syscall, then we fault the calling
- * user process
- */
- if (!user_mode(regs))
- {
- const struct exception_table_entry *fix;
-
- /* see if the offending code have its own
- * exception handler
- */
-
- fix = search_exception_table(regs->iaoq[0]);
- if (fix)
- {
- /* lower bits of fix->skip are flags
- * upper bits are the handler addr
- */
- if (fix->skip & 1)
- regs->gr[8] = -EFAULT;
- if (fix->skip & 2)
- regs->gr[9] = 0;
-
- regs->iaoq[0] += ((fix->skip) & ~3);
- regs->iaoq[1] = regs->iaoq[0] + 4;
- regs->gr[0] &= ~PSW_B;
-
- return;
- }
- }
-
/* log a message with pacing */
if (user_mode(regs))
{
=====
I check on my b2k: it compiles and boot well.
hth,
Joel
next reply other threads:[~2003-11-01 16:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-01 16:32 Joel Soete [this message]
2003-11-01 17:32 ` [parisc-linux] Re: backport unaligned.c Randolph patch Randolph Chung
2003-11-01 19:30 ` Grant Grundler
2003-11-03 9:04 ` Joel Soete
2003-11-01 21:46 ` Joel Soete
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=3FA3E027.3030409@tiscali.be \
--to=soete.joel@tiscali.be \
--cc=parisc-linux@parisc-linux.org \
--cc=randolph@tausq.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