summaryrefslogtreecommitdiffstats
path: root/sys/boot/alpha
Commit message (Collapse)AuthorAgeFilesLines
* Include "bootstrap.h" to get a definition for bcache_devdata.msmith1998-11-031-1/+2
| | | | Submitted by: jkh
* Implement a simple LRU block cache. By default this is initialised to 16k,msmith1998-11-022-7/+19
| | | | | | | | | | | | | | and will bypass transfers for more than 8k. Blocks are invalidated after 2 seconds, so removable media should not confuse the cache. The 8k threshold is a compromise; all UFS transfers performed by libstand are 8k or less, so large file reads thrash the cache. However many filesystem metadata operations are also performed using 8k blocks, so using a lower threshold gives poor performance. Those of you with an eye for cache algorithms are welcome to tell me how badly this one sucks; you can start with the 'bcachestats' command which will print the contents of the cache and access statistics.
* * Extend the memory available for the heap from 256k to 512k.dfr1998-10-317-18/+84
| | | | | | | | | * Embed the stack into the bss section for loader and netboot. This is required for netboot since otherwise the stack would be inside our heap. * Install loader and netboot in /boot by default. * Fix getbootfile so that it searches for a ',' instead of a ';' when terminating the filename.
* Reserve some space for the stack in the region we recover from the initialmsmith1998-10-241-2/+3
| | | | | bootloader. Submitted by: dfr
* Hex constants should only have one '0x' prefix.msmith1998-10-201-1/+1
|
* Reclaim the 48k used by the first bootstrap stage by adding it to the mallocdfr1998-10-194-13/+23
| | | | pool.
* Rename boot2 to loader.dfr1998-10-182-3/+3
|
* Turn of disk debugging by default (suppress annoying "partition marked asmsmith1998-10-161-2/+2
| | | | unused" diagnostic on floppies).
* Fix the bootinfo so that the right values actual make it into the kernel.dfr1998-10-152-10/+11
|
* Get the last used address via a more conservative method, don't dependpeter1998-10-151-4/+6
| | | | on the module chain being in increasing address order.
* Link fdboot to boot1 as well.peter1998-10-141-0/+1
|
* Initial attempt to update the Alpha loader and kernel to use the machinepeter1998-10-144-187/+224
| | | | | | | | | | | | | | | | | | | | independent elf loader and have access to kld modules. Jordan and I were not sure how to create boot floppies, and the things we tried just made SRM laugh in our faces - but it was upset at boot1 which was not touched by these changes. Essentially this has been untested. :-( What this does is to steal the last three slots from the nine spare longs in the bootinfo_v1 struct to pass the module base pointer through. The startup code now to set up and fills in the module and environment structures, hopefully close enough to the i386 layout to be able to use the same kernel code. We now pass though the updated end of the kernel space used, rather than _end. (like the i386). If this does not work, it needs to be beaten into shape pronto. Otherwise it should be backed out before 3.0. Pre-approved in principle by: dfr
* add <sys/linker.h>dima1998-10-111-1/+2
|
* VERBOSE_LS is obsoletemsmith1998-10-071-2/+0
|
* * Add old UFS compatibility code to alpha/boot1.dfr1998-09-2610-29/+66
| | | | | | * Fix a raft of warnings, printf and otherwise. * Allocate the correct amount in mod_searchmodule to prevent an overflow. * Fix the makefiles so they work outside my home directory (oops).
* Make the alpha bootstrap build again, fix some warning and change sdboot to ↵dfr1998-09-204-5/+7
| | | | daboot.
* Initial integration of the i386 bootloader and BTX.msmith1998-09-171-313/+0
| | | | | | | | | | | - Discard large amounts of BIOS-related code in favour of the more compact BTX vm86 interface. - Build the loader module as ELF, although the resulting object is a.out, make gensetdefs 32/64-bit sensitive and use a single copy of it. - Throw away installboot, as it's no longer required. - Use direct bcopy operations in the i386_copy module, as BTX maps the first 16M of memory. Check operations against the detected size of actual memory.
* Resynch with working sources before BTX integration.msmith1998-09-141-4/+3
| | | | | | | | | | | - Use format-independant module allocator. - Conditionalise ISA PnP support. - Simplify PnP enumerator interface. - Improve module/object searching. - Add missing depend/install targets in BTX makefiles. - Pass the kernel environment and module data in extended bootinfo fields. - Add a pointer to the end of the kernel + modules in bootinfo. - Fix parsing of old-style kernel arguments.
* Bootstrap updates.msmith1998-09-032-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move some startup code from MD to MI sections - Add a 'copyout' and some copyout-related functions. These will be obsoleted when BTX is available for the 386 and the kernel load area becomes directly addressable. - Add the ability load an arbitrary file as a module, associating and arbitrary type string with it. This can be used eg. for loading splash-screen images etc. - Add KLD module dependancy infrastructure. We know how to look for dependancies inside KLD modules, how to resolve these dependancies and what to do if things go wrong. Only works for a.out at the moment, due to lack of an MI ELF loader. Attach KLD module information to loaded modules as metadata, but don't pass it to the kernel (it can find it itself). - Load a.out KLD modules on a page boundary. Only pad the a.out BSS for the kernel, as it may want to throw symbols away. (We might want to do this for KLD modules too.) - Allow commands to be hidden from the '?' display, to avoid cluttering it with things like 'echo'. Add 'echo'. - Bring the 'prompt' command into line with the parser syntax. - Fix the verbose 'ls'; it was using an uninitialised stack variable. - Add a '-v' flag to 'lsmod' to have it display module metadata as well (not terribly useful for the average user) - Support a 'module searchpath' for required modules. - The bootstrap file on i386 is now called 'loader' to permit the /boot directory to use that name. - Discard the old i386 pread() function, as it's replaced by arch_readin()
* Bootloader update.msmith1998-08-3114-2268/+92
| | | | | | | | | | | | - Implement a new copyin/readin interface for loading modules. This allows the module loaders to become MI, reducing code duplication. - Simplify the search for an image activator for the loaded kernel. - Use the common module management code for all module metadata. - Add an 'unload' command that throws everything away. - Move the a.out module loader to MI code, add support for a.out kld modules. Submitted by: Alpha changes fixed by Doug Rabson <dfr@freebsd.org>
* Minor tweaks to track a couple of i386 changes and to make it compile.dfr1998-08-226-13/+31
|
* This is the new unified bootstrap, sometimes known previously as themsmith1998-08-2142-0/+6117
'three-stage' bootstrap. There are a number of caveats with the code in its current state: - The i386 bootstrap only supports booting from a floppy. - The kernel and kld do not yet know how to deal with the extended information and module summary passed in. - PnP-based autodetection and demand loading of modules is not implemented. - i386 ELF kernel loading is not ready yet. - The i386 bootstrap is loaded via an ugly blockmap. On the alpha, both net- and disk-booting (SRM console machines only) is supported. No blockmaps are used by this code. Obtained from: Parts from the NetBSD/i386 standalone bootstrap.
OpenPOWER on IntegriCloud