summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2007-03-17For arm pre-v6 (ie all supported machines) it is necessary to disableDale Rahn
interrupts to be able to have an atomic update of a variable without a mutex.
2007-03-17Implement proper atomic.h for powerpc. With help from art@ and drahn@.Mark Kettenis
ok drahn@
2007-03-17Make lcsplx() call spllower() instead of duplicating its code.Mark Kettenis
ok miod@
2007-03-17Do not start lines printed by the kernel with '<' so that syslog won't getMiod Vallat
confused.
2007-03-17Only invoke printstar() in get_pte() if option DEBUG.Miod Vallat
2007-03-17Indentation repairs, no code change.Miod Vallat
2007-03-17add proper atomic_{set,clear}bits_int implementationMartin Reindl
prodded by art@ ok art@
2007-03-17wpi(4) works fine on amd64 according toJonathan Gray
Stefan Sperling <stsp@stsp.in-berlin.de> so enable it
2007-03-17we do not want uts(4) enabled until we have proper calibrationRobert Nagy
support, so revert my previous commit
2007-03-16enable uts(4)Robert Nagy
2007-03-16add DEC_KN300 support from NetBSD;Robert Nagy
This code makes it possible to run on some of the AlphaServers, namely AlphaServer 4100 and 1200. add mcbus(4) and mcpcia(4) to provide support for the system bus and the MCPCIA-to-PCI bus adapter that can be found in these systems allow the pci_swiz_bus code to handle variable extent names to be able to handle more than one mcpcia(4) "just commit it" deraadt@
2007-03-16Timecounters for sparc64. The cleanest and easiest timecounterArtur Grabowski
implementation this far. Uses the %tick register (as microtime was using before). kettenis@ ok
2007-03-15UltraSPARC-IV cpus appear a bit different in OpenFirmware than older cpus.Mark Kettenis
Make sure we fetch the right properties such that we don't crash later in the pci bus walking code when we divide by a zero cache line size.
2007-03-15Make sure we find the OpenFirmware node for UltraSPARC-IV cpus.Mark Kettenis
2007-03-15Since p_flag is often manipulated in interrupts and without biglockArtur Grabowski
it's a good idea to use atomic.h operations on it. This mechanic change updates all bit operations on p_flag to atomic_{set,clear}bits_int. Only exception is that P_OWEUPC is set by MI code before calling need_proftick and it's automatically cleared by ADDUPC. There's no reason for MD handling of that flag since everyone handles it the same way. kettenis@ ok
2007-03-14Make SMU sensors and fan control work on PowerMac8,1.Mark Kettenis
tested by Alastair Poole.
2007-03-13Nuke __HAVE_OLD_DISKLABEL code, this was never defined anyway.Miod Vallat
2007-03-13Add <machine/fpu.h> for upcoming userland changes.Miod Vallat
2007-03-13Drop the second and third arguments to adb_op_sync, for they are not used;Miod Vallat
while there, remove explicit global variable initializations to zero, and appease the gods by removing the most ludicrous spurious casts. No functional change (except for code shrinkage).
2007-03-13Be more strict during probe, consider failures to get device descriptionMiod Vallat
and device status code fatal, and do not attach in these cases.
2007-03-13When about to run X11 in 32 bpp mode, advertize correctly that we areMiod Vallat
really using 24 bpp pixels on 32 bit boundaries.
2007-03-13Reset psl to spl0 in cpu_fork(), so that kthreads start at spl0 and notMiod Vallat
splhigh(); from NetBSD
2007-03-13Move UKC later in the boot process, so that it can use malloc().Miod Vallat
2007-03-13It is safe to run tlb_exception() at the pre-fault ipl.Miod Vallat
2007-03-13Add two more SFSR bits found on UltraSPARC-III cpus.Mark Kettenis
2007-03-13Dangling includeMiod Vallat
2007-03-13tlb shootdown in pmap_change_attrs was shooting the wrong va.Artur Grabowski
"yes man" mickey@ (I think that meant 'ok').
2007-03-13Implement proper atomic.h for sparc64.Artur Grabowski
ok kettenis@
2007-03-07For unsupported (yet) Expert3D style frame buffers, attach pcons and attachMiod Vallat
a really dumb wsdisplay to pcons, so that wskbd/wsmouse input drivers can be used for input, and prom for output. This is a band-aid for the release, so that people with such frame buffers do not need to unplug them or switch to serial console to install OpenBSD. Probably not the best way to do this, but this one has a minimal footprint and no tentacles in wscons. ok deraadt@
2007-03-06Implement WSDISPLAYIO_GETSUPPORTEDDEPTH; makes X actually work if you followMark Kettenis
the instructions in /usr/X11R6/README.
2007-03-06Three more Expert3D-like frame buffers we shouldn't attach to yet.Miod Vallat
2007-03-05Add pmap_prefer() for SH4, from NetBSD; ok drahn@Miod Vallat
2007-03-05Prevent a NULL pointer dereference in __pmap_kptp_lookup(); from NetBSDMiod Vallat
2007-03-05Lower the ipl to what it was at the time of the trap in general_exception,Miod Vallat
instead of remaining at splhigh; from NetBSD ok drahn@
2007-03-05Work around a virtual aliasing conflict issue. Basically allow multipleDale Rahn
readers but only one writer on a physical page. Not the most optimal, but has been tested. ok miod@
2007-03-05Add mmap for upa(4). Makes the X wsfb(4) driver actually work instead ofMark Kettenis
crashing the machine on UltraSPARC-III machines with creator(4) framebuffers. ok jason@, tsi@
2007-03-05proper check for [non]user returns to syscall gate page; found by miod@Michael Shalayeff
2007-03-04Oops, bring back pmap_collect1() and the check for pmap_kernel() inMiod Vallat
pmap_collect() as we do an explicit pmap_collect(pmap_kernel()) in dire memory situations.
2007-03-04Limit knowledge of splfoo() return values, and use mac68k_machine.via1_iplMiod Vallat
instead of hardcoded 1; this gets us rid of unnecessary polls on machines running with A/UX interrupts.
2007-03-04Invoke adb_cuda_autopoll() and leave polling mode after all initializationMiod Vallat
commands are set; also add a delay between adb_intr_cuda() and adb_soft_intr() while polling, as this seems to be necessary on some models; ok gwk@ drahn@
2007-03-03Kernel crash dumps and associated libkvm bits for landisk.Miod Vallat
2007-03-03Fix a logic error in dumpconf()Miod Vallat
2007-03-02Move landisk to hardware floating point. At the moment the FPU context isMiod Vallat
always saved upon context switches, as FPU registers are heavily used for long long computations (don't ask). Gcc default to -m4. Credits to drahn@ otto@ and deraadt@ for feedback and help testing. Upgrade procedure if you don't want to use the damn snapshots: - build and install new kernel, reboot off it - build new gcc, do not install it yet - make includes - install new gcc - build and install lib/csu and lib/libc - make build
2007-03-01typoMiod Vallat
2007-03-01On the first generation iMac G5 (PowerMac8,1) the fans node is calledMark Kettenis
rpm-fans.
2007-03-01If the kauai is not found in openfirmware, abort the config. ok deraadtDale Rahn
2007-03-01Don't attach sensors and iic(4) if we didn't find any fans.Mark Kettenis
Tickling the SMU when we don't set the fans running is bad since this prevents the fans to spin up automatically causing the machine to overheat.
2007-03-01proper softint treatment (that get missed otherwise); found and tested by ↵Michael Shalayeff
mpf@ on pppoe; drahn@ ok
2007-02-28some older machines have small banks, and the kernel is too big!Theo de Raadt
remove one very rarely used driver; tested by mglocker miod will look at this later ;)
2007-02-28Add Smart Battery Monitor device driver. Provided byAlexander Yurchenko
Aaron Linville <aaron@linville.org> in PR 5398.