* grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm

bindings.
	* grub-core/lib/reed_solomon.c: Likewise.
	* include/grub/i386/gdb.h: Likewise.
	* include/grub/i386/pc/int.h: Likewise.
	* include/grub/i386/pc/pxe.h: Likewise.
	* include/grub/ieee1275/ieee1275.h: Likewise.
This commit is contained in:
Vladimir Serbinenko 2013-11-07 10:30:32 +01:00
parent 9d3ae8ecbb
commit dd07e0c4cf
7 changed files with 27 additions and 6 deletions

View file

@ -1,3 +1,13 @@
2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
bindings.
* grub-core/lib/reed_solomon.c: Likewise.
* include/grub/i386/gdb.h: Likewise.
* include/grub/i386/pc/int.h: Likewise.
* include/grub/i386/pc/pxe.h: Likewise.
* include/grub/ieee1275/ieee1275.h: Likewise.
2013-11-07 Vladimir Serbinenko <phcoder@gmail.com> 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
Import libgcrypt 1.5.3. Import libgcrypt 1.5.3.

View file

@ -22,7 +22,7 @@
#include <grub/types.h> #include <grub/types.h>
#include <grub/ieee1275/ieee1275.h> #include <grub/ieee1275/ieee1275.h>
int (*grub_ieee1275_entry_fn) (void *); int (*grub_ieee1275_entry_fn) (void *) GRUB_IEEE1275_ENTRY_FN_ATTRIBUTE;
grub_ieee1275_phandle_t grub_ieee1275_chosen; grub_ieee1275_phandle_t grub_ieee1275_chosen;
grub_ieee1275_ihandle_t grub_ieee1275_mmu; grub_ieee1275_ihandle_t grub_ieee1275_mmu;

View file

@ -53,7 +53,11 @@ typedef unsigned char grub_uint8_t;
#include <grub/misc.h> #include <grub/misc.h>
#endif #endif
void void
grub_reed_solomon_recover (void *ptr_, grub_size_t s, grub_size_t rs); grub_reed_solomon_recover (void *ptr_, grub_size_t s, grub_size_t rs)
#ifdef __i386__
__attribute__ ((regparm(3)))
#endif
;
#endif #endif
#define GF_SIZE 8 #define GF_SIZE 8

View file

@ -71,7 +71,7 @@ struct grub_cpu_idt_descriptor
extern void (*grub_gdb_trapvec[]) (void); extern void (*grub_gdb_trapvec[]) (void);
void grub_gdb_idtinit (void); void grub_gdb_idtinit (void);
void grub_gdb_idtrestore (void); void grub_gdb_idtrestore (void);
void grub_gdb_trap (int trap_no); void grub_gdb_trap (int trap_no) __attribute__ ((regparm(3)));
#endif /* ! ASM */ #endif /* ! ASM */
#endif /* ! GRUB_GDB_CPU_HEADER */ #endif /* ! GRUB_GDB_CPU_HEADER */

View file

@ -52,7 +52,8 @@ struct grub_bios_int_registers
#endif #endif
void EXPORT_FUNC (grub_bios_interrupt) (grub_uint8_t intno, void EXPORT_FUNC (grub_bios_interrupt) (grub_uint8_t intno,
struct grub_bios_int_registers *regs); struct grub_bios_int_registers *regs)
__attribute__ ((regparm(3)));
struct grub_i386_idt struct grub_i386_idt
{ {
grub_uint16_t limit; grub_uint16_t limit;

View file

@ -280,7 +280,7 @@ struct grub_pxenv_unload_stack
grub_uint8_t reserved[10]; grub_uint8_t reserved[10];
} __attribute__ ((packed)); } __attribute__ ((packed));
int EXPORT_FUNC(grub_pxe_call) (int func, void * data, grub_uint32_t pxe_rm_entry); int EXPORT_FUNC(grub_pxe_call) (int func, void * data, grub_uint32_t pxe_rm_entry) __attribute__ ((regparm(3)));
extern struct grub_pxe_bangpxe *grub_pxe_pxenv; extern struct grub_pxe_bangpxe *grub_pxe_pxenv;

View file

@ -76,7 +76,13 @@ extern void (*EXPORT_VAR(grub_ieee1275_net_config)) (const char *dev,
/* Maps a device alias to a pathname. */ /* Maps a device alias to a pathname. */
extern grub_ieee1275_phandle_t EXPORT_VAR(grub_ieee1275_chosen); extern grub_ieee1275_phandle_t EXPORT_VAR(grub_ieee1275_chosen);
extern grub_ieee1275_ihandle_t EXPORT_VAR(grub_ieee1275_mmu); extern grub_ieee1275_ihandle_t EXPORT_VAR(grub_ieee1275_mmu);
extern int (* EXPORT_VAR(grub_ieee1275_entry_fn)) (void *); #ifdef __i386__
#define GRUB_IEEE1275_ENTRY_FN_ATTRIBUTE __attribute__ ((regparm(3)))
#else
#define GRUB_IEEE1275_ENTRY_FN_ATTRIBUTE
#endif
extern int (* EXPORT_VAR(grub_ieee1275_entry_fn)) (void *) GRUB_IEEE1275_ENTRY_FN_ATTRIBUTE;
/* Static heap, used only if FORCE_CLAIM is set, /* Static heap, used only if FORCE_CLAIM is set,
happens on Open Hack'Ware. Should be in platform-specific happens on Open Hack'Ware. Should be in platform-specific