History log of /netbsd/sys/arch/news68k/news68k/trap.c (Results 1 – 25 of 74)
Revision Date Author Comments
# 5e6815ad 22-Apr-2023 tsutsui <tsutsui@NetBSD.org>

Remove ancient /*ARGSUSED*/ comments.


# 23ffe7e3 25-Sep-2021 tsutsui <tsutsui@NetBSD.org>

Call cnpollc(9) before cngetc(9) as the cons(9) man page says.

Affects only inside #ifdef DEBUG part on "trap during panic" in trap.c
derived from hp300.


# ae16be0b 21-Nov-2019 ad <ad@NetBSD.org>

mi_userret(): take care of calling preempt(), set spc_curpriority directly,
and remove MD code that does the same.


# e3f92458 06-Apr-2019 thorpej <thorpej@NetBSD.org>

Overhaul the API used to fetch and store individual memory cells in
userspace. The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufe

Overhaul the API used to fetch and store individual memory cells in
userspace. The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms. The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).

Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.

Welcome to NetBSD 8.99.37.

show more ...


# 5751cea6 18-Feb-2019 thorpej <thorpej@NetBSD.org>

Refactor the 68040 writeback() from each m68k port's trap handler into a
shared copy: m68040_writeback(). It is essentially a copy of the Atari
version, with some minor cosmetic tweaks and one small

Refactor the 68040 writeback() from each m68k port's trap handler into a
shared copy: m68040_writeback(). It is essentially a copy of the Atari
version, with some minor cosmetic tweaks and one small performance optimization
from the mvme68k port.

Tested by rjs@ on a Quadra 950. (Thanks!)

show more ...


# 6ff7c06c 04-Mar-2015 martin <martin@NetBSD.org>

Handle EINVAL in the fault path and send SIGBUS on mmap'd access past EOF


# 154d3024 19-Feb-2012 rmind <rmind@NetBSD.org>

Remove COMPAT_SA / KERN_SA. Welcome to 6.99.3!
Approved by core@.


# 8ac3875a 08-Feb-2011 rmind <rmind@NetBSD.org>

Remove clause 3 (UCB advertising clause) from the University of Utah
copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as the

Remove clause 3 (UCB advertising clause) from the University of Utah
copyright. Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.

show more ...


# c62ccd21 17-Jan-2011 tsutsui <tsutsui@NetBSD.org>

Explicitly include <machine/pcb.h> for struct pcb.


# ccde4787 20-Dec-2010 matt <matt@NetBSD.org>

Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits. Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.


# 9ea6b6e3 07-Jul-2010 chs <chs@NetBSD.org>

implement ucas_* for m68k.


# bd01b4a3 06-Jun-2010 mrg <mrg@NetBSD.org>

fix PR 6724 - convert m68k options to defflag's. this means that
M680[12346] are now available from opt_m68k_arch.h. FPSP meantioned
in the PR has already been fixed, and i could not find any more.

fix PR 6724 - convert m68k options to defflag's. this means that
M680[12346] are now available from opt_m68k_arch.h. FPSP meantioned
in the PR has already been fixed, and i could not find any more.

i built these kernels to ensure i did not break their builds:

amiga: GENERIC DRACO
atari: HADES FALCON MILAN-PCIIDE
mac68k: GENERIC
sun2: GENERIC
sun3: GENERIC GENERIC3X
cesfic: attempted GENERIC, does not build due to lack of machine/bus.h
hp300: GENERIC
luna68k: GENERIC
mvme68k: GENERIC
news68k: GENERIC
next68k: GENERIC
x68k: GENERIC

show more ...


# 04aa4da3 20-Mar-2010 chs <chs@NetBSD.org>

fix copy{in,out}{,str}() to return the error returned by uvm_fault().
fixes PR 41813.


# 3dc24f5a 23-Nov-2009 rmind <rmind@NetBSD.org>

Use lwp_getpcb() on m68k ports, clean from struct user usage.


# f055e182 27-Jan-2009 martin <martin@NetBSD.org>

Centralize fpu exception to siginfo code encoding for all m68k archs,
fixes a failure in the lib/libc/ieeefp/except regression test.


# fc7511b0 15-Oct-2008 wrstuden <wrstuden@NetBSD.org>

Merge wrstuden-revivesa into HEAD.


# 284c2b9a 24-Apr-2008 ad <ad@NetBSD.org>

Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_S

Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.

show more ...


# 9f6b8c4d 31-Dec-2007 ad <ad@NetBSD.org>

Remove COMPAT_HPUX.


# bd6663fc 05-Nov-2007 ad <ad@NetBSD.org>

Don't set l_usrpri / spc_curpriority here. mi_userret() does it.


# d974db0a 17-Oct-2007 garbled <garbled@NetBSD.org>

Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the v

Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.

show more ...


# 9b0f085d 01-Sep-2007 mhitch <mhitch@NetBSD.org>

68030 and 68040 processors consider the read portion of a read-modify-write
transfer as a write to ensure the memory is writable before starting any
transfer. The fault status information does not r

68030 and 68040 processors consider the read portion of a read-modify-write
transfer as a write to ensure the memory is writable before starting any
transfer. The fault status information does not reflect this in the 'read'
status bit (i.e. it shows up as a read access), so faults with a RMW access
to non-writable memory was not getting the correct protection. The page would
be read-only and the instruction would fault over and over.

A specific example is when a process forks, and the child process attempts
to execute a RMW access to a data page, which is read-only because it's CoP
Copy-On-Write.

When checking if the page needs to be writablek, also check the locked transfer
and treat any locked transfer as a write.

68060 already handled this correctly, since it has separate read and write
fault bits, and both are set on a RMW access and the trap code was checking
the write status bit.

Fixes PR#36848.

show more ...


# d2eac2f6 12-Jun-2007 mhitch <mhitch@NetBSD.org>

Pass a frame pointer to trap() rather than the 'entire frame' trick. Gcc4
was optimizing away modifications to the frame contents (it's not nice to
trick gcc). Pass the pointer as the first argumen

Pass a frame pointer to trap() rather than the 'entire frame' trick. Gcc4
was optimizing away modifications to the frame contents (it's not nice to
trick gcc). Pass the pointer as the first argument to reduce the number
of places that would be changed otherwise. Fixes the getcwd regression
test on most m68k ports.

show more ...


# bbf9e3d1 18-May-2007 tsutsui <tsutsui@NetBSD.org>

Adapt news68k to yamt-idlelwp. Tested on NWS-1750.


# 53524e44 04-Mar-2007 christos <christos@NetBSD.org>

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.


# 09c5f9cc 28-Feb-2007 thorpej <thorpej@NetBSD.org>

TRUE -> true, FALSE -> false


123