aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/alpha/libalpha
Commit message (Collapse)AuthorAgeFilesLines
* First pass at removing Alpha kernel support.John Baldwin2006-05-1121-2690/+0
| | | | Notes: svn path=/head/; revision=158458
* Fix getsecs(). It was not counting the seconds right. The immediateMarcel Moolenaar2005-06-041-19/+46
| | | | | | | | | | | | | and visible effect of the bug what that autoboot would boot a kernel after only a couple of seconds had passed instead of waiting the full 10 seconds it's supposed to wait by default. Add my copyright notice, since one was missing and I reimplemented the one and only function in this file. MFC after: 1 week Notes: svn path=/head/; revision=146976
* Fix delay(). The processor cycle counter is a 32-bit wrapping counter.Marcel Moolenaar2005-06-041-5/+8
| | | | | | | | | Hence, mask off the upper 32 bits and deal with wrap-arounds. MFC after: 1 week Notes: svn path=/head/; revision=146973
* Add a missing const to alpha_setcurrdev() to quiet a warning.John Baldwin2005-05-312-2/+2
| | | | Notes: svn path=/head/; revision=146844
* Change the type the buf arg to the strategy routines from void * to char *John Baldwin2005-05-311-4/+4
| | | | | | | to quiet some warnings. Notes: svn path=/head/; revision=146843
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-241-1/+1
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* Remove advertising clause from University of California Regent's license,Warner Losh2004-04-051-4/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core Notes: svn path=/head/; revision=127919
* Overhaul makefiles.Ruslan Ermilov2004-02-111-13/+1
| | | | Notes: svn path=/head/; revision=125719
* Convert to __FBSDID.David E. O'Brien2004-01-0413-27/+43
| | | | Notes: svn path=/head/; revision=124139
* Enable the i386 loader to load and run an amd64 kernel. If this putsPeter Wemm2003-05-011-3/+3
| | | | | | | | | | | | | | | | | | things over floppy size limits, I can exclude it for release builds or something like that. Most of the changes are to get the load_elf.c file into a seperate elf32_ or elf64_ namespace so that you can have two ELF loaders present at once. Note that for 64 bit kernels, it actually starts up the kernel already in 64 bit mode with paging enabled. This is really easy because we have a known minimum feature set. Of note is that for amd64, we have to pass in the bios int 15 0xe821 memory map because once in long mode, you absolutely cannot make VM86 calls. amd64 does not use 'struct bootinfo' at all. It is a pure loader metadata startup, just like sparc64 and powerpc. Much of the infrastructure to support this was adapted from sparc64. Notes: svn path=/head/; revision=114379
* Libdisk does not need to include <sys/diskslice.h> any more.Poul-Henning Kamp2003-04-042-2/+0
| | | | | | | | | | | | Move the remaining bits of <sys/diskslice.h> to <i386/include/bootinfo.h> Move i386/pc98 specific bits from <sys/reboot.h> to <i386/include/bootinfo.h> as well. Adjust includes in sys/boot accordingly. Notes: svn path=/head/; revision=113083
* Remove a couple of __P() stragglers.Peter Wemm2002-06-291-6/+6
| | | | Notes: svn path=/head/; revision=99013
* Major cleanup of bsd.lib.mk.Ruslan Ermilov2002-05-131-4/+0
| | | | | | | | | | Get rid of the INTERNALSTATICLIB knob and just use plain INTERNALLIB. INTERNALLIB now means to build static library only and don't install anything. Added a NOINSTALLLIB knob for libpam/modules. To not build any library at all, just do not set LIB. Notes: svn path=/head/; revision=96512
* Back out last commit. I expect our bsd.*.mk gods to remove the need forDavid E. O'Brien2002-05-121-0/+2
| | | | | | | | defining so many extra things in addition to INTERNALLIB. We don't like repetitive C code and we shouldn't for make code either. Notes: svn path=/head/; revision=96455
* NOPIC, NOPROFILE, NOMAN, and INTERNALSTATICLIB are redundant when usingDavid E. O'Brien2002-05-111-2/+0
| | | | | | | INTERNALLIB now. Notes: svn path=/head/; revision=96415
* -ffreestanding is the word.David E. O'Brien2002-05-101-5/+6
| | | | | | | | (also resort some CFLAGS such that the more "important" value are first so they are easier to see) Notes: svn path=/head/; revision=96342
* Don't clobber the default for CFLAGS.Bruce Evans2001-08-311-1/+1
| | | | | | | Reviewed by: dfr Notes: svn path=/head/; revision=82645
* One needs to introduce things with a `.file' directive before trying toDavid E. O'Brien2001-05-281-1/+2
| | | | | | | | do a .loc on it. BTW, the .loc needs to be in a .text section. gas 2.11.0 catches these oversights where previous versions did not. Notes: svn path=/head/; revision=77327
* Don't call prom_open() multiple times. This confuses some versions of SRMDoug Rabson2001-04-051-8/+22
| | | | | | | | | | and makes it impossible to boot from floppy and CD on some AlphaServer platforms. Detective work by: Michael Richards <michael@fastmail.ca> Notes: svn path=/head/; revision=75230
* Fix whitespace.David E. O'Brien2001-03-041-2/+2
| | | | Notes: svn path=/head/; revision=73403
* Preceed/preceeding are not english words. Use precede or preceding.Jeroen Ruigrok van der Werven2001-02-181-1/+1
| | | | Notes: svn path=/head/; revision=72640
* init booted_kernel from environment kernelname (if there)Matt Jacob2000-11-141-0/+6
| | | | Notes: svn path=/head/; revision=68713
* move init of booted_kernel to bootinfo.cMatt Jacob2000-11-141-4/+2
| | | | Notes: svn path=/head/; revision=68712
* Move the call to extend_heap() from main to start so that if our BSSDoug Rabson2000-10-251-0/+4
| | | | | | | | | expands beyond the limit we will extend the address space before trying to zero the BSS. This should give us plenty of headroom for modest expansion of the loader. Notes: svn path=/head/; revision=67593
* Don't build start.S as part of libalpha.a - its built specially.Doug Rabson2000-10-251-1/+1
| | | | Notes: svn path=/head/; revision=67592
* Make the stack 12K- we seem to need a bit more.Matt Jacob2000-09-181-3/+3
| | | | | | | | Rename 'stack' to 'stackbase' as this variable more correctly denotes what it is. Notes: svn path=/head/; revision=66025
* Fix the more obvious warnings to deal with my earlier warning cleanups.John Baldwin2000-08-032-11/+11
| | | | Notes: svn path=/head/; revision=64188
* Delay calling the device cleanup routines until the absolute lastPaul Saab2000-06-141-0/+1
| | | | | | | | | moment. We were cleaning up after PXE too early and the module dependancy code would not be able to load any files if it needed too. Notes: svn path=/head/; revision=61659
* Record the new PALcode revision in the pcs structure after changing toDoug Rabson2000-06-031-0/+2
| | | | | | | | | run OSF/1 PALcode. Obtained from: NetBSD Notes: svn path=/head/; revision=61205
* Update loader logic to distinguish modules vs. files.Boris Popov2000-05-012-29/+29
| | | | | | | | | | Add support for module metadata. The old way of dependancy handling will be supported for a while. Reviewed by: peter Notes: svn path=/head/; revision=59854
* Pass unit number to bcache_strategy(), so that the cache can beDaniel C. Sobral2000-03-151-2/+3
| | | | | | | | | | | | | flushed if the unit changes. Compute the absolute offset before bcache_strategy() instead of after. The actual fix is sligthly different for the one in the PR. PR: 17098 Submitted by: John Hood <jhood@sitaranetworks.com> Notes: svn path=/head/; revision=58079
* 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