Skip to content

Commit

Permalink
arch: x86: corrected parameter names
Browse files Browse the repository at this point in the history
- applied the exact parameter names of the interface to implementation

Signed-off-by: Hess Nathan <[email protected]>
  • Loading branch information
DeHess authored and nashif committed Jun 28, 2024
1 parent fbf209e commit 8b942e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions arch/x86/core/intel64/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ void z_x86_irq_connect_on_vector(unsigned int irq,
*/

int arch_irq_connect_dynamic(unsigned int irq, unsigned int priority,
void (*func)(const void *arg),
const void *arg, uint32_t flags)
void (*routine)(const void *parameter),
const void *parameter, uint32_t flags)
{
uint32_t key;
int vector;
Expand All @@ -124,7 +124,7 @@ int arch_irq_connect_dynamic(unsigned int irq, unsigned int priority,
#endif /* CONFIG_INTEL_VTD_ICTL */

z_irq_controller_irq_config(vector, irq, flags);
z_x86_irq_connect_on_vector(irq, vector, func, arg);
z_x86_irq_connect_on_vector(irq, vector, routine, parameter);
}

irq_unlock(key);
Expand Down
2 changes: 1 addition & 1 deletion include/zephyr/arch/x86/arch.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static ALWAYS_INLINE int sys_test_and_clear_bit(mem_addr_t addr,
* at build time and defined via the linker script. On Intel64, it's an array.
*/

extern unsigned char _irq_to_interrupt_vector[];
extern unsigned char _irq_to_interrupt_vector[CONFIG_MAX_IRQ_LINES];

#define Z_IRQ_TO_INTERRUPT_VECTOR(irq) \
((unsigned int) _irq_to_interrupt_vector[(irq)])
Expand Down

0 comments on commit 8b942e1

Please sign in to comment.