All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] Re: Getting up and running
@ 2001-09-17 10:12 John Marvin
  2001-09-17 21:25 ` Jochen Friedrich
  0 siblings, 1 reply; 8+ messages in thread
From: John Marvin @ 2001-09-17 10:12 UTC (permalink / raw)
  To: parisc-linux

>
> How does this look?  I can't test it because I don't have a 720-era machine,
> but it ought to work, I think...
>

<Patch Deleted>

No, it needs to be a little more complicated than that. That patch doesn't
take into account byte and half-word accesses to a page. The real fix
needs to look at the instruction in the iir register in combination with
the ior value in order to determine whether the access is unaligned.

I thought for a second that the patch might work anyway, since the
unaligned fault handler has exception table support, so even though
the instruction might be unecessarily emulated, it would still
successfully bring the page in, but the unaligned fault handler
uses ldb, which would just cause an infinite loop ...

So, the correct fix should probably involve leveraging some of the
macros in unaligned.c and writing something like check_unaligned(regs)
that would be used by the trap 18 handler to determine whether or
not the access was unaligned or not.

John

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-09-18 19:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-17 10:12 [parisc-linux] Re: Getting up and running John Marvin
2001-09-17 21:25 ` Jochen Friedrich
2001-09-17 22:13   ` [parisc-linux] installing a native built kernel with 2.4.0 (.92 dist) marka
2001-09-18 15:30     ` Richard Hirst
2001-09-18 17:10       ` marka
2001-09-18 18:54         ` Matthew Wilcox
2001-09-18 19:04         ` Richard Hirst
2001-09-18 19:34           ` marka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.