Peter Wemm
c21ab46789
We must not let install(1) strip loader.efi when installing it, or the
...
resulting binary will be damaged and no longer work.
2002-04-07 04:27:50 +00:00
Peter Wemm
1e7e1ea54d
Set BINDIR
2002-04-07 04:26:42 +00:00
Peter Wemm
f3693129ce
Add loader bootforth infrastructure and install it.
2002-04-07 04:25:45 +00:00
Peter Wemm
01c0b884af
Make it a bit closer to the EFI build and tie up some loose ends.
2002-04-06 04:33:53 +00:00
Peter Wemm
e91ab65ef6
Try and tidy up some very loose ends with paths to various libraries etc.
2002-04-06 04:29:36 +00:00
Peter Wemm
402e50591a
Do not add the ficl/alpha subdir to the ia64 include path. Try ficl/ia64
...
instead.
2002-04-06 04:16:58 +00:00
Peter Wemm
5459842c5e
Do not assume that ${OBJCOPY} variable exists. It was hidden by the
...
fact that the 'ia64-make' wrapper explicitly set it.
2002-04-06 04:11:46 +00:00
Peter Wemm
a6d81d83a2
Fix self hosted loader building. When you use a self configured gcc, it
...
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.
2002-04-06 03:39:22 +00:00
Peter Wemm
65a0653eb7
Use a relative path to libstand.. /usr/src/lib/libstand may not exist
...
or may have the wrong header files.
2002-04-04 06:04:38 +00:00
Marcel Moolenaar
16ed9fd6bb
Only install the help file if we can find it. Use ${BASE}.help
...
in both the condition and for the install. We expect to find
the help file in ${.OBJDIR}.
2002-03-31 20:48:13 +00:00
Marcel Moolenaar
cd2c8e3ef6
Pass the address of the bootinfo block to the kernel in register
...
r8. Keep it at the hardwired address for now. Bump the version.
2002-03-30 23:52:34 +00:00
Marcel Moolenaar
c459265de7
Pass the physical address of the bootinfo block to the kernel in
...
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.
2002-03-30 23:00:05 +00:00
Marcel Moolenaar
a918e110c4
Add a quick and dirty way to determine where we're loaded from. We
...
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.
2002-03-30 07:32:08 +00:00
Marcel Moolenaar
4e357dbc58
The EFI loader has been improved a lot since it was first added.
...
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.
2002-03-30 04:54:54 +00:00
Marcel Moolenaar
ede9f03a1a
Fix the beforeinstall target. We install ${PROG}.help if loader.help
...
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 :-)
2002-03-29 22:53:56 +00:00
Marcel Moolenaar
127d4e90b0
o Don't include sys/cdefs.h
2002-03-28 07:07:45 +00:00
Marcel Moolenaar
95c0f344ee
o Add -L${DESTDIR}${LIBDIR} on the link line for -lstand.
...
o Add -j .dynstr to objcopy. This makes .efi binaries work
when built with a 3.x based toolchain.
2002-03-28 06:58:46 +00:00
Marcel Moolenaar
b0d9287123
Duplicate the logic used elsewhere to define LIBSTAND.
2002-03-28 06:52:10 +00:00
Peter Wemm
1d7914a5bd
Add -ffreestanding to avoid printf/puts/putchar conversions
2002-03-19 10:51:57 +00:00
Peter Wemm
436122c232
Boot from efifs first.
2002-03-19 10:50:41 +00:00
Peter Wemm
24ffe931b9
Lookup the EFI_FPSWA driver and pass the interface pointer through to the
...
kernel before we call ExitBootServices(). I've typed the definitions
in efifpswa.h from the Intel FPSWA manual (urk).
2001-11-19 07:09:47 +00:00
Peter Wemm
de76c8189e
Remove bootinfo.bi_kernel. It isn't used by the kernel. struct bootinfo
...
should go away on ia64, we should be loader metadata based since that is
the only way we can boot (loader, skiload).
2001-11-19 07:05:10 +00:00
Peter Wemm
a812f645bc
Fix a dependency violation, same as in libefi/elf_freebsd.c a while back.
2001-11-19 06:59:53 +00:00
Marcel Moolenaar
997313be99
Set RB_MULTIPLE (multiple console support) if the kernel is booted
...
with the -D flag.
2001-10-29 01:11:40 +00:00
Doug Rabson
4abfff1e2e
Call ExitBootServices and disable interrupts before we start hacking
...
the VM registers. This ought to make things slightly more reliable here.
2001-10-25 08:53:39 +00:00
Doug Rabson
7d5af294dc
Add the two sections used for PLT entries to the text and sdata sections
...
respectively. This makes IPLTLSB relocations work properly (these are
generated for weak symbols, particularly for _longjmp).
2001-10-25 08:50:14 +00:00
Doug Rabson
88f5f7ac50
Try to get the self-relocator to work with IPLTLSB relocations. Doesn't
...
work right though - I can't figure out why.
2001-10-24 20:14:49 +00:00
Marcel Moolenaar
8daca20f62
s/alpha/${MACHINE_ARCH}/g
2001-10-08 01:41:45 +00:00
Peter Wemm
4d7552180d
Make this 'make obj' safe
2001-09-26 00:13:08 +00:00
Doug Rabson
5f802bfc9f
Calculate the valid flag for ITRs and DTRs correctly. Also fix a couple
...
of minor problems and remove some debugging code.
2001-09-25 19:44:19 +00:00
Doug Rabson
9164a3125a
Add commands to dump the itrs and dtrs.
2001-09-24 19:39:34 +00:00
Doug Rabson
bc14d41c7e
Return the mapkey which EFI gave us when we read the memory map - we need
...
it to call ExitBootServices.
2001-09-24 19:37:44 +00:00
Doug Rabson
6544e18249
Tidy up a little - don't try to print anything or enable interrupts after
...
we start changing translation registers. Also, call ExitBootServices
before we jump into the kernel.
2001-09-24 19:36:45 +00:00
Doug Rabson
0f34719cf5
Add commands to dump the configuration tables and the SAL System Table.
2001-09-23 10:28:01 +00:00
Doug Rabson
e565888bc5
Add EFI network support.
2001-09-22 19:12:30 +00:00
Doug Rabson
1271403685
* Flesh out elf_exec and bootinfo.
...
* Add EFI network support.
2001-09-22 19:10:56 +00:00
Doug Rabson
68176c8544
Add definition of SSC_GET_RTC.
2001-09-20 08:22:56 +00:00
Doug Rabson
447a0851af
Implement time().
2001-09-19 12:12:12 +00:00
Doug Rabson
c5620b0763
Add a fake memory descriptor for the I/O port space.
2001-09-15 18:29:42 +00:00
Doug Rabson
8b43a51e12
Fill in the bootinfo's memory map.
2001-09-15 09:53:56 +00:00
Doug Rabson
fb63a84609
Remove dead code.
2001-09-15 08:25:16 +00:00
Doug Rabson
28d7d2f0a0
Plug in ELF backend.
2001-09-14 08:28:17 +00:00
Doug Rabson
327b34100f
Add ELF backend to the build.
2001-09-14 08:27:49 +00:00
Doug Rabson
f19fa0b627
Make this do the right thing (mostly). We should still reserve the pages
...
that the kernel loads into using the EFI AllocatePages call.
2001-09-14 08:26:00 +00:00
Doug Rabson
f0f40e4c2a
Update code which creates bootinfo.
2001-09-13 12:49:02 +00:00
Doug Rabson
908e8cb5be
A command file for SKI which runs the loader up to the first instruction
...
of the loaded kernel.
2001-09-12 15:08:49 +00:00
Doug Rabson
3a19b480c8
Add a version of the loader which runs under SKI, the HP ia64 simulator.
...
This loader is quite functional and can load and run kernels. The kernels
don't quite work right after loading but that should be easily fixable.
2001-09-12 08:34:27 +00:00
Doug Rabson
9d2535d919
Add missing entry to memory type name table and adjust field widths.
2001-09-08 12:32:12 +00:00
Doug Rabson
3146b2d65c
Add a command 'memmap' to print out the EFI memory map.
2001-09-08 12:21:37 +00:00
Doug Rabson
96bf6ac71e
Hook up the native EFI filesystem reader.
2001-09-07 08:52:53 +00:00