mirror of https://github.com/wolfSSL/wolfBoot.git
pci: stage2: uniform parameter-less function prototype
parent
a0e61f3a58
commit
71a43064f6
|
@ -41,7 +41,7 @@ struct stage2_ptr_holder {
|
|||
uint8_t dummy_idt[DUMMY_IDT_DESC_SIZE];
|
||||
} __attribute__((packed));
|
||||
|
||||
struct stage2_parameter *stage2_get_parameters();
|
||||
struct stage2_parameter *stage2_get_parameters(void);
|
||||
void stage2_set_parameters(struct stage2_parameter *p, struct stage2_ptr_holder *holder);
|
||||
void stage2_copy_parameter(struct stage2_parameter *p);
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ static int get_top_address(uint64_t *top, struct efi_hob *hoblist)
|
|||
* \param ptr Pointer to the parameter to be passed to the invoked function.
|
||||
*/
|
||||
static void change_stack_and_invoke(uint32_t new_stack,
|
||||
void (*other_func)(void *))
|
||||
void (*other_func)(void))
|
||||
{
|
||||
__asm__ volatile("movl %0, %%eax\n"
|
||||
"mov %%eax, %%esp\n"
|
||||
|
@ -504,7 +504,7 @@ static int self_extend_pcr(void)
|
|||
*
|
||||
* \param ptr Pointer to a parameter structure.
|
||||
*/
|
||||
static void memory_ready_entry()
|
||||
static void memory_ready_entry(void)
|
||||
{
|
||||
struct fsp_info_header *fsp_info;
|
||||
temp_ram_exit_cb TempRamExit;
|
||||
|
|
|
@ -941,12 +941,12 @@ static void pci_dump_bus(uint8_t bus)
|
|||
}
|
||||
}
|
||||
|
||||
void pci_dump_config_space()
|
||||
void pci_dump_config_space(void)
|
||||
{
|
||||
return pci_dump_bus(0);
|
||||
}
|
||||
#else
|
||||
void pci_dump_config_space() {};
|
||||
void pci_dump_config_space(void) {};
|
||||
#endif
|
||||
|
||||
int pci_enum_do(void)
|
||||
|
|
|
@ -79,7 +79,7 @@ void stage2_set_parameters(struct stage2_parameter *p, struct stage2_ptr_holder
|
|||
asm ("lidt %0\r\n" : : "m"(idt));
|
||||
}
|
||||
|
||||
struct stage2_parameter *stage2_get_parameters()
|
||||
struct stage2_parameter *stage2_get_parameters(void)
|
||||
{
|
||||
struct stage2_parameter **ptr;
|
||||
struct idt_descriptor idt;
|
||||
|
@ -107,7 +107,7 @@ void stage2_copy_parameter(struct stage2_parameter *p)
|
|||
* to fill the parameters */
|
||||
struct stage2_parameter _stage2_params;
|
||||
|
||||
struct stage2_parameter *stage2_get_parameters()
|
||||
struct stage2_parameter *stage2_get_parameters(void)
|
||||
{
|
||||
return &_stage2_params;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue