summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2018-07-02Add functions to allow the use of the FPU in the kernel.Mark Kettenis
ok drahn@
2018-07-02vmm: wrap a long line and prefix a hex value printed in a debug printfMike Larkin
with 0x
2018-07-02clarify what is actually needed from a header file being includedMike Larkin
(previous comment was wrong, or outdated)
2018-07-01Revert bit I didn't intend to commit.Mark Kettenis
2018-07-01acpi: clean up some inconsistent style in the hid matching arraysMike Larkin
ok millert, kettenis, jcs, phessler, deraadt, mpi
2018-07-01Hook up acpi(4) on arm64. Various bits of driver glue are still missingMark Kettenis
but this is enough to boot multi-user on the mcbin with suitable firmware. ok mlarkin@
2018-07-01Use generated string for the bus number extent.Mark Kettenis
2018-07-01Lock the file descriptor table when accessing the `fd_ofileflags' array.Visa Hankala
This prevents the array from being freed too early. In the function unp_internalize(), the locking also ensures the per-fdp flags stay coherent with the file instance. OK mpi@
2018-07-01Update IDTVEC, KIDTVEC, and KUENTRY to align with _ALIGN_TRAPS instead ofPhilip Guenther
ALIGN_TEXT. For the places where IDTVEC and KIDTVEC are used in ways that would fail if a trap was inserted, provide IDTVEC_NOALIGN for use directly after other IDTVEC uses, and KIDTVEC_FALLTHROUGH for places where the code intentionally falls through to a KIDTVEC. "objdump -d" shows that this just converts nop-sleds to trap-sleds immediately after an unconditional jmp, or a retq, iretq, or sysretq. ok mortimer@ kettenis@ deraadt@
2018-07-01Allow ahci(4) to attach to acpi(4).Mark Kettenis
ok deraadt@
2018-07-01Move acpi(4) attach glue into acpi_machdep.c.Mark Kettenis
ok guenther@, deraadt@
2018-07-01Add retguard asm macros.mortimer
ok guenther@
2018-07-01Use fnew() to allocate a struct file. Simplifies the code.Mark Kettenis
ok mpi@, visa@
2018-07-01Remove semicolon before printing the AML name.Mark Kettenis
spotted by deraadt@
2018-07-01Allow com(4) to attach to acpi(4). For now we will only use this on arm64Mark Kettenis
where this is needed to support serial console in ACPI mode. ok mlarkin@
2018-07-01Add support for _DSD Device Properties.Mark Kettenis
ok mlarkin@
2018-07-01Add definitions for SPCR tables.Mark Kettenis
ok mlarkin@
2018-07-01Retire support for unused RTM_LOCK messages, it's redundant w/ RTM_CHANGE.Martin Pieuchot
ok tb@, sthen@
2018-07-01Provide _ALIGN_TRAPS macro for text alignment with a trap-sled, thenPhilip Guenther
use it where that was manually written before. No binary change. ok deraadt@
2018-06-30Don't try to set XCR0_X87 when XSAVE isn't supported at all. FixesPhilip Guenther
vmm on CPUs without XSAVE. Problem reported by Ax0n (ax0n (at) h-i-r.net) ok mlarkin@ deraadt@
2018-06-30Some tweaks such that ACPI 5.1 tables are recognized as well.Mark Kettenis
2018-06-30Typo in comment in previous file which I said I'd address in the originalMike Larkin
commit and forgot to do. (Sufrace -> Surface)
2018-06-30acpisurface(4): driver for Surface Pro 4 and Surface Book hardwareMike Larkin
buttons. ok phessler, deraadt, kettenis
2018-06-30Remove strange /* End of file */ style.Theo de Raadt
2018-06-30Don't steal processes from other CPUs if we're not scheduling processes onMark Kettenis
a CPU. ok deraadt@
2018-06-30Add intr_enable() here as well.Mark Kettenis
2018-06-30Add intr_enable() function, intended for MI use to amd64 and i386 and useMark Kettenis
this in the acpi(4) suspend/resume code paths. ok deraadt@
2018-06-29Use <stdint.h> types.Mark Kettenis
ok mpi@, jung@, krw@, deraadt@
2018-06-29ACPI: Allow (with warning) GPE handler reassignment, instead of returningMike Larkin
a failure code. ok kettenis
2018-06-29vmm: add more information to a debug printf when the guest %xcr0 doesn'tMike Larkin
match the host's mask
2018-06-28Add missing <sys/param.h>.Mark Kettenis
ok krw@, millert@, drahn@
2018-06-28remove other chunk of accidentally committed test code, spotted by deraadtStuart Henderson
2018-06-28remove accidentally committed test code, spotted by deraadtStuart Henderson
2018-06-28Add ci_acpi_proc_id member to struct cpu_info; needed by acpi(4).Mark Kettenis
ok patrick@, drahn@
2018-06-28regenKevin Lo
2018-06-28Add Microchip Ethernet device IDs.Kevin Lo
ok deraadt@
2018-06-28Remove unused/redundant prototypes.Mark Kettenis
Pointed out by patrick@
2018-06-27regenMartin Pieuchot
2018-06-27Revert previous, at least one pool need its IPL to be IPL_MPFLOOR asMartin Pieuchot
found by visa@.
2018-06-27Raise file_pool's IPL to prevent deadlocks with the newly unlockedVisa Hankala
system calls. OK mpi@
2018-06-27Refactor to simplify - no functional change.helg
ok mpi@
2018-06-27regenMartin Pieuchot
2018-06-27Unlock 12 network-related syscalls.Martin Pieuchot
This is possible now that the code doing file refcounting is mp-safe. Tested by many, ok tb@, visa@
2018-06-27Rework vbus(4) interrupt handling to be similar to cbus(4). Expose functionsMark Kettenis
to ack and enable/disable interrupts and don't enable interrupts by default. Also don't ack interrupts by default. Make use of this in vcons(4) to avoid interrupt storms that may occur because of a race between the interrupt handler and the software interrupt handler. Don't enable the interrupt handler unless somebody actually has the console open. Ack the interrupt at the end of the softintr handler. Fixes console issue on SPARC T3 machines. ok claudio@
2018-06-26The disk specification in an Open Firmware device path depends on the busMark Kettenis
binding for the disk interface. For traditional SCSI is is simply a number; i.e. the disk at target 0 is specified by @0. For SAS there are several options but newer Oracle firmware no longer accepts the traditional SCSI target specification. The best alternative is the PHY number and the disk at PHY number 0 is specified by @p0. To determine which binding to use, we look up the device_type of the parent. If that is "scsi-sas", use the PHY number instead of the SCSI target. Fixes booting from softraid on SPARC T3 and later. ok claudio@, stsp@
2018-06-26Make the system cache a small number of free lock list entries per CPU.Visa Hankala
This reduces the contention of the `w_mtx' lock. OK mpi@
2018-06-26Remove a duplicate fd_used() call. The new file descriptor passedVisa Hankala
to dupfdopen() has already been registered with fd_used() in fdalloc(). The duplicate call distorted the number of open file descriptors returned by getdtablecount(2) if a file was opened via /dev/fd/. While there, assert that the file instance should already be in the file list. OK mpi@
2018-06-26Make ast() call refreshcreds(). Tweak this code to be similar to the amd64.Mark Kettenis
ok phessler@, guenther@
2018-06-26knfMike Larkin
2018-06-26Let acpi(4) pass down the bus dma tag.Mark Kettenis
ok deraadt@