summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
AgeCommit message (Collapse)Author
2013-09-29various fixes to sync usage() with SYNOPSIS, and make these pages a bitJason McIntyre
more consistent; feedback/ok miod
2013-09-28In boot(), do not iterate over alldevs if it's empty (i.e. halting from ddbMiod Vallat
with ddb entered early with boot -d or from UKC).
2013-09-28Fix use of uninitialized variable, found by Maxime Villard.Mike Larkin
ok miod@
2013-09-24Sync the MI LANCE code ( le(4) ) with NetBSD, except for the following:Miod Vallat
- the am7990_get() - now lance_get() - is unchanged. - the interrupt acknowledge logic is unchanged, and will disable interrupts, then acknowledge all interrupt conditions. Add ILACC (79900) support (from NetBSD). Both LANCE (am7990.c) and ILACC (am79900.c) code share as much common code (lance.c) as possible. This affects all le(4) attachments, but the changes are mostly mechanical, to split am7990-specific parts from lance-agnostic parts. Compile tested on all affected platforms. Tested on alpha, hp300, luna88k, mvme88k, sparc, sparc64 and vax.
2013-09-21Create process map holes with UVM_INH_SHARE so that they don't get lost inMiod Vallat
fork-without-exec situation (such as privsep'd binaries). Fixes occasional SIGSEGV in syslogd and pflogd on sun4/4c/4e.
2013-09-15Replace a hardcoded delay() with ZS_DELAY() to make sun4c happierMiod Vallat
2013-09-05Most network drivers include netinet/in_var.h, but apparently theyAlexander Bluhm
don't have to. Remove these include lines from mvme68k, mvme88k, sparc drivers. test and OK miod@
2013-08-21get rid of the copy argument in m_devget that let you provide anDavid Gwynne
alternative to bcopy since noone uses it. while there use memcpy instead of bcopy because we know the memory cannot overlap. ok henning@ matthew@ mikeb@ deraadt@
2013-08-15Add RI_VCONS support.Mark Kettenis
ok miod@
2013-08-07We uniformly define size_t to be unsigned long and ssize_t to be long. MakeMark Kettenis
sure that SIZE_MAX and SSIZE_MAX are defined as constants with a matching type on all are architectures. ok millert@, matthew@
2013-07-27Revert wrong chunk introduced in 1.50, causing console keyboards not to attachMiod Vallat
as console; fixes non-wsmux kernels such as bsd.rd; noticed by sebastia@
2013-07-13unify register_t to long on all platformsTheo de Raadt
ok miod kettenis
2013-07-05Avoid truncation when calculating clock gain/lossPhilip Guenther
ok deraadt@
2013-07-05Take II, this time without flubbing off_t: : move several internalPhilip Guenther
type definitions that are the same across all archs from <machine/_types.h> to <sys/_types.h> ok deraadt@ kettenis@ otto@
2013-07-04backout previous; off_t must be signed and there might be other C++ APIOtto Moerbeek
breakage lurking; ok kettenis@
2013-07-04To ease future changes, move several internal type definitions that arePhilip Guenther
the same across all archs from <machine/_types.h> to <sys/_types.h> ok deraadt@
2013-06-23Stop using -traditional-cpp on gcc3/4 platforms.Miod Vallat
Add CWARNFLAGS to the command line when using -xassembler-with-cpp. We are mostly interested in -Werror here.
2013-06-13new integral bcopy/memmove/memcpy, pulled out of sparc locoreTheo de Raadt
tested by beck
2013-06-13ovbcopy begoneTheo de Raadt
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
test period; i think 3 years ago the last bugs fell out. ok otto beck others
2013-06-09the kernel is supposed to provide memmove, but some archs are missing it.Ted Unangst
add i386 sparc and sparc64. ok deraadt
2013-06-04Support for the SS10/SS20 NVSIMM as block devices; tested by nick@Miod Vallat
2013-06-03Get rid of SYSCALL_G7RFLAG. It's been deprecated for a long time already,Mark Kettenis
and we've started using %g7 as a per-thread register now. If you have any binaries left that use this flag they'll probably crash and burn! tested by & ok miod@
2013-06-03changes for isc fuse support. not enabled. ok beck deraadt.Ted Unangst
from Sylvestre Gallon ccna.syl gmail.com
2013-06-01cleanup and consolidate the spinlock_lock (what a name!) code.Ted Unangst
it's now atomic_lock to better reflect its usage, and librthread now features a new spinlock that's really a ticket lock. thrlseep can handle both types of lock via a flag in the clock arg. (temp back compat hack) remove some old stuff that's accumulated along the way and no longer used. some feedback from dlg, who is concerned with all things ticket lock. (you need to boot a new kernel before installing librthread)
2013-05-31Replace shutdownhooks with activate functions, properly doing thoseTheo de Raadt
operations only if device is console ok kettenis
2013-05-30Enforce ca_activate tree-walks over the entire heirarchy for all events,Theo de Raadt
cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
2013-05-21remove unused cpu_lock code (where it is truly unused). it is notTed Unangst
part of the future we have planned. middling ok from a few
2013-05-17Add a dummy IPL_MPSAFE definition.Mark Kettenis
ok miod@, mikeb@
2013-05-16Add missing IPL_AUDIO macro, needed by dev/audio.cAlexandre Ratchov
ok miod and kettenis
2013-05-15remove unused splaudio/splx pairAlexandre Ratchov
2013-05-15remove unused variableAlexandre Ratchov
2013-05-15Introduce a global interrupt-aware mutex protecting dataAlexandre Ratchov
structures (including sound-card registers) from concurent access by syscall and interrupt code-paths. Since critical sections remain the same, calls to splraise/spllower can be safely replaced by calls to mtx_enter/mtx_leave with two exceptions: (1) mutexes are not reentrant (the inner splraise is thus removed), and (2) we're not allowed to sleep with a mutex (either msleep is used or the mutex is released before sleeping). ok and help from kettenis, a lot of work from armani
2013-05-10ditch unused zskbd_device_lookup; verified by sebastia@Mike Belopuhov
2013-04-21eeprom does not contain a a time_t -- it contains an unsigned 32 bit int.Theo de Raadt
2013-04-21Unify the zs tty driver.Sebastian Reitenbach
Most of the hard work by mpi@, who provided the initial diff. Fixes for sparc from myself. Tested on sgi and sparc myself. Compiles and detects zstty on my powerbook, compile tested on sparc64 by me. Real testing with zs device on sparc64 by miod@ who also gave a lot of help and feedback. ok miod@, mpi@
2013-04-01Do not expose the trap T_* values to userland, since they invade theTheo de Raadt
namespace a bit much. These are the names for the value encoded in core.c_ucode or siginfo.si_trapno, but userland never looks directly and only cares about the abstract signal code. ok guenther
2013-03-30reorder include search directories. cuts lookups by quite a bit.Ted Unangst
ok deraadt miod
2013-03-28Add STRONG_ALIAS macros to be used from assembly code in libc andMartynas Venckus
libm. While at it, remove now unused workarounds for lint. Agreed by kettenis@, guenther@, matthew@.
2013-03-28Add __strong_alias macros for all architectures to be able to aliasMartynas Venckus
another symbol without weak attribute. To be used in libc and libm soon. Agreed by kettenis@, guenther@, matthew@.
2013-03-26sync TDIRS with realityJasper Lievisse Adriaanse
"looks good" deraadt@
2013-03-26PGSHIFT and PGOFSET are now contained inside the kernel namespace.Theo de Raadt
2013-03-25PGSHIFT -> PAGE_SHIFT in a commentTheo de Raadt
2013-03-25ALIGNBYTES/ALIGN/ALIGNED_POINTER can move to the MI file.Theo de Raadt
2013-03-23refactor sys/param.h and machine/param.h. A lot of #ifdef _KERNEL is addedTheo de Raadt
to keep definitions our of user space. The MD files now follow a consistant order -- all namespace intrusion is at the tail can be cleaned up independently. locore, bootblocks, and libkvm still see enough visibility to build. Checked on 90% of platforms...
2013-03-21NBPG -> PAGE_SIZE, PGSHIFT -> PAGE_SHIFT, PGOFSET -> PAGE_MASKTheo de Raadt
2013-02-17We deprecated returning to %g7 after a successful system call long ago.Mark Kettenis
These days we use it as a thread register and want to have it initialized to zero for future thread local storage (TLS) support.
2013-02-09Do not bother defining cpu_exec_aout_makecmds() on platforms where we no longerMiod Vallat
(or never did) support a.out binaries (i.e. where _KERN_DO_AOUT is not defined).
2013-01-16cpu_coredump() also needs to invoke vn_rdwr() without IO_NODELOCKED; onlyMiod Vallat
affects a.out binaries' core dumps.
2013-01-01Remove libsa exec.c, not used by anything anymore; all boot blocks now useMiod Vallat
loadfile or a derivative of.