* grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
missing attribute. * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
This commit is contained in:
parent
c4f11a2a99
commit
e2a6810069
3 changed files with 16 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
|
||||
missing attribute.
|
||||
* grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
|
||||
|
||||
2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/misc.c (grub_divmod64): Don't fallback to
|
||||
|
|
|
@ -201,7 +201,7 @@ grub_gdb_hex2int (char **ptr, grub_uint64_t *int_value)
|
|||
}
|
||||
|
||||
/* This function does all command procesing for interfacing to gdb. */
|
||||
void
|
||||
void __attribute__ ((regparm(3)))
|
||||
grub_gdb_trap (int trap_no)
|
||||
{
|
||||
unsigned int sig_no;
|
||||
|
|
|
@ -52,12 +52,16 @@ typedef unsigned char grub_uint8_t;
|
|||
#include <grub/types.h>
|
||||
#include <grub/misc.h>
|
||||
#endif
|
||||
#ifdef __i386__
|
||||
#define REED_SOLOMON_ATTRIBUTE __attribute__ ((regparm(3)))
|
||||
#else
|
||||
#define REED_SOLOMON_ATTRIBUTE
|
||||
#endif
|
||||
void
|
||||
grub_reed_solomon_recover (void *ptr_, grub_size_t s, grub_size_t rs)
|
||||
#ifdef __i386__
|
||||
__attribute__ ((regparm(3)))
|
||||
#endif
|
||||
;
|
||||
REED_SOLOMON_ATTRIBUTE;
|
||||
#else
|
||||
#define REED_SOLOMON_ATTRIBUTE
|
||||
#endif
|
||||
|
||||
#define GF_SIZE 8
|
||||
|
@ -381,7 +385,7 @@ grub_reed_solomon_add_redundancy (void *buffer, grub_size_t data_size,
|
|||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
void REED_SOLOMON_ATTRIBUTE
|
||||
grub_reed_solomon_recover (void *ptr_, grub_size_t s, grub_size_t rs)
|
||||
{
|
||||
gf_single_t *ptr = ptr_;
|
||||
|
|
Loading…
Reference in a new issue