summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2012-03-31softintr_establish() takes IPL_xxx, not SI_xxx (harmless here since they turnedMiod Vallat
out to be the same value).
2012-03-30Expand the panic to show the malloc type and size. Okay deraadt@.Paul Irofti
2012-03-30actually store the result of the pmtu-route lookup. otherwise weMarkus Friedl
don't have a MTU to announce in the icmp need fragment packet. this fixes PMTU-discovery for TCP over IPsec; ok mpf@, fries@
2012-03-30If the MIDI UART is not ready for output, don't spin at IPL_CLOCK;Alexandre Ratchov
just return and make the midi(4) driver retry later. UART buffers are large enough for this, except eap(4) which uses interrupts for output. help from and ok jsg@
2012-03-29Put more smarts into the limited bootblocks brain; they will now happilyMiod Vallat
recognize a kernel bootpath (when not autobooting) even if it does not start with a /, and will also recognize when this is a full path (e.g. bootp()mykernel), in which case OSLoadPartition does not need to be prepended to the constructed path. This will allow ELF kernels to be booted on ELF-unaware PROM with bootp()bootecoff bootp()kernel without doomed-to-fail tomfoolery to convert the 64-bit ELF kernel to a 32-bit ECOFF binary.
2012-03-29Link IP22 kernels at 8MB rather than 1MB, to prevent bsd.rd from overlappingMiod Vallat
the PROM data area.
2012-03-29Missing #ifdef in previous diffMike Larkin
2012-03-29Prevent hibernation attempts on machines with unsupported disk controllers.Mike Larkin
The same check is also performed later in the hibernate sequence, but by then it's too late to cleanly unwind (presently). ok deraadt
2012-03-28guenther notes that s_pid must also move to matchTheo de Raadt
2012-03-28regenMiod Vallat
2012-03-28Work in progress support for the SGI Indigo, Indigo 2 and Indy systemsMiod Vallat
(IP20, IP22, IP24) in 64-bit mode, adapated from NetBSD. Currently limited to headless operation, input and video drivers will get ported soon. Should work on all R4000, R4440 and R5000 based systems. L2 cache on R5000SC Indy not supported yet (coming soon), R4600 not supported yet either (coming soon as well). Tested to boot multiuser on: Indigo2 R4000SC, Indy R4000PC, Indy R4000SC, Indy R5000SC, Indigo2 R4400SC. There are still glitches in the Ethernet driver which are being looked at. Expansion support is limited to the GIO E++ board; GIO boards with PCI-GIO bridges not ported yet due to the lack of hardware, and this kind of driver does not port blindly. Most of this work comes from NetBSD, polishing and integration work, as well as putting as many ``R4x00 in 64-bit mode'' erratas as necessary, by yours truly. More work is coming, as well as trying to get some easy way to boot install kernels (as older PROM can only boot ECOFF binaries, which won't do for the kernel).
2012-03-28Allow dma map boundary smaller than the kernel page size to work inMiod Vallat
bus_dmamap_load*().
2012-03-28Yet another ioctl-related pid value. Should be the master of theTheo de Raadt
thread, aka. p_p->ps_pid. ok miod
2012-03-28pfkey needs some p_p->ps_pid too. OK deraadt@ guenther@Claudio Jeker
2012-03-28Another pid that needs to be the process pid and not the thread one.Claudio Jeker
OK deraadt@, guenther@
2012-03-28More p_pid to p_p->ps_pid updates. OK deraadt@, guenther@Claudio Jeker
2012-03-28Use p_p->ps_pid as pid in the route header instead of the thread pid. GiveClaudio Jeker
userland a chance to compare the value against getpid(). This unbreaks transmission for me. OK deraadt@, guenther@
2012-03-28The kinfo_file2 structure's f_wbytes member was being filled with thePhilip Guenthe
read byte count instead of the written byte count. pointed out by paulm at tetrardus.net, ok dcoppa@
2012-03-28Take some additional steps needed to make the PHY on EC Ultra/8056Jonathan Gray
work correctly, based on similiar changes in FreeBSD. Originally from Brad Davis but changed quite a bit by claudio kettenis and myself since. ok kettenis@, earlier version ok claudio@
2012-03-27fix indentationTheo de Raadt
2012-03-27only attempt to calculate bus_clock if we can't get tables from acpiJonathan Gray
2012-03-27Make the bus_clock calculations happen later in the boot process soJonathan Gray
they can be conditionally called in future. This makes the i386 speedstep code closer to the amd64 code (though still with the added complications of VIA support and the *_update_cpuspeed callbacks)
2012-03-27Implement the AMD suggested workaround for family 10h & 12h errata 721Jonathan Gray
"Processor May Incorrectly Update Stack Pointer" by setting a bit marked 'reserved' in an MSR that is only "documented" to exist on 12h. AMD claim this problem can only occur in 64-bit mode, set the workaround bit on i386 in case this isn't true and in the interest of keeping the errata in sync between i386/amd64. ok deraadt@
2012-03-27Run identifycpu() on its own cpu.Christiano F. Haesbaert
Discussed with many on hackers. "Go ahead" kettenis@ "Get to it" deraadt@
2012-03-26simplify conditionals in acpi_sleep_state()Theo de Raadt
ok mlarkin
2012-03-26hook in the hibernate request code; half of this diff is from mlarkinTheo de Raadt
ok mlarkin
2012-03-26Make writes block if the message queues are full.Mark Kettenis
2012-03-26Increase the size of the message queues such that we can handle the defaultMark Kettenis
"MTU" of 4096 bytes.
2012-03-26Add DLT_PPP_SERIAL and DLT_C_HDLC to bpf.h even though the system will notClaudio Jeker
generate such packets but it helps porting applications that assume that these are available on any system. Requested by dhill long time ago.
2012-03-26Add support for the udl(4) in the Polaris2 USB dockClaudio Jeker
OK mglocker@
2012-03-26syncClaudio Jeker
2012-03-26Add id for the Polaris2 USB dock which is a udl(4)Claudio Jeker
OK mglocker@
2012-03-26Let this compile (not enabled by default); From Damian McGuckinTheo de Raadt
2012-03-26Add APM_IOC_HIBERNATETheo de Raadt
2012-03-26Fix an integer math error when using the result of uvm_page_rle, andMike Larkin
at the same time increase said function's max RLE page count return value. Add hooks in the right places to call the hibernate suspend and resume routines, so that we can enable hibernation with a HIBERNATE option line in GENERIC and appropriate acpi.c goo. discussed on and off with deraadt@ over the past few months
2012-03-26clear junk in p_comm before copying shorter names into itTheo de Raadt
ok jsing guenther miod
2012-03-25release the file ref to the kqueue while in kevent(), so that close()Theo de Raadt
can terminate. a new ref on the kqueue itself allows us to free it properly in that case. wakeups were missing too (for both kevent and poll). similar to netbsd pr46248. fixes a number of threaded ports. this version of the fix from matthew. ok tedu guenther matthew
2012-03-25Move cache handling routines related definitions to a dedicated header file,Miod Vallat
rather than abusing <machine/cpu.h>.
2012-03-25Only set the low order bits of CpuCacheAliasMask if it is nonzero, regressionMiod Vallat
of previous computation fix.
2012-03-24Fix fallback of uvm_map_hint() argument changes.Miod Vallat
2012-03-24Left-pad the eeprom dump with zeroes in the debug dump to make it easier toMiod Vallat
read (this code is not compiled unless option AHC_DUMP_EEPROM anyway)
2012-03-24Oops, forgot this file in the SGI_<model> -> SGI_IP## change.Miod Vallat
2012-03-24The various ConfigCache() functions actually return void, not int.Miod Vallat
2012-03-24Rename the various SGI_xxx constants from machine names to their IP numbers,Miod Vallat
for IP numbers under 30 (Octane), and add a few interesting ones. No functional change, except making my life easier for upcoming work.
2012-03-24Add a few trivial routines to get mips64r2 specific config registers. Not usedMiod Vallat
by anything yet, but has been lying in one of my trees for too long.
2012-03-24Missed a reference to the u_stats member when struct pstats was removedPhilip Guenthe
from struct user. Nothing left to zero-out here so the line goes. pointed out by deraaadt@
2012-03-24add a bunch of run devices found in the linux driverJonathan Gray
2012-03-24regenJonathan Gray
2012-03-24add a bunch of run devices found in the linux driverJonathan Gray
2012-03-24add ZTE HSUSB.Federico G. Schwindt
committed over it.