summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2016-11-20Drop pointless type casts.Visa Hankala
2016-11-18Fix end of interrupt routine to make pciide(4) work.Visa Hankala
Clue stick from miod@
2016-11-18Use the ErrorEPC register for curcpu().Visa Hankala
2009-07-31By 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.
2016-11-17Turn Loongson 3A bits on.Visa Hankala
The work on the platform was made possible by a hardware donation from Loongson Technology.
2016-11-17Add drivers for PCI host bridge and built-in UARTs on Loongson 3A,Visa Hankala
and put the pieces together by platform glue. Feedback from miod@
2016-11-15Add support for lid state detection in ykbec(4).Frederic Cambus
Tested on a Lemote Yeeloong 8101B. OK visa@, looks good to deraadt@
2016-11-15Avoid an uninitialised value in rev 1.93.Jonathan Gray
ok martijn@
2016-11-15Clean up the kernel Makefile's:Martin Natano
- Remove the 'lint' target. lint has been removed with OpenBSD 5.2. - Remove the 'tags' target. It does nothing of value. - Replace 'clean::' with 'clean:', as requested by espie and millert, and remove files from the 'clean' target, that are never generated. - Don't create a file called 'depend' in 'make depend', but just do nothing instead. ok mpi tb
2016-11-14Fix build now that ftd.h move to a MI directory.Martin Pieuchot
2016-11-10Add support for "allwinner,sun9i-a80-apb1-clk" compatible clocks.Mark Kettenis
This makes the serial console work properly and makes Cubieboard4 go multi-user.
2016-11-08Add a few more easy sun9i-a80 clocks.Mark Kettenis
2016-11-08Add support for "allwinner,sun9i-a80-mmc-clk" compatible clocks.Mark Kettenis
2016-11-08Add support for sun9i-a80, the Allwinner A80.Mark Kettenis
2016-11-08Add support for sun9i-a80, the Allwinner A80.Mark Kettenis
2016-11-08fix debug buildMike Larkin
2016-11-07Hide FIX_SSTEP() behind #ifdef _KERNELPhilip Guenther
ok deraadt@
2016-11-07Split PID from TID, giving processes a PID unrelated to the TID of theirPhilip Guenther
initial thread ok jsing@ kettenis@
2016-11-06Do not create machine@ symlinks in obj as root during includes:, butTheo Buehler
defer their creation to later, so that they are owned by BUILDUSER. This eliminates the last root-owned files in obj/ from 'make build'. In addition, place a MACHINE == hppa test in hppa/stand/Makefile.inc to avoid creating bogus symlinks on all other archs. joint work with & ok natano, "let's try it" deraadt
2016-11-06Do not create machine@ symlinks in obj as root during includes:, butTheo Buehler
defer their creation to later, so that they are owned by BUILDUSER. This eliminates the last root-owned files in obj/ from 'make build'. In addition, place a MACHINE == hppa test in hppa/stand/Makefile.inc to avoid creating bogus symlinks on all other archs. joint work with & ok natano, "let's try it" deraadt
2016-11-06Add interrupt handling routines for Loongson 3A.Visa Hankala
Feedback from miod@
2016-11-05Two tweaks for compile/Makefile.inc:Martin Natano
1) Replace '.elif !exists(${OBJDIR}/Makefile)' with just '.else'. espie pointed out, that if the file existed, make wouldn't be reading this file, so the check is superflous. Less clutter. 2) Unconditionally define the 'clean' and 'cleandir' targets, also when obj doesn't exist. This changes the behaviour of 'make clean' to be successful (doing nothing) without obj@ or obj/. ok tb millert deraadt
2016-11-05Move the definition of REGVAL into a common header to make it usableVisa Hankala
outside bonito(4). ok miod@
2016-11-05Drop unnecessary #ifdef MBUF_TIMESTAMP.Visa Hankala
2016-11-05Do not show a device unit number in the cnmac interrupt name. The sameVisa Hankala
interrupt drives all the cnmac ports. ok stsp@
2016-11-02when CONSPEED moved from libsa.h to Makefile it lost a leading '1',Jasper Lievisse Adriaanse
reinstate the original of 115200 spotted by brad
2016-11-02Make possible to change the link layer address of a cnmac(4) interface.Visa Hankala
Asked by and ok stsp@, ok jasper@
2016-11-01Use x2APIC if it is enabled by BIOS. It is expected that this doesn'tYASUOKA Masahiko
change the behavior on the system whose x2apic is disabled by BIOS. ok sf
2016-10-29If the system has fdt, use it for locating network PHYs.Visa Hankala
Skip a network port if its PHY cannot be found. Tested on Lanner MR-326B (has fdt) by pirofti@, and on EdgeRouter Pro (has fdt) and on EdgeRouter Lite (no fdt) by me.
2016-10-29Make PHY address lookups fail instead of using CAM-0100 entriesVisa Hankala
when the system board is unhandled.
2016-10-29sync with -r1.95 of amd64/vmm.c:Reyk Floeter
Further improve vmm's security model by restricting pledged vmm processes to only do VMM_IOC_ ioctls on their associated VM (these ioctls are _RUN, _RESETCPU, _INTR, _READREGS, or _WRITEREGS at present). The vmm monitor (parent) process or any non-pledged processes can still do ioctls on any VM. For example, a VM can only terminate itself but vmctl or the monitor can terminate any VM. This prevents reachover into other VMs: while escaping from a VM to the host side (eg. through a bug in virtio etc.) pledge already kept the attacker in a pledged and privsep'ed process, but now it also prevents vmm ioctls on "other VMs". OK mlarkin@
2016-10-29Further improve vmm's security model by restricting pledged vmmReyk Floeter
processes to only do VMM_IOC_ ioctls on their associated VM (these ioctls are _RUN, _RESETCPU, _INTR, _READREGS, or _WRITEREGS at present). The vmm monitor (parent) process or any non-pledged processes can still do ioctls on any VM. For example, a VM can only terminate itself but vmctl or the monitor can terminate any VM. This prevents reachover into other VMs: while escaping from a VM to the host side (eg. through a bug in virtio etc.) pledge already kept the attacker in a pledged and privsep'ed process, but now it also prevents vmm ioctls on "other VMs". OK mlarkin@
2016-10-27We don't generate an eddep script for kernel builds nowadays. The lastMartin Natano
reference to eddep in the kernel Makefile I could find is in 4.3BSD, released some 30 years ago. ok tb millert
2016-10-27Revert previous `ncpus' change because the percpu code now worksVisa Hankala
without it.
2016-10-27revert 1.41 now that subr_percpu is using ncpusfound instead of ncpus.David Gwynne
2016-10-27increment ncpus when a cpu is attached, not when its booted.David Gwynne
fixes percpu allocations, like visa@ just did on mips64.
2016-10-26Increment `ncpus' to its final value already during autoconfiguration soVisa Hankala
that percpu data areas get allocated properly on mips64 platforms. It is too late to set the value during launch of secondary CPUs. ok jasper@ kettenis@ dlg@
2016-10-26Fix a few misc bugs in i386 vmm:Mike Larkin
1. Include ioctls needed for pledge support (to be used with the upcoming i386 vmd diff) 2. Don't assume we can enter an IA32e mode guest on entry when the host doesn't have unrestricted guest capability 3. Don't enable PAE in the guest CR4 when launching on hosts without unrestricted guest capability (vmd does not set up PAE bootstrap page tables) 4. Don't use a bitfield for the MSR bitmap index (same fix as just committed for amd64) 5. Store and restore EFER properly on exit to ensure that the host NXE is recovered on exit
2016-10-26Don't use a bitfield in the msr store index structure. This may not end upMike Larkin
initializing the unused bits, leading to VMABORTs during vmentry. Found the hard way on i386 vmm, but the problem could occur on amd64 as well.
2016-10-25Remove now unused disable_l2_if_needed interface.Jonathan Gray
ok kettenis@ patrick@
2016-10-24make cleandir should skip the version file; ok otto millertTheo de Raadt
2016-10-23Remove sunxi board IDs.Mark Kettenis
2016-10-23De-platformize sunxi. This removes the board initialization code that sets upMark Kettenis
SRAM for the EMAC. Instead we rely on u-boot setting this up for us. ok jsg@, patrick@
2016-10-23Only attach on sun4i and sun5i. The timer implemented on later SoCs lacksMark Kettenis
the 64-bit counter that we use as timecounter. Those SoCs have a generic timer so we don't need the SoC-specific one.
2016-10-23stop disabling the external pl310 l2 cache on pandaboardJonathan Gray
The consensus is that this was done before the bugs in the cache flushing code were fixed. The pl310 has been enabled on imx for some time now and it works fine here on pandaboard as well. ok patrick@ kettenis@ bmercer@
2016-10-22If an Access Flag fault happens while we were running the kernel andPatrick Wildt
it happened on a kernel page, we need to consult the kernel pmap instead of the current proc's pmap. Fixes panic when using tmpfs. ok kettenis@
2016-10-22Attach sxitimer(4) using the fdt.Mark Kettenis
2016-10-22Stop setting MIIF_AUTOTSLEEP in sxie(4)Jonathan Gray
This can lead to tsleep in an interrupt context. Tested by and ok kettenis@
2016-10-21Stop setting MIIF_AUTOTSLEEP in fec(4)Jonathan Gray
This can lead to tsleep in an interrupt context, which resulted in the following panic: kernel diagnostic assertion "p->p_wchan == NULL" failed: file "/usr/src/sys/kern/kern_sched.c", line 333 TID PPID PGRP UID S FLAGS WAIT COMMAND 86009 0 0 0 2 0x40014200 miiaut idle0 Reported by matthieu@ with sabre lite, analysis by guenther@ ok kettenis@
2016-10-21Implement a driver for Marvell's Mbus bridge. This is the componentPatrick Wildt
that lets e.g. the CPU access a USB controller or the USB controller access the system's RAM. The bridge needs to be configured for the devices before we can access the controller or a controller our memory. Since it otherwise acts like a simplebus, simply attach simplebus once we are finished. "looks good to me" kettenis@