release 3.16
https://sourceforge.net/projects/elilo/files/elilo/elilo-3.16/
This commit is contained in:
parent
82f7288853
commit
2b5c5002e1
21 changed files with 708 additions and 109 deletions
|
@ -23,10 +23,15 @@
|
|||
# to use this program.
|
||||
#
|
||||
|
||||
include ../Make.defaults
|
||||
include ../Make.rules
|
||||
SRCDIR = .
|
||||
|
||||
VPATH = $(SRCDIR)
|
||||
|
||||
include $(SRCDIR)/../Make.defaults
|
||||
include $(SRCDIR)/../Make.rules
|
||||
|
||||
TOPDIR=$(SRCDIR)/..
|
||||
|
||||
TOPDIR=$(CDIR)/..
|
||||
|
||||
FILES=system.o config.o bzimage.o plain_loader.o gzip_loader.o gzip.o
|
||||
#FILES=system.o config.o plain_loader.o
|
||||
|
@ -38,13 +43,13 @@ all: $(TARGET)
|
|||
system.o: rmswitch.h
|
||||
|
||||
rmswitch.h: bin_to_h.c rmswitch.S
|
||||
$(CC) -o bin_to_h bin_to_h.c
|
||||
$(AS) -o rmswitch.o rmswitch.S
|
||||
$(CC) -o bin_to_h $(SRCDIR)/bin_to_h.c
|
||||
$(AS) -o rmswitch.o $(SRCDIR)/rmswitch.S
|
||||
$(LD) -Ttext 0x0 -s --oformat binary -o rmswitch rmswitch.o
|
||||
./bin_to_h <rmswitch >rmswitch.h
|
||||
|
||||
$(TARGET): $(FILES)
|
||||
$(LD) -r -o $@ $(FILES)
|
||||
$(LD) $(LD3264) -r -o $@ $(FILES)
|
||||
|
||||
clean:
|
||||
$(RM) -f $(TARGET) $(FILES)
|
||||
|
|
|
@ -641,10 +641,8 @@ sysdeps_create_boot_params(
|
|||
*/
|
||||
if (param_start != NULL) {
|
||||
CopyMem(bp, param_start, 0x2000);
|
||||
free(param_start);
|
||||
param_start = NULL;
|
||||
param_size = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Save off our header revision information.
|
||||
*/
|
||||
|
@ -703,10 +701,8 @@ sysdeps_create_boot_params(
|
|||
DBG_PRT((L"initrd->start_addr="PTR_FMT" initrd->pgcnt=%d\n",
|
||||
initrd->start_addr, initrd->pgcnt));
|
||||
|
||||
/* These RAMdisk flags are not needed, just zero them. NOT!*/
|
||||
/* 'ramdisk_flags' (@0x1F8) is called 'ram_size' in the meantime, */
|
||||
/* see Documentation/x86/boot.txt. */
|
||||
|
||||
if (initrd->start_addr && initrd->pgcnt) {
|
||||
if ( (UINT64)initrd->start_addr > UINT32_MAX ) {
|
||||
ERR_PRT((L"Start of initrd out of reach (>4GB)."));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue