Age | Commit message (Collapse) | Author |
|
Simplify MD code and reduce the amount of recursion into the signal code
which helps when dealing with locks.
ok cheloha@, deraadt@
|
|
to need KERNE_LOCK. Been testing this for about 3 weeks.
|
|
variables and includes. While there get rid of the boot_file support
and (void) casts.
ok kettenis@
|
|
Checked against ATF, LLVM and Arm TRMs.
ok kettenis@
|
|
ok mpi@
|
|
|
|
wscons and ofw are in sync.
ok kn@
|
|
The Meltdown mitigation work ran right across the previous abstractions;
draw slightly different lines and use separate macros for interrupts
vs traps vs syscall.
The generated ASM for traps and general interrupts is completely
unchanged; the ASM for the four directly routed interrupts is brought
into line with the general interrupts; the ASM for syscalls is
changed to delay reenabling interrupts until after all registers
are saved and cleared.
ok mpi@
|
|
The bootmac passed is supposed to be the MAC address of the NIC that
we have booted from. This allows bsd.rd to realize it should run an
unattended install via network. This is needed for adding powerpc64
to bluhm's regression tests.
ok kettenis@
|
|
Note that the first 16MB of the block are currently unused since
we link our kernels at physical address 0x01000000. Therefore
32MB is no longer enough to load a kernel that is now larger than
16MB.
Fixes the "entry point at 0x10010000" hang that people have reported
on some machines.
ok patrick@, naddy@, deraadt@
|
|
uvm_fault (and some similar "fault emulation" code which scream danger
danger)
tested by aoyama
|
|
for us.
|
|
unconditionally now that astfb(4) can be used as the console as well.
Only print that we're the console if we actually are.
|
|
and early kernel boot messages will appear on opalcons(4) until astfb(4)
attaches.
|
|
|
|
it shouldn't optimise across them.
ok kettenis@
|
|
interrupt pin as the devino. Fixes ohci(4) and ehci(4) interrupts on the
Fujitsu M10-1.
|
|
settings.
Found by and ok kn@
|
|
around uvm_fault(), and slightly refactor code to be more like on
other architectures
in snaps for 2 weeks
|
|
around uvm_fault(), and slightly refactor code to be more like on
other architectures
|
|
kernel functions, rearrange to be highly similar to amd64 fault
handling, and reduce the KERNEL_LOCK to only be around uvm_fault
reviewed by numerous people, especially kettenis
In snaps for over a week
|
|
|
|
|
|
and amdgpu(4) drivers do unaligned access to uncached memory because the
Linux DRM code doesn't mark pointers to device memory (VRAM) as volatile.
I'm still investigating a better solution but this gets things going such
that we can also look at the userland side of this issue.
discussed with deraadt@
|
|
without this. The machine reboots and the core we were running on will
be deconfigured.
|
|
|
|
This creates separate domains for each PCI device and can provide protection
against invalid memory access. Needed for Passthrough PCI from vmd.
ok deraadt@, kettenis@
: ----------------------------------------------------------------------
|
|
Add retguard to some, but not all, asm functions in libc. Edit SYS.h
in libc to remove the PREFIX macros and add SYSENTRY (more like
aarch64 and powerpc64), so we can insert RETGUARD_SETUP after
SYSENTRY. Some .S files in this commit don't get retguard, but do
stop using the old prefix macros.
Tested by deraadt@, who put this diff in a macppc snap.
|
|
commands. Fixes wsconsctl display commands with drm drivers.
ok kettenis@
|
|
|
|
|
|
PDP pool and use the single page allocator for the PDP pool. This makes
pmap_destroy(9) mpsafe while preventing additional pressure on the
interrupt-safe kernel map.
ok mpi@
|
|
as best we can.
|
|
PCI address space. Needed for radeondrm(4) and amdgpu(4) since Radeon GPUs
only implement 36, 40 or 44 bits of address space.
|
|
|
|
|
|
|
|
|
|
around buggy Radeon cards that advertise 64-bit MSI but only implement
40 bits.
|
|
up MSI support.
stsp@ and bluhm@ ran into this on T5220s
ok stsp@ kettenis@ patrick@
|
|
to other architectures. Kernel lock only the minimum (in preparation for
further unlocking down the line)
ok kettenis
|
|
ok deraadt@ kettenis@
|
|
This is what we already do on powerpc and seems to be what everybody
does for 64-bit POWER systems.
ok deraadt@, patrick@
|
|
minor refactorings to narrow KERNEL_LOCK just around uvm_fault()
ok kettenis
|
|
ok deraadt@ kettenis@
|
|
The condition around uvm_grow() can be simplified, as the error result
adjustment is effectively a dead store
ok kettenis
|
|
|
|
noticed by kettenis
|
|
within the correct #ifdef of course.
ok kettenis
|
|
adjustment is effectively a dead store
ok kettenis
|