summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2018-06-02Enable fanpwr(4), move sypwr(4) where it belongs.Mark Kettenis
2018-06-01With option WITNESS we need to have a bit more KVA available during earlyMark Kettenis
bootstrap so allocate page tables for the first GB. ok deraadt@
2018-06-01Clear aesni_sc if the context is freed, to avoid leaving a danglingFrederic Cambus
pointer behind. OK visa@
2018-06-01Add a kludge that fixes the build until com_fdt.c is ready for octeon.Visa Hankala
2018-06-01Clear vc3_sc if the context is freed, to avoid leaving a danglingFrederic Cambus
pointer behind. Pointed out by visa@, thanks! OK visa@
2018-06-01Enable witness(4) on select architectures to help the current MP work.Visa Hankala
Requested by deraadt@
2018-05-31Return error values directly where appropriate, instead of using the errFrederic Cambus
variable. While there, remove TODO about bitching. We haven't felt the need to bitch since the driver was commited, and we do not bitch in aesni_setup() either. OK visa@
2018-05-31Move com_fdt.c to dev/fdt since we can share it between armv7 and arm64 now.Mark Kettenis
ok patrick@
2018-05-31Enable bwfm(4) on Loongson for USB devices.Frederic Cambus
Tested on a Lemote Yeeloong 8101B. OK visa@
2018-05-31Remove comcnspeed and comcnmode. They serve no purpose anymore. ConfiguringMark Kettenis
the serial port speed can be done through the device tree and these days everybody uses 8N1 for the mode. ok patrick@, visa@, jsg@
2018-05-31Remove comcnspeed and comcnmode. They serve no purpose anymore. ConfiguringMark Kettenis
the serial port speed can be done through the device tree and these days everybody uses 8N1 for the mode. ok patrick@, visa@, jsg@
2018-05-30Add sizes for free() for octeon.Frederic Cambus
OK deraadt@, visa@
2018-05-30Define IPL_MPFLOOR on SP archs.Martin Pieuchot
From Mathieu <naabed at poolp.org>, ok visa@
2018-05-30Remove comcnspeed variable, which gets set but is never actually used.Mark Kettenis
This removes the (no-op) -1 and -9 kernel boot arguments. ok visa@
2018-05-28More steps for i386 Meltdown fix:Alexander Bluhm
- name gdt explicitly in struct cpu_info_full - identfiy ARCH_CAPABILITIES_RDCL_NO and print in identifycpu() - in pmap.c build U-K table, handle PG_G accordingly - in pmap_switch() do not unmap the kernel, yet; but all pieces are in place - pmapae.c: on boostrap transfer pmap to pmapae tables, build U-K table and wire it, handle PG_G from hshoexer@; OK mlarkin@
2018-05-28Cleanup bootconfig.h and use strlcpy() to copy boot arguments.Mark Kettenis
ok drahn@
2018-05-28Remove unused include file.Mark Kettenis
ok drahn@
2018-05-28Drop include of <arm64/swi.h> and remove it.Mark Kettenis
ok drahm@
2018-05-28Call readdisksector() instead of rolling our own. Drop <sys/systm.h>Mark Kettenis
include. Reduces the diffs to the amd64/i386 version of this code. ok drahn@
2018-05-26Delete obsolete reference to setting segment registersPhilip Guenther
2018-05-26Only set fpu_save_len once and assert if it's too big or would differPhilip Guenther
between CPUs ok kettenis@ mlarkin@
2018-05-26CR0_WP is already set in CR0_DEFAULTPhilip Guenther
2018-05-26Initialize ci_idle_pcb->pcb_cr0 just once, in cpu_attach().Philip Guenther
For secondary CPUs, %cr0 is initially loaded in cpu_spinup_trampoline so don't load it again in cpu_hatch(). ok kettenis@
2018-05-26Update comment to reflect xsavePhilip Guenther
2018-05-24vmm(4): unbreak i386 VMM_DEBUG buildMike Larkin
2018-05-23Enable ccpmic(4) and tipmic(4).Mark Kettenis
2018-05-23Enable bwfm(4).Patrick Wildt
ok stsp@
2018-05-23Remove unused pmap_steal_memory_implementation(). It doesn't actually workMark Kettenis
and implementing this interface only really makes sense for architectures that use a direct map. ok patrick@, visa@
2018-05-23Move CR4_DEFAULT to specialreg.h where the CR4_* values are definedPhilip Guenther
ok mlarkin@
2018-05-22Define CR0_DEFAULT with our default CR0_* flags for various .S files.Philip Guenther
Replace a hex constant with the correct CR0_* define in mptramp.S. Clean up lots and lots of whitespace glitches. no binary change. ok mlarkin@
2018-05-22Factor out the common FPU handling from vcpu_run_{vmx,svm}() intoPhilip Guenther
vmm_fpu{restore,save}() ok mlarkin@
2018-05-22Delete antique sigdebug definitionsPhilip Guenther
ok kettenis@
2018-05-20Stash the syscall number in tf_err so it can be reported by the SPL checkPhilip Guenther
ok mlarkin@ mpi@
2018-05-17Make VMM_DEBUG kernels compile again; ok mlarkinMike Belopuhov
2018-05-16Move the code that decodes the i.MX6 PLLs and PFDs into imxanatop(4)Patrick Wildt
instead of having imxccm(4) map more than it should and access the memory space that imxanatop(4) should be responsible for. ok kettenis@
2018-05-16Add glue for the USB3 controller on the i.MX8MQ SoC.Patrick Wildt
Discussed with kettenis@
2018-05-16Implement pmap_growkernel(). Bump VM_MAX_KERNEL_ADDRESS now that we noMark Kettenis
longer pre-allocate the complete kernel page tables. ok patrick@, visa@
2018-05-15Remove a4x bus space hack.Mark Kettenis
ok patrick@
2018-05-15Remove a4x bus space hack.Mark Kettenis
ok patrick@
2018-05-14Add support for register shift/io-width to the console code as well.Mark Kettenis
ok visa@, patrick@
2018-05-14Relax the way irqs are assigned. This diff does:Mark Kettenis
- dynamic allocation of interrupts for dino(4) and gsc(4) - only mention irq locators for devices which use interrupts. - for gsc(4), this actually postpones interrupt allocation until gsc(4) attaches, so asp(4)/lasi(4)/wax(4) won't route the interrupt yet, but the gsc(4) child will take care of this. - remove the irq locator for the drivers which do not need a fixed assignment. siop and moongoose could benefit from this but don't work at the moment so this is left as an exercize to future kernel hackers. A side effect from this is that we do not need multiple sti(4) attachment lines, so PCI sti(4) devices will now attach as sti0 rather than sti2. With this diff, multiple dino(4) devices attached to the same parent will use different interrupt sources, and more than two dino(4) devices can attach. Tested on 715/75 (old-gen using asp), 715/100/XC (new-gen using lasi), B132L+, B180L, C240, B2000, C3650. From miod@
2018-05-14Expose memory barriers to userland.Mark Kettenis
ok visa@, mpi@
2018-05-14Delete unused/obsolete labelsPhilip Guenther
2018-05-13Fix code which is #ifdef TRAP_SIGDEBUG or DEBUG: wrong variable andPhilip Guenther
format string mismatch
2018-05-11Fix fallout from i386 Meltdown preparation which is using interruptAlexander Bluhm
gates now. Interrupts for dna, fpu, and f00f_redirect were not properly enabled. Thus npxintr() tried to get the kernel lock with interrupts disabled causing a deadlock in pmap_tlb_shootwait(). Enable interrupts for dna, fpu, and f00f_redirect. dna and fpu leave the kernel directly, thus they have to disable interrupts again; f00f_redirect goes through calltrap which will enable interrupts. from hshoexer@; OK mlarkin@
2018-05-11Compile the EFI bootloader with -mfloat-abi=soft to prevent the compiler fromMark Kettenis
using FPU instructions. Makes the bootloader work again after we switched clang to use -mfloat-abi=softfp by default. ok jsg@, patrick@
2018-05-09Fix a linking error in the IP26 kernel. This is a regression causedVisa Hankala
by the addition of db_save_stack_trace(). sys/arch/mips64/mips64/trap.c:(.text+0x410): undefined reference to `u_intr' Pointed out by deraadt@
2018-05-09Avoid locking two vm_pages simultaneously in pmap_enter(). To achieveVisa Hankala
that, remove any existing mapping before locking the new vm_page. This fix prevents a deadlock. Issue pointed out by witness(4).
2018-05-09vm_page lookup does not need locking. Hoist it outside the pmap lock.Visa Hankala
2018-05-09Implement stack trace saving on mips64.Visa Hankala
OK mpi@