summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2019-12-01Remove unused test program.Visa Hankala
OK deraadt@
2019-11-29Fix size of reserved bytes section in xsave header.mortimer
ok guenther@ kettenis@
2019-11-29Add rkemmcphy(4), a driver for the RK3399's eMMC PHY.Patrick Wildt
2019-11-29Add missing retq to mds handler for knights landing.mortimer
ok guenther@
2019-11-29Pass the EFI memory map to the kernel.Mark Kettenis
ok deraadt@
2019-11-28Implement a hexdump command in the boot loader. This helps toAlexander Bluhm
inspect the memory layout that the firmware has created. It is especially useful for UEFI debugging. OK deraadt@ kettenis@
2019-11-26Several functions expect that bootdev_dip is not NULL and can beAlexander Bluhm
dereferenced. But there is no boot disk when EFI bootloader has been received via TFPT. Fake a disk info that never maches a real disk. Fixes a hang in run_loadfile() during HP Elitebook UEFI boot. OK patrick@
2019-11-26vmm(4): fix pvclock accuracy issuespd
Shift math error discovered by George Koehler. Also, fix the error in tsc multiplier which was correct only if the host timecounter was tsc. ok mlarkin@
2019-11-26When deciding if a pci device is 'primary' test if the efi fb memoryJonathan Gray
range is contained in a pci bar instead of only testing if the start address of the efi fb is non zero. Corrects a problem reported by Brennan Vincent on a Dell XPS 9575 with amdgpu and inteldrm booted via efi. amdgpu would wrongly decide it was primary on probe and as a result when encountering an unrelated error efifb would reattach when amdgpu detached. When inteldrm would latter attach an assert would trigger as efifb had already claimed the console. ok kettenis@
2019-11-20Ensure that the kernel stack is properly aligned on mips64. This fixesVisa Hankala
a panic related to vararg function sppp_auth_send(). The vararg code generated by clang assumes 16-byte stack alignment. pppoe(4)-induced panic seen by many on octeon Fix from miod@
2019-11-19Enable rge(4).Kevin Lo
ok deraadt@
2019-11-18Introduce rge(4), a new driver for Realtek 8125 PCI Express 2.5Gb EthernetKevin Lo
device. "just commit!" deraadt@ "looks good to me" jmatthew@
2019-11-10TRUE/FALSE conversions missed in previous.Martin Pieuchot
2019-11-09Retguard will start using sections named ".openbsd.randomdata.retguard.*"Philip Guenther
and not just ".openbsd.randomdata.retguard". Accept both in the kernel ldscripts so that they're placed together between the __retguard_{start,end} symbols. Similarly, match not just ".openbsd.randomdata" but also ".openbsd.randomdata.*" to pick up other random (pun intended) items. While here, stub in those retguard bits into all the ldscripts. ok deraadt@
2019-11-09Let mcount.o compile by ignoring a warning about the profile.h ASMPhilip Guenther
ok patrick@
2019-11-09move NT eflag clearing after register saving, otherwise %eax isTheo de Raadt
corrupted with the eflags value. Found by julius zint. ok guenther
2019-11-08Substitute boolean_t/TRUE/FALSE/db_addr_t by int/1/0/vaddr_t.Martin Pieuchot
Tested by miod@, ok aoyama@
2019-11-07Remove get_pc_str_offset(), which has been unused since we switchedPatrick Wildt
to clang, where the stack frame format changed significantly. Prompted by guenther@ noticing deprecated ASM warnings ok drahn@
2019-11-07The compiler -pg option implies -fno-ret-protector, as we want to disablePhilip Guenther
retguard and similar when profiling. However, that missed all the .S files, as ${PROF} wasn't added when ${NORMAL_S} was converted from direct invocation of ${AS} to instead use ${CC}. Similarly, mcount.o still had retguards as it cannot be built with -pg. So: pass ${PROF} when compiling .S files, and compile "no profiling" files with -fno-ret-protector on archs with retguard. feedback and ok mpi@ mortimer@
2019-11-07db_addr_t -> vaddr_tMartin Pieuchot
2019-11-07Substitute boolean_t/TRUE/FALSE by int/1/0.Martin Pieuchot
2019-11-07Convert db_addr_t -> vaddr_t but leave the typedef for now.Martin Pieuchot
2019-11-07Substitute boolean_t/TRUE/FALSE by int/1/0.Martin Pieuchot
2019-11-07ANSIfy & substitute boolean_t/TRUE/FALSE by int/1/0.Martin Pieuchot
ok jasper@, deraadt@
2019-11-07Substitute boolean_t/TRUE/FALSE by int/1/0.Martin Pieuchot
ok dlg@, jasper@
2019-11-06Substitute boolean_t/TRUE/FALSE by int/1/0.Martin Pieuchot
ok dlg@, jasper@
2019-11-06ANSIfy functions and get rid of boolean_t.Martin Pieuchot
ok dlg@, jasper@
2019-11-05Give some END()s to assembly symbols.Martin Pieuchot
ok kettenis@, jca@
2019-11-04Add ogx(4), a driver for the OCTEON III network processor.Visa Hankala
This network driver covers higher-end models of the OCTEON III family. They have a modified design whose interface is not compatible with the lower-end models or earlier chip generations. The code is still a work in progress. However, it is capable enough to make the SGMII port functional on the CN7360. No objection from deraadt@
2019-11-03Don't talk about uvm_km_alloc(9), pool_get(9) is what we need.Martin Pieuchot
ok deraadt@, guenther@
2019-11-01Reduce BOOTRANDOM_MAX to 256. naddy pointed out there's no point havingTheo de Raadt
it larger than RC4STATE. A long discussion ensued. In conclusion all entropy inputs are either satisfactory enough, or just as shitty at 512.
2019-11-01Fix an off-by-one in db_save_stack_trace().Martin Pieuchot
Save the PC after checking if it belongs to the kernel.
2019-11-01Flush the register windows before unwinding the stack.Martin Pieuchot
This makes db_save_stack_trace() and db_stack_dump() work. ok deraadt@, kettenis@
2019-10-31In 2013, when OpenBSD/armv7 was still rather early, improvements forPatrick Wildt
that platform have been trickling in bit by bit. One of those changes unfortunately introduced a regression in cache flushes. The check for the length in the cache-flush-loop was changed from the instruction bpl to bhi. This has the effect that it does not branch on zero anymore. Due to the length decrement at the beginning of the function, which was not removed, a length of (n * cacheline) + 1 means that the loop misses one run! This means it is possible that the last byte of a DMA transfer was incorrect, as one could see on network packets often enough. Remove that instruction, which makes it even more similar to the OpenBSD/arm64 code. ok deraadt@
2019-10-29Use arc4 to bit-spread the 512-byte random buffer over the .openbsd.randomdataTheo de Raadt
section, which has grown a fair bit with the introduction of retguard. Mortimer discovered the repeated 512-byte sequence as retguard keys, and this resolves the issue. (Chacha does not fit on the media, so 1.5K early drop RC4 is hopefully sufficient in our KARL link universe) Version crank the bootblocks. sysupgrade -s will install new bootblocks. ok djm mortimer
2019-10-28Add missing KERNEL_UNLOCK.Mark Kettenis
ok guenther@, mpi@
2019-10-28Fix atomic_sub_long_nv() on mips64. The negation should useVisa Hankala
64-bit unsigned arithmetic.
2019-10-28merge version directly into codeTheo de Raadt
2019-10-27Add i.MX5/6 support and enable this driver on armv7(4).Mark Kettenis
ok jsg@, patrick@
2019-10-27Add code to spin up secondary CPUs.Mark Kettenis
ok jsg@
2019-10-27Add simplefb(4).Mark Kettenis
2019-10-26Correct some ASM in a commentPhilip Guenther
2019-10-25Split out the code that brings us out of HYP mode and the code thatMark Kettenis
initializes the MMU into its own functions and move them to locore.S. ok patrick@
2019-10-25Add glass console for armv7. Similar to what we did on arm64 two years ago.Mark Kettenis
ok patrick@
2019-10-25Make it possible to switch to framebuffer "glass" console in case itMark Kettenis
isn't the default already. Same change as we made on arm64 two months ago. ok patrick@
2019-10-24Enable sxisid(4)Mark Kettenis
2019-10-23Enable sxisid(4).Mark Kettenis
2019-10-23store specific strings for smbios baseboard vendor, product and serialJonathan Gray
Often vendor and product strings will match for system information and baseboard but in the case of the GPD Pocket system information vendor is 'Default string' and baseboard information vendor is expected to be 'AMI Corporation'. This is needed for a drm panel orientation quirk.
2019-10-23Provide hw.serialno using the root node's serial-number property.Patrick Wildt
ok kettenis@
2019-10-21Add sxipwm(4) and pwmbl(4). Thse two drivers together add support for theMark Kettenis
backlight controller on the Pinebook. ok patrick@, jsg@