* 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:
parent
9d3ae8ecbb
commit
dd07e0c4cf
7 changed files with 27 additions and 6 deletions
|
@ -71,7 +71,7 @@ struct grub_cpu_idt_descriptor
|
|||
extern void (*grub_gdb_trapvec[]) (void);
|
||||
void grub_gdb_idtinit (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 /* ! GRUB_GDB_CPU_HEADER */
|
||||
|
|
|
@ -52,7 +52,8 @@ struct grub_bios_int_registers
|
|||
#endif
|
||||
|
||||
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
|
||||
{
|
||||
grub_uint16_t limit;
|
||||
|
|
|
@ -280,7 +280,7 @@ struct grub_pxenv_unload_stack
|
|||
grub_uint8_t reserved[10];
|
||||
} __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;
|
||||
|
||||
|
|
|
@ -76,7 +76,13 @@ extern void (*EXPORT_VAR(grub_ieee1275_net_config)) (const char *dev,
|
|||
/* Maps a device alias to a pathname. */
|
||||
extern grub_ieee1275_phandle_t EXPORT_VAR(grub_ieee1275_chosen);
|
||||
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,
|
||||
happens on Open Hack'Ware. Should be in platform-specific
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue