x86: Add context value to loapic_mkstub and ioapic_mkstub macros

Add a context value to the ioapic and loapic mkstub macros to allow
the developer to specify a context value that will be passed on the
stack to the interrupt service routines.

All the invocations for the loapic_mkstub and ioapic_mkstub macros
have been changed to pass in 0 so there is no functional difference
ATM.  This change removes the need for drivers to have trampoline ISR
routines to pass a context vaule to their generic ISR routine.

This is the first step in getting rid of the hack where the driver
needs to look into the __initconfig_* linker objects.

Change-Id: I2c5eaa20d8cb5a42ef445762c426854be32c8452
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
This commit is contained in:
Dirk Brandewie 2015-10-15 08:23:03 -07:00 committed by Anas Nashif
commit ad5af93f25
4 changed files with 17 additions and 17 deletions

View file

@ -29,13 +29,13 @@
#if defined(CONFIG_I2C_DW_0)
#ifdef CONFIG_IOAPIC
ioapic_mkstub i2c_dw_0 i2c_dw_isr_0
ioapic_mkstub i2c_dw_0 i2c_dw_isr_0 0
#endif
#endif /* CONFIG_I2C_DW_0 */
#if defined(CONFIG_I2C_DW_1)
#ifdef CONFIG_IOAPIC
ioapic_mkstub i2c_dw_1 i2c_dw_isr_1
ioapic_mkstub i2c_dw_1 i2c_dw_isr_1 0
#endif
#endif /* CONFIG_I2C_DW_1 */