summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2020-05-26increment version numbers, due to recent RB_GOODSEED and fchmod +T changesTheo de Raadt
2020-05-26/etc/random.seed reuse can now be detected. The stat +T bit marks the fileTheo de Raadt
(fchmod +T by bootcode, chmod 600 by /etc/rc). If the seed is reused, and HWRNG isn't available, the kernel won't get RB_GOODSEED indication...
2020-05-26iodcstrategy() maintains a cache for READ performance (tapes are supportedTheo de Raadt
here, and alternatively would need to rewind). WRITE code exists, but was always wrong -- it writes the cache-buffer to disk, rather than the provided write-buffer. Copy the write-buffer into the cache, and invalidate the cache completely so that future reads start from scratch.
2020-05-26Check outcome of loadrandom() on octeonVisa Hankala
If loadrandom() succeeds, set RB_GOODRANDOM in boothowto. To enable fchmod(), disk_open() has to mount the filesystem in writable mode. This is tricky because the filesystem might be unclean. Hence the code has to use MNT_FORCE. Input and OK deraadt@
2020-05-26Rework kernel loading with octboot(4)Visa Hankala
Load the kernel image from the filesystem upfront in rdboot and pass the loaded image to octboot(4)'s kexec call in a memory buffer. As a result, octboot(4) does not rely on a mounted filesystem. OK deraadt@
2020-05-26Rewrite m88k mutex code as a slight variation of the MI mutex code.Kenji Aoyama
This will make mutex spinning time visible in top(1), and also might improve stability. The major change in this is that the old assembly code acquires mutexes with an atomic exchange operation, but releases them with a regular store, but the new code always uses atomic exchange operations. The mutex.h changes to the macros conform to <sys/mutex.h> to be able to reset the system while in ddb. Suggested from Miod Vallat, tested by me. The stability in heavy load is greatly improved in my case.
2020-05-25fchmod() will be needed soon.Theo de Raadt
ok kettenis
2020-05-25that dependency change breaks something else. sigh.Theo de Raadt
2020-05-25make loadrandom() return 0 for success, -1 for failure. While here,Theo de Raadt
relax the fstat() check because the system will have left the file in the right mode. ok visa kettenis
2020-05-25Pass boothowto from bootloader to kernel using .openbsd.bootdata. To makeMark Kettenis
sure that an old bootloader can boot a new kernel and a new bootloader can still boot an old kernel some hackery is needed as old kernels check for an exact size of the openbsd_bootdata struct. tested (with softraid) by kn@ ok stsp@, deraadt@
2020-05-25Bootblocks convert RB_GOODRANDOM to -R option, kernel converts it back into ↵Theo de Raadt
howto
2020-05-25Pass boothowto from bootblock to kernelTheo de Raadt
2020-05-25Adjust mdrandom() to also return 0 for success, -1 for failureTheo de Raadt
2020-05-25Adjust fwrandom() to return 0 for sucess, -1 for failureTheo de Raadt
2020-05-25add wsmoused support to efifbJonathan Gray
from John Carmack
2020-05-25Use <dev/clock_subr.h> in mcclock(4).Visa Hankala
Tested on Yeeloong. Looks good to miod@
2020-05-25Use <dev/clock_subr.h> in mfokclock(4).Visa Hankala
Looks good to miod@
2020-05-25Pass boothowto from the bootloader to the kernel on octeon.Visa Hankala
OK deraadt@
2020-05-25Mix board information into the entropy pool.Visa Hankala
The data are static but they introduce differences between systems. OK deraadt@
2009-12-25By 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.
2009-11-26By 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.
2020-05-25change wsdisplay attribute type from long to uint32_tJonathan Gray
miod explained it was initially a long as it was thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. suggested and reviewed by miod@
2020-05-25rename wsdisplay alloc_attr() to pack_attr()Jonathan Gray
Suggested by John Carmack. miod agrees a rename would make sense and explained it was initially thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. ok mpi@
2020-05-25Kill unused cdev_pc_init().Martin Pieuchot
ok kettenis@, visa@
2020-05-25Add support for write operations to diskstrategy().Theo de Raadt
2020-05-25The dependencies were insufficient.Theo de Raadt
2020-05-23Look at the openbsd,boothowto property and bring the bootarg parsingMark Kettenis
code in line with arm64. ok deraadt@
2020-05-23Add a little bit of const-ness.Mark Kettenis
2020-05-23Define PTE bits.Mark Kettenis
2020-05-23Clean up the code that implements the OPAL API.Mark Kettenis
2020-05-23Implement kqueue(2) support.Martin Pieuchot
inputs & ok kettenis@
2020-05-23remove ifdef'd out tc fb cnattach bitsJonathan Gray
miod@ agrees this can go
2020-05-23Use a distinct trap code with retguard on mips64.Visa Hankala
This lets the kernel detect retguard traps and send SIGABRT instead of SIGEMT. SIGEMT does not indicate correctly the nature of the error (stack overflow, violation of control flow). It can confuse the user to restart the program without further investigation. Prompted by and OK deraadt@ OK mortimer@
2020-05-23remove more cfb and sfb bitsJonathan Gray
2020-05-23remove cfb and sfb alpha tc fb driversJonathan Gray
These were removed from files.alpha 1.105 in 2017 and the rcons bits they reference were removed in 2006. removal suggested by miod@
2020-05-22Fill complete trap frame.Mark Kettenis
2020-05-22Panic on unhandled traps (which for now is all of them).Mark Kettenis
2020-05-22Reboot (unconditionally for now).Mark Kettenis
2020-05-22Add some very simple trap handling.Mark Kettenis
2020-05-22Enable option FFS2 on RAMDISK; ok aoyama@ deraadt@Otto Moerbeek
2020-05-22Enable bwfm(4).Patrick Wildt
2020-05-22Enable mvkpcie(4).Patrick Wildt
2020-05-22Copy db_disasm.c from powerpc to powerpc64.gkoehler
This includes my last change to decode the %{ds}(%{A}) operand of ld, std instructions. ok drahn@
2020-05-22Decode the %{ds}(%{A}) operand of ld, std instructions.gkoehler
I don't expect to see these 64-bit instructions in 32-bit kernels, but I'm going to copy this code to powerpc64. ok drahn@
2020-05-21Claim the memory region reserved for the interrupt vectors.Mark Kettenis
2020-05-21Use <dev/clock_subr.h> in dsclock(4).Visa Hankala
Looks good to miod@
2020-05-21Use <dev/clock_subr.h> in dpclock(4).Visa Hankala
Looks good to miod@
2020-05-21Use <dev/clock_subr.h> in dsrtc(4).Visa Hankala
Tested on IP30 with DS1687. Looks good to miod@
2020-05-21Remove sparc64 mutex.S.Visa Hankala
The architecture has been using the MI mutex for a while. OK mpi@
2020-05-18Oops, DDB wrapper around setjmp/longjmp was misplacedTheo de Raadt