aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/ia64
Commit message (Collapse)AuthorAgeFilesLines
* Disable loader ufs support. It causes the loader to crash on the Itanium2Peter Wemm2002-07-201-1/+1
| | | | | | | | box that I have. We have no EFI disk drivers yet anyway (maybe that is the problem). Notes: svn path=/head/; revision=100388
* Fix printf format errorsPeter Wemm2002-07-201-2/+2
| | | | Notes: svn path=/head/; revision=100387
* Add boot_serial and boot_multicons variables to set RB_SERIAL andPeter Wemm2002-06-203-0/+6
| | | | | | | | RB_MULTIPLE since this seems to be the easiest way to add these flags for non-forth loaders etc. Notes: svn path=/head/; revision=98472
* o Remove namespace pollution from param.h:Marcel Moolenaar2002-05-196-0/+9
| | | | | | | | | | | | | | - Don't include ia64_cpu.h and cpu.h - Guard definitions by _NO_NAMESPACE_POLLUTION - Move definition of KERNBASE to vmparam.h o Move definitions of IA64_RR_{BASE|MASK} to vmparam.h o Move definitions of IA64_PHYS_TO_RR{6|7} to vmparam.h o While here, remove some left-over Alpha references. Notes: svn path=/head/; revision=96912
* Removed now unused INTERNALSTATICLIB.Ruslan Ermilov2002-05-131-3/+0
| | | | | | | | INTERNALLIB now implies NOPIC and NOPROFILE. Removed gratuitous NOMAN. Notes: svn path=/head/; revision=96513
* Back out last commit. I expect our bsd.*.mk gods to remove the need forDavid E. O'Brien2002-05-121-0/+3
| | | | | | | | 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-3/+0
| | | | | | | INTERNALLIB now. Notes: svn path=/head/; revision=96415
* -ffreestanding is the word.David E. O'Brien2002-05-104-1/+4
| | | | | | | | (also resort some CFLAGS such that the more "important" value are first so they are easier to see) Notes: svn path=/head/; revision=96342
* Improve self-relocation:Marcel Moolenaar2002-04-211-105/+135
| | | | | | | | | | | | | | | | | | | | | | o We don't expect the PLT relocations to follow the .rela section anymore. We still assume that PLT relocations are long formed, o Document register usage, o Improve ILP, o Fix the FPTR relocation by creating unique OPDs per function. Comparing functions is valid now, o The IPLT relocation naturally handles the addend. Deal with it. We ignore the addend for FPTR relocations for now. It's not at all clear what it means anyway. Fix ABI misinterpretation: o For Elf_Rela relocations, the addend is explicit and should not be loaded from the memory address we're relocating. Only do that for Elf_Rel relocations (ie the short form). o DIR64LSB is not the same as REL64LSB. DIR64LSB applies to a symbol (S+A), whereas REL64LSB applies to the base address (BD+A), Notes: svn path=/head/; revision=95190
* Allocate sufficient pages to hold the bootinfo block and stopMarcel Moolenaar2002-04-191-7/+10
| | | | | | | hardwiring the location. Notes: svn path=/head/; revision=95026
* We must not let install(1) strip loader.efi when installing it, or thePeter Wemm2002-04-071-0/+1
| | | | | | | resulting binary will be damaged and no longer work. Notes: svn path=/head/; revision=94024
* Set BINDIRPeter Wemm2002-04-073-0/+3
| | | | Notes: svn path=/head/; revision=94023
* Add loader bootforth infrastructure and install it.Peter Wemm2002-04-071-4/+20
| | | | Notes: svn path=/head/; revision=94022
* Make it a bit closer to the EFI build and tie up some loose ends.Peter Wemm2002-04-064-25/+12
| | | | Notes: svn path=/head/; revision=93926
* Try and tidy up some very loose ends with paths to various libraries etc.Peter Wemm2002-04-061-3/+15
| | | | Notes: svn path=/head/; revision=93925
* Do not add the ficl/alpha subdir to the ia64 include path. Try ficl/ia64Peter Wemm2002-04-062-2/+2
| | | | | | | instead. Notes: svn path=/head/; revision=93924
* Do not assume that ${OBJCOPY} variable exists. It was hidden by thePeter Wemm2002-04-061-0/+1
| | | | | | | fact that the 'ia64-make' wrapper explicitly set it. Notes: svn path=/head/; revision=93923
* Fix self hosted loader building. When you use a self configured gcc, itPeter Wemm2002-04-062-4/+4
| | | | | | | | | | | | | | | | detects and uses the gas section merge support. As a result, a whole bunch of new sections arrive, including .rodata.str1.8, which was not included in our custom ldscript.ia64. The result was a loader binary that EFI rejected. While here, collect the loader shell commands linker set and include it in the data area rather than having its own section. /boot/loader.efi was the last holdout for having a 100% self built ia64 system. Notes: svn path=/head/; revision=93921
* Use a relative path to libstand.. /usr/src/lib/libstand may not existPeter Wemm2002-04-041-1/+1
| | | | | | | or may have the wrong header files. Notes: svn path=/head/; revision=93753
* Only install the help file if we can find it. Use ${BASE}.helpMarcel Moolenaar2002-03-311-4/+1
| | | | | | | | in both the condition and for the install. We expect to find the help file in ${.OBJDIR}. Notes: svn path=/head/; revision=93485
* Pass the address of the bootinfo block to the kernel in registerMarcel Moolenaar2002-03-304-10/+10
| | | | | | | r8. Keep it at the hardwired address for now. Bump the version. Notes: svn path=/head/; revision=93459
* Pass the physical address of the bootinfo block to the kernel inMarcel Moolenaar2002-03-302-1/+3
| | | | | | | | | | | | register r8. We continue to write the bootinfo block at the same hardwired address, because the kernel still expects it there. It is expected that future kernels use register r8 to get to the bootinfo block and don't depend on the hardwired address anymore. Bump the loader version once again due to the interface change. Notes: svn path=/head/; revision=93454
* Add a quick and dirty way to determine where we're loaded from. WeMarcel Moolenaar2002-03-301-8/+28
| | | | | | | | | | | only care if it's network or not at this time. If we're loaded from the network, we set currdev (=loaddev) so that the kernel is loaded from the network as well. In all other cases we initialize to disk. This makes netbooting more convenient and can easily be enhanced to do more elaborate checking. Notes: svn path=/head/; revision=93411
* The EFI loader has been improved a lot since it was first added.Marcel Moolenaar2002-03-301-0/+2
| | | | | | | | | | Most significantly (from an interfacing point of view) is the support for the FPSWA pointer passing. Even though that was added 4 months ago, it's probably not a bad idea to bump the version number to reflect this. Notes: svn path=/head/; revision=93410
* Fix the beforeinstall target. We install ${PROG}.help if loader.helpMarcel Moolenaar2002-03-292-8/+2
| | | | | | | | | | | | exists, otherwise we install it anyway. I interpret this as a very high desire to install ${PROG}.help. Alas, ${PROG}.help doesn't exist at the moment and neither does loader.help, so in practice this just doesn't work, no matter how you interpret it. The compromise is to install ${PROG}.help IFF it exists. I realize we lost creativity with this commit, but style should have been preserved, AFAICT :-) Notes: svn path=/head/; revision=93400
* o Don't include sys/cdefs.hMarcel Moolenaar2002-03-281-1/+0
| | | | Notes: svn path=/head/; revision=93321
* o Add -L${DESTDIR}${LIBDIR} on the link line for -lstand.Marcel Moolenaar2002-03-281-4/+4
| | | | | | | | o Add -j .dynstr to objcopy. This makes .efi binaries work when built with a 3.x based toolchain. Notes: svn path=/head/; revision=93320
* Duplicate the logic used elsewhere to define LIBSTAND.Marcel Moolenaar2002-03-282-4/+22
| | | | Notes: svn path=/head/; revision=93319
* Add -ffreestanding to avoid printf/puts/putchar conversionsPeter Wemm2002-03-193-0/+3
| | | | Notes: svn path=/head/; revision=92658
* Boot from efifs first.Peter Wemm2002-03-191-1/+1
| | | | Notes: svn path=/head/; revision=92657
* Lookup the EFI_FPSWA driver and pass the interface pointer through to thePeter Wemm2001-11-191-0/+2
| | | | | | | | kernel before we call ExitBootServices(). I've typed the definitions in efifpswa.h from the Intel FPSWA manual (urk). Notes: svn path=/head/; revision=86588
* Remove bootinfo.bi_kernel. It isn't used by the kernel. struct bootinfoPeter Wemm2001-11-193-16/+0
| | | | | | | | should go away on ia64, we should be loader metadata based since that is the only way we can boot (loader, skiload). Notes: svn path=/head/; revision=86586
* Fix a dependency violation, same as in libefi/elf_freebsd.c a while back.Peter Wemm2001-11-192-0/+2
| | | | Notes: svn path=/head/; revision=86585
* Set RB_MULTIPLE (multiple console support) if the kernel is bootedMarcel Moolenaar2001-10-291-0/+3
| | | | | | | with the -D flag. Notes: svn path=/head/; revision=85652
* Call ExitBootServices and disable interrupts before we start hackingDoug Rabson2001-10-251-11/+12
| | | | | | | the VM registers. This ought to make things slightly more reliable here. Notes: svn path=/head/; revision=85476
* Add the two sections used for PLT entries to the text and sdata sectionsDoug Rabson2001-10-251-0/+2
| | | | | | | | respectively. This makes IPLTLSB relocations work properly (these are generated for weak symbols, particularly for _longjmp). Notes: svn path=/head/; revision=85475
* Try to get the self-relocator to work with IPLTLSB relocations. Doesn'tDoug Rabson2001-10-242-6/+40
| | | | | | | work right though - I can't figure out why. Notes: svn path=/head/; revision=85436
* s/alpha/${MACHINE_ARCH}/gMarcel Moolenaar2001-10-081-1/+1
| | | | Notes: svn path=/head/; revision=84644
* Make this 'make obj' safePeter Wemm2001-09-262-2/+10
| | | | Notes: svn path=/head/; revision=83948
* Calculate the valid flag for ITRs and DTRs correctly. Also fix a coupleDoug Rabson2001-09-251-8/+3
| | | | | | | of minor problems and remove some debugging code. Notes: svn path=/head/; revision=83939
* Add commands to dump the itrs and dtrs.Doug Rabson2001-09-241-0/+148
| | | | Notes: svn path=/head/; revision=83904
* Return the mapkey which EFI gave us when we read the memory map - we needDoug Rabson2001-09-241-1/+3
| | | | | | | it to call ExitBootServices. Notes: svn path=/head/; revision=83903
* Tidy up a little - don't try to print anything or enable interrupts afterDoug Rabson2001-09-241-51/+24
| | | | | | | | we start changing translation registers. Also, call ExitBootServices before we jump into the kernel. Notes: svn path=/head/; revision=83902
* Add commands to dump the configuration tables and the SAL System Table.Doug Rabson2001-09-231-4/+116
| | | | Notes: svn path=/head/; revision=83857
* Add EFI network support.Doug Rabson2001-09-223-3/+13
| | | | Notes: svn path=/head/; revision=83829
* * Flesh out elf_exec and bootinfo.Doug Rabson2001-09-222-38/+492
| | | | | | | * Add EFI network support. Notes: svn path=/head/; revision=83828
* Add definition of SSC_GET_RTC.Doug Rabson2001-09-202-0/+2
| | | | Notes: svn path=/head/; revision=83710
* Implement time().Doug Rabson2001-09-192-2/+226
| | | | Notes: svn path=/head/; revision=83666
* Add a fake memory descriptor for the I/O port space.Doug Rabson2001-09-152-2/+14
| | | | Notes: svn path=/head/; revision=83521
* Fill in the bootinfo's memory map.Doug Rabson2001-09-153-0/+38
| | | | Notes: svn path=/head/; revision=83502