- 23 Feb, 2016 1 commit
-
-
Vladimir Serbinenko authored
This ensures that abort message is actually visible to the user.
-
- 12 Feb, 2016 1 commit
-
-
Vladimir Serbinenko authored
-
- 04 Mar, 2015 1 commit
-
-
Vladimir Serbinenko authored
libgcc for boot environment isn't always present and compatible. libgcc is often absent if endianness or bit-size at boot is different from running OS. libgcc may use optimised opcodes that aren't available on boot time. So instead of relying on libgcc shipped with the compiler, supply the functions in GRUB directly. Tests are present to ensure that those replacement functions behave the way compiler expects them to.
-
- 23 Feb, 2015 1 commit
-
-
Vladimir Serbinenko authored
Previously we supplied only unsigned divisions on platforms that need software division. Yet compiler may itself use a signed division. A typical example would be a difference between 2 pointers which involves division by object size.
-
- 21 Feb, 2015 1 commit
-
-
Vladimir Serbinenko authored
Fixes ARM compilation
-
- 20 Apr, 2014 1 commit
-
-
Vladimir Serbinenko authored
Reported by: Yves Blusseau <blusseau@zetam.org>.
-
- 16 Dec, 2013 1 commit
-
-
Vladimir Serbinenko authored
using not very significant $target_os.
-
- 08 Dec, 2013 1 commit
-
-
Vladimir Serbinenko authored
-
- 27 Nov, 2013 1 commit
-
-
Vladimir Serbinenko authored
A bit tricky because this function has to continue to work without heap for short strings. Fixing prealloc to 32 arguments is reasonable but make all stack references use 32-bit offset rather than 8-bit one. So split va_args preparsing to separate function and put the prealloc into the caller.
-
- 22 Nov, 2013 1 commit
-
-
Vladimir Serbinenko authored
Export abort () when compiling with clang.
-
- 15 Nov, 2013 1 commit
-
-
Vladimir Serbinenko authored
On upcoming arm64 port libgcc ctz* are not usable in standalone environment. Since we need ctz* for this case and implementation is in C we may as well use it on all concerned platforms.
-
- 13 Nov, 2013 2 commits
-
-
Colin Watson authored
GRUB_UTIL case. * include/grub/misc.h: Likewise.
-
Vladimir Serbinenko authored
-
- 12 Nov, 2013 1 commit
-
-
Vladimir Serbinenko authored
* grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
-
- 08 Nov, 2013 1 commit
-
-
Vladimir Serbinenko authored
simple division on arm and ia64.
-
- 07 Nov, 2013 2 commits
-
-
Vladimir Serbinenko authored
* conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3 unconditionally. * configure.ac: Add -no-integrated-as when using clangfor asm files. Add -mrtd -mregparm=3 on i386 when not using clang. * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
-
Vladimir Serbinenko authored
-
- 01 Nov, 2013 1 commit
-
-
Vladimir Serbinenko authored
strncpy. * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise. * grub-core/kern/misc.c (grub_strncpy): Move from here ... * include/grub/misc.h (grub_strncpy): ... to here. Make inline. * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT + strcpy rather than strncpy.
-
- 27 Oct, 2013 4 commits
-
-
Vladimir Serbinenko authored
handling.
-
Vladimir Serbinenko authored
-
Vladimir Serbinenko authored
transform invalid unicode codepoints.
-
Vladimir Serbinenko authored
\0 checking.
-
- 21 Oct, 2013 3 commits
-
-
Vladimir 'phcoder' Serbinenko authored
\0 checking. Saves 70 bytes on compressed image.
-
Vladimir 'phcoder' Serbinenko authored
check. Saves 10 bytes on compressed image.
-
Vladimir 'phcoder' Serbinenko authored
* include/grub/misc.h (grub_isprint): ... here. Make inline. Saves 20 bytes on compressed image due to remving exporting.
-
- 20 Oct, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
"(null)" string. Simplify expressions to save around 256 bytes in kernel.img. * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
-
- 18 Oct, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
shadowing. * grub-core/kern/disk.c: Likewise. * grub-core/kern/misc.c: Likewise. * include/grub/parser.h: Likewise. * include/grub/script_sh.h: Likewise. * include/grub/zfs/zfs.h: Likewise.
-
- 15 Oct, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
* tests/printf_unit_test.c (printf_test): Add %% tests. Reported by: Paulo Flabiano Smorigo.
-
- 20 Mar, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 03 Mar, 2013 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
present. Remove symbols used for trampolines to make link fail if trampolines are present.
-
- 02 Jan, 2013 1 commit
-
-
Colin Watson authored
* grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and '$' in the correct order when collecting type information.
-
- 28 May, 2012 2 commits
-
-
Vladimir 'phcoder' Serbinenko authored
* grub-core/kern/misc.c: Likewise. * grub-core/loader/i386/xnu.c: Likewise. * include/grub/i386/tsc.h: Likewise. * include/grub/symbol.h: Likewise.
-
Vladimir 'phcoder' Serbinenko authored
(memmove) [__APPLE__]: Likewise. (memcpy) [__APPLE__]: Likewise. (memset) [__APPLE__]: Likewise. * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise. (memmove) [__APPLE__]: Likewise. (memcpy) [__APPLE__]: Likewise. (memset) [__APPLE__]: Likewise.
-
- 04 May, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
per common usage and preffered in several parts of code. (grub_memcmp): Likewise. (grub_strncmp): Likewise. * include/grub/misc.h (grub_strcasecmp): Likewise. (grub_strncasecmp): Likewise. * Makefile.util.def (cmp_test): New test. (grub_script_strcmp): Likewise. * tests/cmp_unit_test.c: New file. * tests/grub_script_strcmp.in: Likewise. * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
-
- 01 Mar, 2012 1 commit
-
-
Andreas Vogel authored
resulted in leak of arguments.
-
- 27 Feb, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
* include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
-
- 12 Feb, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 10 Feb, 2012 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
checks which are always false on some platforms. (grub_cmd_lsacpi): Likewise. * grub-core/kern/misc.c (grub_strtoul): Likewise. * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode): Likewise.
-
- 14 Dec, 2011 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
-
- 12 Nov, 2011 1 commit
-
-
Vladimir 'phcoder' Serbinenko authored
* tests/printf_unit_test.c: New file. * Makefile.util.def (printf_test): New test. * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
-