389e4c3a2a
and instead add platform, firmware and EFI stubs to the loader. The net effect of this change is that besides a special console and disk driver, the kernel has no knowledge of the simulator. This has the following advantages: o Simulator support is much harder to break, o It's easier to make use of more feature complete simulators. This would only need a change in the simulator specific loader, o Running SMP kernels within the simulator. Note that ski at this time does not simulate IPIs, so there's no way to start APs. The platform, firmware and EFI stubs describe the following hardware: o 4 CPU Itanium, o 128 MB RAM within the 4GB address space, o 64 MB RAM above the 4GB address space. NOTE: The stubs in the skiloader describe a machine that should in parts be defined by the simulator. Things like processor interrupt block and AP wakeup vector cannot be choosen at random because they require interpretation by the simulator. Currently the simulator is ignorant of this. This change introduces an unofficial SSC call SSC_SAL_SET_VECTORS which is ignored by the simulator. Tested with: ski (version 0.943 for linux)
37 lines
887 B
Makefile
37 lines
887 B
Makefile
# $FreeBSD$
|
|
|
|
LIB= ski
|
|
INTERNALLIB= true
|
|
|
|
SRCS= skiconsole.c time.c copy.c devicename.c module.c exit.c
|
|
SRCS+= delay.c skifs.c elf_freebsd.c bootinfo.c ssc.c
|
|
SRCS+= acpi_stub.c efi_stub.c pal_stub.s sal_stub.c
|
|
|
|
CFLAGS+= -ffreestanding -fpic -g
|
|
CFLAGS+= -I${.CURDIR}/../include
|
|
CFLAGS+= -I${.CURDIR}/../include/${MACHINE_ARCH}
|
|
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
|
|
CFLAGS+= -I${.CURDIR}/../../efi/include
|
|
CFLAGS+= -I${.CURDIR}/../../efi/include/${MACHINE_ARCH}
|
|
|
|
# Pick up the bootstrap header for some interface items
|
|
CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
|
CFLAGS+= -msoft-float
|
|
.endif
|
|
|
|
.ifdef(BOOT_DISK_DEBUG)
|
|
# Make the disk code more talkative
|
|
CFLAGS+= -DDISK_DEBUG
|
|
.endif
|
|
|
|
machine:
|
|
ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
|
|
|
|
CLEANFILES+= machine
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
beforedepend ${OBJS}: machine
|