summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/stand
AgeCommit message (Collapse)Author
2024-11-05The MI boot code used to have an infinite loop trying to boot the kernel,Miod Vallat
which got limited to at most two tries 26 years ago for the 2.3 release, but the documentation was never updated to match this change. Do it now. Reported by Nir Lichtman on tech@
2024-01-28Force -fno-stack-protector on "boot block" that absolutely can't haveTheo de Raadt
a stack protector (probably not even a -fstack-protector-strong) because the bloat would render them unuseable. This also means the system compiler can now take on any more it wants, and all the pieces which can't use the stack protector are properly marked. ok kettenis
2023-03-14sync the boot options list, and some macro fixes;Jason McIntyre
ok miod
2023-03-13Switch alpha to new boot blocks.Miod Vallat
2023-03-13Add manual page.Miod Vallat
2023-03-11New alpha secondary boot blocks using the MI code base. Not linked to theMiod Vallat
build yet.
2023-03-11Remove long dead "tool".Miod Vallat
2023-03-11Allow strip and objcopy to be overrridden, for easier cross-buildability. NFCMiod Vallat
2023-02-07Since we override CFLAGS here, don't forget to put -Oz in there so as to compileMiod Vallat
with some form of optimization.
2023-01-16roughly cleanup terrible pre-ansi practicesTheo de Raadt
ok miod
2023-01-04Gordon W. Ross agreed to rescind clause 3 and 4 inJonathan Gray
NetBSD dev_net.c rev 1.15 bootparam.c rev 1.19 https://mail-index.netbsd.org/source-changes/2009/10/21/msg002212.html
2021-10-24For open/openat, if the flags parameter does not contain O_CREAT, theTheo de Raadt
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert
2021-07-02__remq.S will be needed soon.Theo de Raadt
2021-01-29repair declerations to satisfy -fno-commonTheo de Raadt
ok kettenis
2020-12-09Use daddr_t and not daddr32_t in boot media.Kenneth R Westerback
At a minimum, amd64/i386 should now boot from 4TB GPT formatted disks. More daddr32_t terminations with extreme prejudice to follow. Tested by various, in snaps for a few days. ok deraadt@
2020-07-18__main() is not need anymoreTheo 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-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 bootblock to kernelTheo de Raadt
2020-05-25Add support for write operations to diskstrategy().Theo de Raadt
2020-04-23 ce examples of "Ar arg Ar arg" with "Ar arg arg" and stop the spread;Jason McIntyre
2020-03-11Allow alpha boot(8) to read from an ffs2 filesystem and adapt itsOtto Moerbeek
custom installboot to deal with ffs2. While there, fix the partition read code to deal with offsets > 2G; ok deraadt@
2019-12-01Remove unused test program.Visa Hankala
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-08-03In the bootblocks, after discovering and opening /bsd.upgrade, fchmod -xTheo de Raadt
so the file cannot be re-executed upon the next boot. This provides a stronger one-shot-upgrade model than the upgrade script's rm /bsd.upgrade. Now various forms of upgrade failure will reboot into /bsd, which is probably more recoverable. Performing fchmod -x depends on (1) use of MI boot.c (not alpha/macppc/sparc64/sgi/octeon) and (2) "can write blocks" functionality in the IO layer. Most architectures have this support now. Two diagnostics "fchmod a-x %s: failed" and "/bsd.upgrade is not u+x" will remain in the tree while refinements happen for some of the laggard architectures. based upon a discussion florian tested in snapshots for more than a week without any complaints
2019-04-10change marks[] array to uint64_t, so the code can track full 64-bitTheo de Raadt
details from the ELF header instead of faking it. Proposal from mlarkin, tested on most architectures already
2019-02-24Remove -S from install commandskn
As of usr.bin/xinstall/install.c revision 1.68, -S is a no-op and install(1) will always create files safely, thus clean the option usage from the tree. Diff from Lauri Tirkkonen <lotheac at iki dot fi>, thanks.
2017-09-08If you use sys/param.h, you don't need sys/types.hTheo de Raadt
2017-07-25change -Os to -Oz all around the treeRobert Nagy
clang optimizes better for size with -Oz so use that as a default to avoid overflowing the ramdisk floppies. gcc now accepts -Oz as an alias for -Os. ok kettenis@
2017-06-12destroy lint remnants.Marc Espie
okay millert@ deraadt@
2016-07-30Prep for relro: make sure it's off for any non-PIE stand/ programPhilip Guenther
ok millert@ kettenis@
2015-10-22Build boot blocks with -msmall-data -msmall-text.Miod Vallat
2015-10-01Remove more blinding trailing whitespace.Kenneth R Westerback
2015-07-17Proper prototypes and return values.Miod Vallat
2014-12-13Create a MOP version of the network boot loader; verified to boot on DEC 3000.Miod Vallat
2014-08-21Kill the remaining <netinet/in_systm.h> inclusion!Martin Pieuchot
2014-07-16zap trailing newlines; "go for it" deraadtOkan Demirmen
2014-07-13Stop using old n_long and n_short types.Martin Pieuchot
2014-07-12revert a few stragglers hiding outTed Unangst
2014-07-12revert bogus free changes in not kernel files. got a little trigger happy.Ted Unangst
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2014-04-13Clean up last bits of TCP_WRAPPERS and ELF_TOOLCHAIN.Brad Smith
ok miod@
2014-02-19Don't try to close(-1) if EPERM.Miod Vallat
2014-02-19/etc/random.seed support.Miod Vallat
2013-12-28Try to load entropy data from disk:/etc/random.seed, and additionallyTheo de Raadt
use a MD-supplied random function. Then, insert this into the ELF openbsd.randomdata of the kernel, so that it has entropy right from the start. Some help from jsing for the softraid aspects. Also tested by phessler
2013-12-22Set the primary CPU's PAL revision to the OSF/1 PAL revision after switchingMiod Vallat
to it, per the Green Book; from NetBSD. It turns out this is necessary on some (if not all) systems to properly spin up secondary processors. Bump version.
2013-11-12Use DL_[GET|SET]POFFSET() and DL_[GET|SET]PSIZE() to get and setKenneth R Westerback
partition offsets and sizes.
2013-10-15this does not need sys/exec_ecoff.hTheo de Raadt
(bit suprising)
2013-06-13use right source files from libkernTheo de Raadt
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
test period; i think 3 years ago the last bugs fell out. ok otto beck others