summaryrefslogtreecommitdiff
path: root/sys/arch/m68k
AgeCommit message (Collapse)Author
2023-06-24Fix typo in comment.msaitoh
2023-04-29Fix build after previous. m68k uses symnum instead of symidx.skrll
2023-04-29m68k: Support TT(Transparent Translation) for 020/030 buserror handler.isaki
This avoids a panic when trying badaddr() against to an address where bus error occurs in the TT region. Only luna68k and news68k use TT. Discussed on port-m68k.
2023-04-28Pass local symbols relocations in both passes and provide the kobj_relocskrll
implementation visibility of these relocations. Currently all implementations resolve local symbol relocations in the first pass and simply skip them in the second. The RISC-V implementation will make use of this visiblity.
2023-01-29fix typomlelstv
2023-01-27Use proper uintNN_t integer types.tsutsui
2023-01-05Fix out of bounds invalidate (and writeback) in bus_dmamap_sync(9) ops.tsutsui
Detected by the POOL_REDZONE check in sys/kern/subr_pool.c that has been activated if options DIAGNOSTIC is enabled on post netbsd-9. The extra invalidate on DMASYNC_PREREAD op discards redzone pattern data allocated right after an mbuf cluster without proper writeback to memory so that it triggers false redzone assertions on freeing mbufs. This bug was my botch in rev 1.25 committed 15 years ago. (sigh) Fixes PR/57107 (kernel panic on -current when configuring network with sn(4) on mac68k), as actually the bus_dma(9) op changes in the past days were introduced for mac68k sn(4) improvements by using the MI SONIC (src/sys/dev/ic/dp83932.c) driver. https://mail-index.netbsd.org/port-mac68k/2007/06/01/0001.html Should be pulled up to netbsd-9 and netbsd-10.
2022-11-02fix various typos in comments and messages.andvar
2022-10-26ddb/db_active.h: New home for extern db_active.riastradh
This can be included unconditionally, and db_active can then be queried unconditionally; if DDB is not in the kernel, then db_active is a constant zero. Reduces need for #include opt_ddb.h, #ifdef DDB.
2022-07-31in pmap_enter_ptpage(), if we are allowed to fail then fail rather thanchs
waiting for memory to be available. when we are mapping an anon or uobj page then we will be holding the lock for that page owner, and sleeping to wait for memory with a page owner lock held is illegal because the pagedaemon can wait for that lock, which will lead to deadlock. fixes PR 56932.
2022-07-26s/functin/function/ in copy pasted comment.andvar
2022-07-26curlwp is only available for ifdef _KERNEL.chs
2022-07-25use the pcb of the thread we are tracing rather than always curlwp.chs
2022-05-28fix various typos in comments, mainly origional->original,andvar
extened->extended, incomming->incoming.
2022-05-28fix various typos, mainly in comments.andvar
2022-05-24s/equivalant/equivalent/ in copy pasted comment.andvar
2022-05-18fix typos in word "access" and it derivatives, mainly in comments.andvar
2022-04-16fix various typos in comments and log messages.andvar
2022-04-08s/postions/positions/andvar
2022-04-08fix various typos, mainly in comments, but also log messages, docs, game text.andvar
2022-04-06Nix trailing whitespace in files of membars, atomics, and lock stubs.riastradh
Will be touching many of these files soon for functional changes. No functional change intended.
2022-02-13m68k: __cpu_simple_unlock audit.riastradh
- Use `cc' clobbers in asm volatile because they touch the condition codes. - Use `memory' clobbers in asm volatile so the compiler doesn't move up loads and stores in the critical section at _other_ addresses than the lock so they happen before __cpu_simple_lock or __cpu_simple_lock_try. - Not sure if we have any (or if there even are any?) multicore m68k systems out there, but __cpu_simple_unlock needs __insn_barrier either way so the compiler doesn't delay loads and stores prior to __cpu_simple_unlock so they happen after it.
2022-01-26remove double t from targeted, add missing r to arbitraryandvar
And fix few more typos along the way in comments and man pages.
2022-01-25fix various typos in comments.andvar
2021-12-07fix various typos, mainly in comments.andvar
2021-12-05s/Overwirte/Overwrite/ in comment.msaitoh
2021-12-05s/from from/from/ in comment.msaitoh
2021-12-05s/MEMEORY/MEMORY/ in comment.msaitoh
2021-12-05s/expecially/especially/ in comment.msaitoh
2021-11-10s/threshhold/threshold/ in comment.msaitoh
2021-10-29Define __HAVE_STRUCT_SIGCONTEXT regardless of its current visibility.thorpej
2021-10-27Use the signal trampoline version constants from <sys/signal.h>.thorpej
2021-10-27Make sigcontext13 visible only to _KERNEL.thorpej
2021-10-26Merge all MD __sigaction14_sigtramp.c copies into one:christos
- sparc and sparc64 were not using version 0 sigcontext when there were no arguments in the signal version. This was probably a bug. - vax is using +1 the version numbers of the other archs. - Only hppa was defining __LIBC12_SOURCE__ so it was getting a working sigcontext before. all the other ports that supported sigcontext had the compat code disabled. [pointed out by thorpej, thanks!] If we want to remove sigcontext support from userland at least now there is less work to do so.
2021-10-12fix various typos, mainly in comments.andvar
2021-09-19fix various typos in comments, messages and documentation.andvar
2021-08-25- In kern_mutex.c, if MUTEX_CAS() is not defined, define it in terms ofthorpej
atomic_cas_ulong(). - For arm, ia64, m68k, mips, or1k, riscv, vax: don't define our own MUTEX_CAS(), as they either use atomic_cas_ulong() or equivalent (atomic_cas_uint() on m68k). - For alpha and sparc64, don't define MUTEX_CAS() in terms of their own _lock_cas(), which has its own memory barriers; the call sites in kern_mutex.c already have the appropriate memory barrier calls. Thus, alpha and sparc64 can use default definition. - For sh3, don't define MUTEX_CAS() in terms of its own _lock_cas(); atomic_cas_ulong() is strong-aliased to _lock_cas(), therefore defining our own MUTEX_CAS() is redundant. Per thread: https://mail-index.netbsd.org/tech-kern/2021/07/25/msg027562.html
2021-08-21fix mainly same typos as in my previous commit but outside sys/dev/dm.andvar
2021-08-02fix various typos in comments and log messages.andvar
2021-07-31s/threshhold/thresholdandvar
2021-07-24Fix all remaining typos, mainly in comments but also in few definitions and ↵andvar
log messages, reported by me in PR kern/54889. Also fixed some additional typos in comments, found on review of same files or typos.
2021-06-04Sprinkle a few VMSWAP_DEFAULT_PLAINTEXT for architectures where we do notmartin
have any spare cpu cycles to waste (encrypted swap still could be enabled by the admin in /etc/sysctl.conf).
2021-05-31Include "opt_param.h" (ifdef _KERNEL_OPT) everywhere that MSGBUFSIZE issimonb
referenced since some sources include <machine/param.h>.
2021-04-24Restore comments for f_stackadj and reenter_syscall().tsutsui
Taken from sys/compat/linux/arch/m68k/linux_machdep.c which was originally implemented to use reenter_syscall() for sigreturn of Linux binaries.
2021-04-16check the result value of pmap_extract() and panic if it fails.mrg
this is a "should never fail" case, and GCC 10 noticed that it allows an uninitialised variable use. tested by rin@ on amiga and mac68k.
2021-04-06Remove duplicate db_disasm() prototype.simonb
2021-04-06Include <ddb/db_interface.h> to get ddb's db_disasm() prototype.simonb
2021-03-24s/depreciated/deprecated/gsimonb
2021-03-08Remove incorrect byte and word conversions from fpu_explode.isaki
The correct operation here is arithmetic right shift, but nobody calls it.
2021-03-06Minimal (but hackish) change to make a DEBUG kernel compilable.martin