1. 04 Mar, 2015 1 commit
    • Vladimir Serbinenko's avatar
      Remove libgcc dependency. · 064360e6
      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.
      064360e6
  2. 23 Feb, 2015 1 commit
    • Vladimir Serbinenko's avatar
      Supply signed division to fix ARM compilation. · f034fab6
      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.
      f034fab6
  3. 21 Feb, 2015 1 commit
  4. 21 Jan, 2015 1 commit
  5. 18 Jan, 2014 1 commit
    • Andrey Borzenkov's avatar
      fix include loop on MinGW due to libintl.h pulling stdio.h · f371dd5d
      Andrey Borzenkov authored
      In file included from ./include/grub/dl.h:23:0,
                       from grub-core/lib/libgcrypt-grub/cipher/rfc2268.c:3:
      ./include/grub/list.h:34:18: warning: conflicting types for 'grub_list_push' [en
      abled by default]
       void EXPORT_FUNC(grub_list_push) (grub_list_t *head, grub_list_t item);
                        ^
      ./include/grub/symbol.h:68:25: note: in definition of macro 'EXPORT_FUNC'
       # define EXPORT_FUNC(x) x
                               ^
      In file included from ./include/grub/fs.h:30:0,
                       from ./include/grub/file.h:25,
                       from ./grub-core/lib/posix_wrap/stdio.h:23,
                       from c:\mingw\include\libintl.h:314,
                       from ./include/grub/i18n.h:33,
                       from ./include/grub/misc.h:27,
                       from ./include/grub/list.h:25,
                       from ./include/grub/dl.h:28,
                       from grub-core/lib/libgcrypt-grub/cipher/rfc2268.c:3:
      ./include/grub/partition.h:106:3: note: previous implicit declaration of 'grub_l
      ist_push' was here
         grub_list_push (GRUB_AS_LIST_P (&grub_partition_map_list),
         ^
      list.h needs just ATTRIBUTE_ERROR from misc.h; split compiler features
      into separate file grub/compiler.h and include it instead.
      f371dd5d
  6. 21 Dec, 2013 1 commit
  7. 18 Dec, 2013 1 commit
  8. 16 Dec, 2013 1 commit
  9. 08 Dec, 2013 1 commit
  10. 22 Nov, 2013 1 commit
  11. 17 Nov, 2013 1 commit
  12. 15 Nov, 2013 1 commit
  13. 13 Nov, 2013 3 commits
  14. 12 Nov, 2013 1 commit
  15. 07 Nov, 2013 1 commit
  16. 01 Nov, 2013 2 commits
  17. 27 Oct, 2013 1 commit
  18. 26 Oct, 2013 1 commit
  19. 21 Oct, 2013 1 commit
  20. 18 Oct, 2013 1 commit
  21. 14 Oct, 2013 1 commit
  22. 12 Oct, 2013 1 commit
  23. 07 May, 2013 1 commit
  24. 27 Apr, 2013 1 commit
  25. 05 Apr, 2013 1 commit
  26. 03 Apr, 2013 2 commits
  27. 20 Mar, 2013 1 commit
  28. 03 Mar, 2013 1 commit
  29. 28 May, 2012 2 commits
  30. 04 May, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as · ce41ab7a
      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.
      ce41ab7a
  31. 05 Mar, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define. · 1a2fd1e6
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
      	* grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
      	* grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
      	* grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
      	* grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
      	* grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
      1a2fd1e6
  32. 27 Feb, 2012 1 commit
  33. 12 Feb, 2012 2 commits
  34. 10 Feb, 2012 1 commit