Port-powerpc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Someone needs to fix pagefault handling



On Sun, 15 Mar 2015 01:54:17 +0100
Frank Wille <frank%phoenix.owl.de@localhost> wrote:

> I implemented it now for user data and instruction accesses, as I
> understand you that SIGBUS is only needed for userland and not for the
> kernel.
> 
> The following patch was successfully tested on NetBSD/sandpoint (Kurobox,
> PPC 8241):
> [...]

Although it seems to work I will not commit it before I (or somebody else?)
can answer these open questions:

- DSI (data access fault): Is it really required to check the DSISR register
  to be able to differentiate between a SEGV_ACCERR or SEGV_MAPERR ksi_code?
  Or can I rely on the return value EACCESS from uvm_fault() instead?

- ISI (instruction access fault): Is EINVAL relevant for instruction access
  faults at all? If yes: does uvm_fault()=ENOMEM happen here as well?

-- 
Frank Wille


Home | Main Index | Thread Index | Old Index