1d719e77 | 04-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: EFI_UNICODE_COLLATION_PROTOCOL
Provide a unit test for the EFI_UNICODE_COLLATION_PROTOCOL.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf
efi_selftest: EFI_UNICODE_COLLATION_PROTOCOL
Provide a unit test for the EFI_UNICODE_COLLATION_PROTOCOL.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
0bc4b0da | 04-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: EFI_UNICODE_COLLATION_PROTOCOL
The patch implements the EFI_UNICODE_COLLATION_PROTOCOL.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse
efi_loader: EFI_UNICODE_COLLATION_PROTOCOL
The patch implements the EFI_UNICODE_COLLATION_PROTOCOL.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
b5130a81 | 04-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
lib: charset: upper/lower case conversion
Provide functions for upper and lower case conversion.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
40e3e757 | 04-Sep-2018 |
Alexander Graf <agraf@suse.de> |
efi_loader: Add console handle references to in/out/err
We register the console in/out protocol on the loaded image handle, but never tell anyone about it in the systab.
Because of this Shell.efi c
efi_loader: Add console handle references to in/out/err
We register the console in/out protocol on the loaded image handle, but never tell anyone about it in the systab.
Because of this Shell.efi can not find the input protocol. So let's add a proper reference.
Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
show more ...
|
0414359a | 02-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: use correct documentation style
We have moved generating html documentation with Sphinx.
%s/Return Value/Return/g
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by:
efi_loader: use correct documentation style
We have moved generating html documentation with Sphinx.
%s/Return Value/Return/g
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
cc0bfc01 | 03-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: description efi_update_capsule()
Correct the description of efi_update_capsule().
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
250b3254 | 03-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: fix typos in efi_runtime.c
Fix multiple typos
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
b72aaa87 | 03-Sep-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: fix typos in efi_boottime.c
Fix numerous typos.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
14deb5e6 | 30-Aug-2018 |
Stephen Warren <swarren@nvidia.com> |
Revert "Revert "efi_loader: efi_allocate_pages is too restrictive""
This reverts commit ccfc78b820e5e431c5bd73b072e7536a972e1710.
Now that the underlying issue is fixed, we can revert the revert an
Revert "Revert "efi_loader: efi_allocate_pages is too restrictive""
This reverts commit ccfc78b820e5e431c5bd73b072e7536a972e1710.
Now that the underlying issue is fixed, we can revert the revert and hence restore the original EFI code.
Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
75cb1cd2 | 31-Aug-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
lib: charset: remove obsolete functions
Remove functions: - utf8_to_utf16() - utf16_strcpy() - utf16_strdup()
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <
lib: charset: remove obsolete functions
Remove functions: - utf8_to_utf16() - utf16_strcpy() - utf16_strdup()
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
ba7bd5c2 | 31-Aug-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: don't use unlimited stack as buffer
The length of a string printed to the console by the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is not limited by the UEFI spec. Hence should not allocate a buff
efi_loader: don't use unlimited stack as buffer
The length of a string printed to the console by the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL is not limited by the UEFI spec. Hence should not allocate a buffer for it on the stack.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
dcdb64f7 | 31-Aug-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: remove limit on variable length
The EFI spec does not provide a length limit for variables.
Reviewed-by: Alexander Graf <agraf@suse.de> Signed-off-by: Heinrich Schuchardt <xypron.glpk@g
efi_loader: remove limit on variable length
The EFI spec does not provide a length limit for variables.
Reviewed-by: Alexander Graf <agraf@suse.de> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
31bd711c | 31-Aug-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
lib: vsprintf: correct printing of Unicode strings
The width and precision of the printf() function refer to the number of characters not to the number of bytes printed.
Signed-off-by: Heinrich Sch
lib: vsprintf: correct printing of Unicode strings
The width and precision of the printf() function refer to the number of characters not to the number of bytes printed.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
f11a164b | 31-Aug-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
test: unit tests for Unicode functions
Provide unit tests for Unicode functions.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
d8c28232 | 31-Aug-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
lib: charset: utility functions for Unicode
utf8_get() - get next UTF-8 code point from buffer utf8_put() - write UTF-8 code point to buffer utf8_utf16_strnlen() - length of a utf-8 string after con
lib: charset: utility functions for Unicode
utf8_get() - get next UTF-8 code point from buffer utf8_put() - write UTF-8 code point to buffer utf8_utf16_strnlen() - length of a utf-8 string after conversion to utf-16 utf8_utf16_strncpy() - copy a utf-8 string to utf-16 utf16_get() - get next UTF-16 code point from buffer utf16_put() - write UTF-16 code point to buffer utf16_strnlen() - number of codes points in a utf-16 string utf16_utf8_strnlen() - length of a utf-16 string after conversion to utf-8 utf16_utf8_strncpy() - copy a utf-16 string to utf-8
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
1dde0d57 | 31-Aug-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: rename utf16_strlen, utf16_strnlen
The function names utf16_strlen() and utf16_strnlen() are misnomers. The functions do not count utf-16 characters but non-zero words. So let's rename t
efi_loader: rename utf16_strlen, utf16_strnlen
The function names utf16_strlen() and utf16_strnlen() are misnomers. The functions do not count utf-16 characters but non-zero words. So let's rename them to u16_strlen and u16_strnlen().
In utf16_dup() avoid assignment in if clause.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
fbb3ea80 | 31-Aug-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
lib: build charset.o only if needed
charset.o is only needed for the EFI subsystem
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de> |
4ddcc4e5 | 31-Aug-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
vsprintf.c: use #if CONFIG_IS_ENABLED(EFI_LOADER)
Using CONFIG_IS_ENABLED(EFI_LOADER) allows to simply the #if statements.
Suggested-by: Alexander Graf <agraf@suse.de> Signed-off-by: Heinrich Schuc
vsprintf.c: use #if CONFIG_IS_ENABLED(EFI_LOADER)
Using CONFIG_IS_ENABLED(EFI_LOADER) allows to simply the #if statements.
Suggested-by: Alexander Graf <agraf@suse.de> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
d5a5a5a7 | 08-Aug-2018 |
Alexander Graf <agraf@suse.de> |
efi_loader: Pass address to fs_read()
The fs_read() function wants to get an address rather than the pointer to a buffer.
So let's convert the passed buffer from pointer back a the address to make
efi_loader: Pass address to fs_read()
The fs_read() function wants to get an address rather than the pointer to a buffer.
So let's convert the passed buffer from pointer back a the address to make efi_loader on sandbox happier.
Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
efe79a7c | 26-Aug-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: test for loaded image protocol
Verify that the loaded image protocol is installed on the image handle. Verify that the loaded image protocol points to the system table.
Signed-off-by:
efi_selftest: test for loaded image protocol
Verify that the loaded image protocol is installed on the image handle. Verify that the loaded image protocol points to the system table.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
7e1effce | 26-Aug-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_loader: pass system table in loaded image protocol
The system table must be passed as a pointer in the loaded image protocol.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-
efi_loader: pass system table in loaded image protocol
The system table must be passed as a pointer in the loaded image protocol.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
e470efd2 | 26-Aug-2018 |
Heinrich Schuchardt <xypron.glpk@gmx.de> |
efi_selftest: memory leak testing manage protocols
Remove memory leak in efi_selftest_manageprotocols.c.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf
efi_selftest: memory leak testing manage protocols
Remove memory leak in efi_selftest_manageprotocols.c.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
b87b0d8d | 06-Sep-2018 |
Miquel Raynal <miquel.raynal@bootlin.com> |
lib: strto: fix metric suffix parsing in strtoul[l]
While 1kB or 1kiB will be parsed correctly, 1k will return the right amount, but the metric suffix will not be escaped once the char pointer updat
lib: strto: fix metric suffix parsing in strtoul[l]
While 1kB or 1kiB will be parsed correctly, 1k will return the right amount, but the metric suffix will not be escaped once the char pointer updated. Fix this situation by simplifying the move of the endp pointer.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Stefan Roese <sr@denx.de>
show more ...
|
a353e6aa | 06-Sep-2018 |
Miquel Raynal <miquel.raynal@bootlin.com> |
lib: strto: parse all lowercase metric prefixes in ustrtoul[l]
Both ustrtoul and ustrtoull interpret 1k but not 1m or 1g. Even if the SI symbols for Mega and Giga are 'M' and 'G', certain entries of
lib: strto: parse all lowercase metric prefixes in ustrtoul[l]
Both ustrtoul and ustrtoull interpret 1k but not 1m or 1g. Even if the SI symbols for Mega and Giga are 'M' and 'G', certain entries of eg. mtdparts also use (wrongly) the metric prefix 'm' and 'g'.
I do not see how parsing lowercase prefixes could break anything, so parse them like their uppercase counterpart.
Also, even though kiB is not equal to kB in general, lets not change U-Boot behavior and always use kiB and kB (same applies for MiB vs. MB and GiB vs. GB) as a representation for 1024 instead of 1000.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Stefan Roese <sr@denx.de>
show more ...
|
9c2cb97e | 03-Aug-2018 |
Bin Meng <bmeng.cn@gmail.com> |
lib: bitrev: Sync with Linux kernel v4.17
Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> |