| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
DL register is not set to drive number when detecting EDD for drive,
so detection may fail.
Signed-off-by: Andy Alex <andy at r-tt.com>
|
|\
| |
| |
| |
| |
| |
| | |
Resolved Conflicts:
core/init.c
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
| |
| |
| |
| |
| |
| | |
We can't truncate the memory size needed to 16 bits *before* we
convert it to kilobytes...
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
The lowmem check was backwards and would report error when there
wasn't any. This was missed because the Ctrl key check was *also*
backwards and so the check would only be done when Ctrl was held down.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
| |
| |
| | |
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
| |
| |
| | |
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This eliminates the forking and pushes the build under the efi32/ and
efi64/ object directories eliminating a build race and preventing the
build from breaking as gnu-efi takes a few seconds to complete.
Depends on gnu-efi commit 52d88dd
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| |
| |
| |
| |
| |
| | |
This allows gnu-efi to be built outside the source tree properly.
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| |
| |
| |
| |
| |
| | |
The other cleaning targets might still have issues...
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
| |
| |
| |
| |
| | |
We need to specify -m32/-m64 even when we are processing assembly.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
| |
| |
| |
| |
| |
| |
| | |
Disable the stack protector if on by default.
Copied from https://bugs.gentoo.org/show_bug.cgi?id=495146.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There is no need to have a relocation section that nothing points at.
The image is still seen as relocatable as long as the Characteristics of
the FileHeader do not say otherwise.
Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
PE headers code_sz and image_sz indicate more or less, the size of the
file and the size of the in-memory image. They are now given the right
value.
In the ELF format, only the program headers are reliable to determine
the actually needed part of the file and the in-memory size.
The .bss section should always be marked as NOLOAD for ld since its
content shouldn't be included into the binary file.
Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
OVMF and probably other UEFI implementation refuse a file with a
relocation entry inside the headers. And since the dummy relocation
wasn't used at all, better remove it.
Moreover, the field base_relocation_table wasn't initialized properly,
leading to unpredictable bugs.
Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In the generated PE file, the section header for the .text section used
to address more than the whole file. Starting at offset 0 (before the
end of the headers) is illegal and is rejected by OVMF. Giving a size
greater than the actual file size is also illegal and rejected.
Moreover, the body of the PE file have to be aligned to at least 512
bytes. Hence, .text need to be aligned as well.
Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The value of the field rva_and_sizes_nr is used by OVMF to check the
consistency of the PE file with respect to the field optional_hdr_sz. It
now have the right value.
Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Export the initial stack and PXE(NV) structure pointers properly, even
for users which need seg:offs. Use this in pxechn.c rather than the
already-removed INT 22h AX=000Ah call.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Gene Cumm <gene.cumm@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It could happen on 32 bits architecture that the memory size really allocated
could be less than required. On 64 bits, allocate_pages may be called
more times than needed.
This closes bug #39.
Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
Resolved Conflicts:
com32/include/byteswap.h
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| | |
| | |
| | |
| | | |
I noticed that the trailing 0-byte is not copied to the result of
iso_readdir(). The function iso_convert_name() does append a trailing 0.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Use the new get_le32() accessor in the SUSP/Rock Ridge code.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Thomas Schmitt <scdbackup@gmx.net>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
For future portability, add functions to access both littleendian and
bigendian numbers, and to perform unaligned memory references.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Attached is a patch which switches susp_rr.c from reading the
big-endian ISO 9660 and SUSP numbers to reading the little-endian
ones.
Tested within libisofs on my collection of ISO images.
[ hpa: more mastering programs are known which botch the bigendian
information than the littleendian information, so most systems only
read the littleendian info regardless of the native byte order. ]
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
After explaining the slightly wasteful usage of malloc()/memcpy()
with multi-block CE entries, i noticed that i did not install a
safety cap on the malloc size.
I could not challenge this in practice but only by gdb manipulation.
My most CE-happy test image has 3 occasions of multi-block CE.
All three only span over 2 blocks each.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add support for parsing SUSP and RRIP records, and support for Rock
Ridge filename extensions, thus avoiding the filename limitations
(length and character set) of plain iso9660. This will be a part of
using UTF-8 for filenames and console.
[ hpa: manually rebased to the elflink branch ]
|
| | |
| | |
| | |
| | |
| | |
| | | |
&>foo is a bashism, use >foo 2>&1 instead.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
|\ \ \
| | |/
| |/| |
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
There is no need to memset the buffer since the strncat will end the
string with a \0. The memset was also almost wrong as doing a sizeof()
on a char * could return 1 if buff was malloc'ed.
We had chance as all the current calls are done with static buffers.
Removing this memset call will make things clearer but also will prevent
compilation warnings like :
com32/gpllib/acpi/acpi.c:38:29: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the
destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
memset(buffer, 0, sizeof(buffer));
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The dynamically alloc'd string to protect from strtok modification
has not been free'd on start_auto_mode() function.
This patch insure the free is done properly.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
If a dependency is added to the newer rules, make will choose the easier
rules instead of the preferred rules.
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This should help hardware that doesn't return EFI_SUCCESS immediately.
Reported-by: Jason Matthews <jason.david.matthews@gmail.com>
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
udata.AcceptAnyPort caused the udata.StationPort to return as 0.
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We don't need to re-inform EFI what IPv4 address and subnet mask to use.
This change should help to re-use the exising routes.
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
core_udp_open() obtained a port allocation. Continue using it.
Author: Celelibi <celelibi@gmail.com>
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
core_udp_open() should obtain a UDP port allocation and save it for
core_udp_connect() and core_udp_sendto() to reuse.
Author: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Some functions are ignoring the const qualifier.
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | / / /
| | |/ / /
| |/| | | |
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Recommended-By: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Wrong prototype; use GCC unused
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
On some code, the intcall 0x15 was missing when playing with 0x8800
making code useless.
That's not a big deal since e820 or e801 shall be provided by host but
anyway, let's fix it ;)
|