aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/alpha/libalpha
Commit message (Collapse)AuthorAgeFilesLines
* MFC: rev 1.7 (make the stack 12K, rename 'stack' to 'stackbase')David E. O'Brien2001-03-041-4/+4
| | | | Notes: svn path=/stable/4/; revision=73418
* MFC: rev 1.11 (move init of booted_kernel to bootinfo.c)David E. O'Brien2001-03-041-4/+2
| | | | Notes: svn path=/stable/4/; revision=73417
* MFC: rev 1.11 (init booted_kernel from environment kernelname)David E. O'Brien2001-03-041-1/+7
| | | | Notes: svn path=/stable/4/; revision=73416
* MFC: Cleanup warnings.Paul Saab2000-12-282-11/+11
| | | | Notes: svn path=/stable/4/; revision=70429
* MFC: Move the call to extend_heap() from main to startAndrew Gallatin2000-10-281-0/+4
| | | | | | | Requested by: dfr Notes: svn path=/stable/4/; revision=67744
* MFC 1.8: Don't build start.S hereAndrew Gallatin2000-10-281-1/+1
| | | | | | | Requested by: dfr Notes: svn path=/stable/4/; revision=67743
* MFC: rev 1.3 (record the new PALcode revision in the pcs structure afterDavid E. O'Brien2000-07-071-0/+2
| | | | | | | changing to run OSF/1 PALcode) Notes: svn path=/stable/4/; revision=62724
* MFC: Delay calling the device cleanup routines until the absolutePaul Saab2000-07-061-0/+1
| | | | | | | last moment. Notes: svn path=/stable/4/; revision=62661
* MFC the loader bcache fixes.John Baldwin2000-03-161-2/+3
| | | | | | | Submitted by: dcs Notes: svn path=/stable/4/; revision=58148
* Remove BAD144 support, it has already been disabled for some time.Poul-Henning Kamp1999-12-081-1/+0
| | | | Notes: svn path=/head/; revision=54294
* Allow this driver to open disks with no labels (CDROMS don't).Doug Rabson1999-10-121-1/+2
| | | | Notes: svn path=/head/; revision=52168
* Change NetBSD/Alpha to FreeBSD/alpha.Doug Rabson1999-09-061-1/+1
| | | | Notes: svn path=/head/; revision=51029
* Slight reorganisation of the Alpha/SRM loader build:Mike Smith1999-09-032-2/+4
| | | | | | | | | | | | | - Make as much of the makefile for each of the three flavours (disk, CDROM, net) common. - Special-case the libalpha startup module on its use in boot1, not the other way around. - Build the loader out of a "loader" directory Reviewed by: mjacob, dfr Notes: svn path=/head/; revision=50859
* * Fix a stack of warnings.Doug Rabson1999-09-013-5/+12
| | | | | | | | | * Make it possible to type a filename to boot1 so that it is possible to recover from fatally broken versions of /boot/loader. * Make a start at a CD boot program (not yet functional). Notes: svn path=/head/; revision=50737
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2821-21/+21
| | | | Notes: svn path=/head/; revision=50477
* Append the flags from the "boot" command to those which came fromJohn Polstra1999-08-141-2/+23
| | | | | | | | | the SRM environment. This makes the traditional "boot [/kernel] -s" and similar things work on the Alpha. Since the flags are appended, they augment and/or override those from the SRM environment. Notes: svn path=/head/; revision=49782
* Walk around the end of all the silly guessing of device types and unitMike Smith1999-07-211-1/+19
| | | | | | | | | | numbers that we have been doing in the past, and read /etc/fstab off the proposed root filesystem to determine the actual device name and vfs type for the root filesystem. These are then exported to the kernel via the environment variable vfs.root.mountfrom. Notes: svn path=/head/; revision=48952
* Bring the 'new-bus' to the i386. This extensively changes the way thePeter Wemm1999-04-162-5/+6
| | | | | | | | | | | | | | | | | | | | | i386 platform boots, it is no longer ISA-centric, and is fully dynamic. Most old drivers compile and run without modification via 'compatability shims' to enable a smoother transition. eisa, isapnp and pccard* are not yet using the new resource manager. Once fully converted, all drivers will be loadable, including PCI and ISA. (Some other changes appear to have snuck in, including a port of Soren's ATA driver to the Alpha. Soren, back this out if you need to.) This is a checkpoint of work-in-progress, but is quite functional. The bulk of the work was done over the last few years by Doug Rabson and Garrett Wollman. Approved by: core Notes: svn path=/head/; revision=45720
* Revert bootinfo to 1.4 and use a different solution to NULL m_argsDaniel C. Sobral1999-03-201-5/+5
| | | | | | | instead (don't copy). Notes: svn path=/head/; revision=44914
* Don't choke in MOD_ARGS() if mp->m_args is NULL.Doug Rabson1999-03-181-4/+5
| | | | Notes: svn path=/head/; revision=44858
* Add MODINFO_ARGS, parameters passed to a module at load time.Daniel C. Sobral1999-03-081-1/+4
| | | | | | | VS: ---------------------------------------------------------------------- Notes: svn path=/head/; revision=44572
* Include "bootstrap.h" to get a definition for bcache_devdata.Mike Smith1998-11-031-1/+2
| | | | | | | Submitted by: jkh Notes: svn path=/head/; revision=40871
* Implement a simple LRU block cache. By default this is initialised to 16k,Mike Smith1998-11-021-6/+13
| | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=40834
* * Extend the memory available for the heap from 256k to 512k.Doug Rabson1998-10-312-8/+30
| | | | | | | | | | | | * 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. Notes: svn path=/head/; revision=40793
* Turn of disk debugging by default (suppress annoying "partition marked asMike Smith1998-10-161-2/+2
| | | | | | | unused" diagnostic on floppies). Notes: svn path=/head/; revision=40459
* Fix the bootinfo so that the right values actual make it into the kernel.Doug Rabson1998-10-152-10/+11
| | | | Notes: svn path=/head/; revision=40413
* Get the last used address via a more conservative method, don't dependPeter Wemm1998-10-151-4/+6
| | | | | | | on the module chain being in increasing address order. Notes: svn path=/head/; revision=40393
* Initial attempt to update the Alpha loader and kernel to use the machinePeter Wemm1998-10-143-186/+217
| | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=40341
* add <sys/linker.h>Dima Ruban1998-10-111-1/+2
| | | | Notes: svn path=/head/; revision=40195
* * Add old UFS compatibility code to alpha/boot1.Doug Rabson1998-09-263-10/+12
| | | | | | | | | * 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). Notes: svn path=/head/; revision=39673
* Make the alpha bootstrap build again, fix some warning and change sdboot to ↵Doug Rabson1998-09-202-4/+5
| | | | | | | daboot. Notes: svn path=/head/; revision=39530
* Resynch with working sources before BTX integration.Mike Smith1998-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. Notes: svn path=/head/; revision=39178
* Bootstrap updates.Mike Smith1998-09-031-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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() Notes: svn path=/head/; revision=38764
* Bootloader update.Mike Smith1998-08-315-75/+83
| | | | | | | | | | | | | | | - 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> Notes: svn path=/head/; revision=38712
* Minor tweaks to track a couple of i386 changes and to make it compile.Doug Rabson1998-08-222-3/+8
| | | | Notes: svn path=/head/; revision=38475
* This is the new unified bootstrap, sometimes known previously as theMike Smith1998-08-2119-0/+2498
'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. Notes: svn path=/cvs2svn/branches/MSMITH/; revision=38465