summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2015-10-15No need to create links for xxboot now that MI installboot is the preferredMiod Vallat
way to install boot blocks.
2015-10-15Let the rx path of cnmac run without the kernel lock. To avoid the needVisa Hankala
of a mutex, the path no longer cleans up the queue of tx requests. ok mpi@
2015-10-08After replacement alloca() with alloc(), out-of-heap happened when bootingYASUOKA Masahiko
on a large block size (32K) partition. Increase the HEAP_LIMIT from 0x90000 to 0xA0000. try this, deraadt
2015-10-0816 years after E801 memprobe was disabled, probably safe to delete it.Ted Unangst
ok deraadt jung kettenis ratchov
2015-10-08Remove the sc_soft_req_cnt field because the number of tx requests isVisa Hankala
already tracked in sc_sendq. Replace the sc_flush logic with a simple Fetch-and-Add store that avoids an unnecessary IOBDMA transaction. ok uebayasi@
2015-10-08Simpify some code by noting that DOSBBSECTOR is 0, so "if (n >Kenneth R Westerback
n+DOSBBSSECTOR) ..." is pointless, as is "n = n + DOSBBSECTOR;".
2015-10-08Add a per-page flag to indicate that all mappings of that page should beMark Kettenis
uncached. To be used in the drm code. ok mpi@
2015-10-05Fix efiboot not to use the usual kernel load address. Load the kernel inYASUOKA Masahiko
an allocated region and also move the stack to the end of the heap region. Then move the kernel to the usual place just before run the kernel, after calling ExitBootService(). report/test Toby Slight, Brian Conway
2015-10-05alpha ramdisk ran out of space, very slightly. Probably due to theTheo de Raadt
development of tame? option CD9660 and mount_cd9660 are already absent, so remove the cd(4) driver ok miod
2015-10-05No need to create {sd,wd}boot links to xxboot anymore.Miod Vallat
2015-10-05user land -> userland; from Rob PierceTheo de Raadt
2015-10-03correct a memory leak in error code path.Sebastien Marie
noticed by miod@ ok visa@
2015-10-01Use DOS_LABELSECTOR rather than LABELSECTOR to indicate offset into anKenneth R Westerback
OpenBSD partition when accessing the disklabel. For these files both are '1', but this makes the usage consistent across all archs. ok guenther@ miod@
2015-10-01Remove yet more blinding whitespace.Kenneth R Westerback
2015-10-01Remove more blinding trailing whitespace.Kenneth R Westerback
2015-10-01Make the alpha pmap (more) mpsafe by protecting both the pmap itself and theMark Kettenis
pv lists with a mutex. This should make pmap_enter(9), pmap_remove(9) and pmap_page_protect(9) safe to use without holding the kernel lock. This largely reverts rev. 1.75, but now of course the pmap locks are defined to actually call mtx_enter(9) and mtx_leave(9). ok visa@
2015-09-30Nuke a #if 0/#endif block and a related variable. No plans to ever makeKenneth R Westerback
this work better than it does now. Eliminates a stray use of LABELSECTOR. ok miod@
2015-09-30Use #ifndef _MACHINE_DISKLABEL_H_ everywhere. Replace _ARM_DISKLABEL_H_Kenneth R Westerback
and _SH_DISKLABEL_H_ with _MACHINE_DISKLABEL_H_. Add the guard to loongson and octeon. The #defines are not used anywhere else in the tree so no functional change.
2015-09-30Remove some trailing whitespace.Kenneth R Westerback
2015-09-30Use consistant whitespace/comments for #define'ing LABELSECTOR,Kenneth R Westerback
LABELOFFSET and MAXPARTITIONS. Easier on the eye when scanning through all these files. No functional change.
2015-09-30enable new asmc(4) driver on amd64Joerg Jung
"go at it" deraadt@
2015-09-30add a (disabled) driver for the Apple System Management Controller (SMC) asJoerg Jung
found in Apple Intel based devices "go at it" deraadt@
2009-08-04By popular demand and peer pressure, check-in work in progress work to supportMiod Vallat
the Yeelong Lemote mips-based netbook. Kernel bits only for now, needs polishing; most of this work done during h2k9 last month, although the porting effort started earlier this year.
2015-09-30How about I delete _all_ the BITFIELDTYPE comments?Philip Guenther
2015-09-30Remove some annoying trailing whitespace.Kenneth R Westerback
2015-09-29Add missing prototype for bios_getdiskinfo() to amd64/disksubr.c.Kenneth R Westerback
Include systm.h inside #ifdef DEBUG in i386/disksubr.c, as amd64/disksubr.c. Makes amd64 and i386 disksubr.c identical once more.
2015-09-29Use the DMTC0 macro and MTC0_HAZARD in the UPAGES > 1 case. Now R8000 kernelMiod Vallat
have all their m[ft]c0 instructions correctly wrapped.
2015-09-28More mechanical switching to readdisksector(), although this is aKenneth R Westerback
slightly different pattern. hppa/macppc compile and boot so hppa64/aviion surely do too! ok deraadt@
2015-09-28In low-level suspend routines, set cold=2. In tsleep(), use this toTheo de Raadt
spit out a ddb trace to console. This should allow us to find suspend or resume routines which break the rules. It depends on the console output function being non-sleeping.... but that's another codepath which should try to be safe when cold is set. ok kettenis
2015-09-28Keep sparc/disksubr.c and sparc64/disksubr.c as close as possible.Kenneth R Westerback
Some whitespace/comment tweaks, fix a memcpy() parameter, use the sparc64 idiom when invoking [iso|udf]_disklabelspoof() functions. ok deraadt@
2015-09-28Oops. sparc64/disksubr.c was overlooked when all the other disksubr.c'sKenneth R Westerback
got 'disk_change = 1;' to keep the DUID cache up to date in Feb. 2011. Bad krw@. ok deraadt@
2015-09-28Mechanical changes from manual buf set up to readdisksector().Kenneth R Westerback
ok deraadt@
2015-09-28Use readdisksector() instead of manual buf initialization. hppa compilesKenneth R Westerback
and boots, so the identical hppa64 should too! ok deraadt@
2015-09-28Use readdisksector() instead of manual buf initialization.Kenneth R Westerback
ok deraadt@
2015-09-27Use readdisksector() instead of manual buf initialization. sparc64Kenneth R Westerback
compiles and boots, so the identical sparc code must too! ok deraadt@
2015-09-27Use readdisksector() instead of manual buf initialization. These areKenneth R Westerback
identical to the amd64 change already committed. ok deraadt@
2015-09-27Add IP26 kernels and boot blocks to the installation media.Miod Vallat
2015-09-27Don't forget to put the necessary MFC0_HAZARD in SAVE_CPU. For some reason IMiod Vallat
had put the MTC0_HAZARD in RESTORE_CPU years ago but forgot their counterparts.
2015-09-27Use readdisksector() instead of manual buf initialization.Kenneth R Westerback
ok deraadt@
2015-09-27Tweak a bit of daddr_t goodness and make hppa64 disksubr.c identical toKenneth R Westerback
hppa disksubr.c. ok kettenis@
2015-09-27Eliminate unneeded 2nd buf (dbp). One is enough for any i/o needed duringKenneth R Westerback
disklabel processing. Especially when the 2nd one was not asking for a disk sector worth of buffer space. ok kettenis@
2015-09-27Store the target CPU in "struct intrhand" and use it in intr_barrier().Mark Kettenis
Also use it wherever we configure the hardware to direct interrupts to the right CPU.
2015-09-27free(x, 0) cleanup:Sebastien Marie
- set size argument of free() - remove pointless if expression around free() call ok guenther@
2015-09-27On R8000, make trap() behave closer to interrupt() when servicing a realMiod Vallat
interrupt by not invoking refreshcreds(), but closer to itsa() when servicing a trap-reported-as-interrupt by invoking userret() in that case. No change on !defined(CPU_R8000) kernels.
2015-09-26lint is dead and C99 may be old enough to drive a car: delete LONGLONGPhilip Guenther
comments ok millert@
2015-09-26lint is dead: BITFIELDTYPE comments aren't usefulPhilip Guenther
ok miller@
2015-09-26xheart_splx() has to restore the interrupt mask even on secondary CPUsVisa Hankala
because each core has a separate mask. Otherwise the IPI can be left disabled accidentally on a non-primary CPU when the core uses the rendezvous mutex: 1. splraise(IPL_IPI) soft-masks the IPI. 2. An IPI hits and the CPU enters the interrupt handler. 3. The handler hard-masks the IPI. 4. The interrupt is not processed because of the CPU's current IPL. The IPI is left hard-masked on leaving the handler. 5. splx(s) lowers the IPL below IPL_IPI. However, the interrupt's hardware mask is left unchanged because of the CPU_IS_PRIMARY() check in xheart_splx(). After this, the system will eventually hang because the CPU does not respond to IPI requests of other cores. While here, fix a similar situation with CIU interrupts on octeon. This might save a few moments of debugging once non-primary CPUs are allowed to process CIU interrupts. ok miod@
2015-09-26Let MP-safe interrupt handlers run without the kernel lock on octeon.Visa Hankala
ok kettenis@
2015-09-26Add a spinout check to the mips64 mutex, to aid debugging.Visa Hankala
ok kettenis@
2015-09-24It is no longer necessary to include CR_BERR in CR_INT_MASK if CPU_R8000.Miod Vallat