2016-09-03 04:34:35 +08:00
|
|
|
ifeq ($(CONFIG_KERNEL_V2),y)
|
|
|
|
ccflags-y += -I$(srctree)/kernel/unified/include
|
|
|
|
else
|
2015-06-04 10:17:57 +08:00
|
|
|
ccflags-y += -I$(srctree)/kernel/nanokernel/include
|
|
|
|
ccflags-y += -I$(srctree)/kernel/microkernel/include
|
2016-09-03 04:34:35 +08:00
|
|
|
endif
|
2015-03-10 07:05:07 +08:00
|
|
|
|
2016-04-06 05:34:54 +08:00
|
|
|
ifeq ($(COMPILER)$(CONFIG_X86_IAMCU),clang)
|
2015-11-21 04:23:07 +08:00
|
|
|
# We rely on GAS for assembling, so don't use the integrated assembler
|
|
|
|
KBUILD_AFLAGS += -no-integrated-as
|
|
|
|
endif
|
|
|
|
|
x86: remove dynamically generated IRQ and exception code
We are interested in supporting some XIP x86 platforms which are
unable to fetch CPU instructions from system RAM. This requires
refactoring our dynamic IRQ/exc code which currently synthesizes
assembly language instructions to create IRQ stubs on-the-fly.
Instead, a new approach is taken. Given that the configuration at
build time specifies the number of required stubs, use this
to generate a build time a set of tiny stub functions which simply
push a 'stub id' and then call common dynamic interrupt code.
The handler function and handler argument is saved in a table keyed by
this stub id.
CONFIG_EOI_HANDLER_SUPPORTED removed, the code hasn't been conditionally
compiled for some time and in all cases we call _loapic_eoi() when
finished with an interrupt.
Some other out-of-date verbiage in comments related to supporting
non-APIC removed.
Previously, when dynamic exceptions were created a pointer would
be passed in by the caller reserving ram for the stub code. Since
this is no longer feasible, two new Kconfig options have been added.
CONFIG_NUM_DYNAMIC_EXC_STUBS and CONFIG_NUM_DYNAMIC_EXC_NO_ERR_STUBS
control how many stubs are created for exceptions that push
an error code, and no error code, respectively.
SW Interrupts are no longer triggered by "int <vector>" hard-coded
assembly instructions. Instead this is done by sending a self-directed
inter-processor interrupt from the LOAPIC, using a new API
loapic_int_vect_trigger(). In this way we get rid of dynamically
generated code in irq_test_common.h.
All interrupts call _loapic_eoi() when finished, since this is now
the right thing to do for all IRQs, including SW interrupts.
_irq_handler_set() for x86 no longer requires the old function pointer
to be supplied.
Change-Id: I78993d3d00dd153c9051c518b417cce8d3acee9e
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
2015-10-20 05:10:53 +08:00
|
|
|
# To create dynamic stubs we need to do a .rept on the total number of
|
|
|
|
# stubs divided by a constant, this prevents GAS from thinking the '/'
|
|
|
|
# character starts a comment
|
|
|
|
KBUILD_AFLAGS += -Wa,--divide
|
2015-11-17 10:29:37 +08:00
|
|
|
|
2016-07-27 05:55:41 +08:00
|
|
|
obj-y += cpuhalt.o \
|
2016-08-02 06:59:10 +08:00
|
|
|
msr.o irq_manage.o \
|
|
|
|
sys_fatal_error_handler.o \
|
2016-07-16 04:15:00 +08:00
|
|
|
crt0.o cache_s.o cache.o excstub.o \
|
2016-07-09 04:53:50 +08:00
|
|
|
intstub.o swap.o thread.o
|
2015-07-23 00:35:34 +08:00
|
|
|
|
2015-11-18 06:08:45 +08:00
|
|
|
obj-$(CONFIG_IRQ_OFFLOAD) += irq_offload.o
|
2015-06-20 01:56:08 +08:00
|
|
|
obj-$(CONFIG_FP_SHARING) += float.o
|
2016-09-03 04:34:35 +08:00
|
|
|
ifneq ($(CONFIG_KERNEL_V2),y)
|
2015-07-23 00:35:34 +08:00
|
|
|
obj-$(CONFIG_MICROKERNEL) += strtask.o
|
2016-09-03 04:34:35 +08:00
|
|
|
endif
|
2016-01-28 02:50:25 +08:00
|
|
|
obj-$(CONFIG_GDT_DYNAMIC) += gdt.o
|
2016-01-19 06:36:00 +08:00
|
|
|
obj-$(CONFIG_REBOOT_RST_CNT) += reboot_rst_cnt.o
|
debug: add target GDB server
The GDB server implements a set of GDB commands, such as read/write
memory, read/write registers, connect/detach, breakpoints, single-step,
continue. It is not OS-aware, and thus provides a 'system-level'
debugging environment, where the system stops when debugging (such as
handling a breakpoint or single-stepping).
It currently only works over a serial line, taking over the
uart_console. If target code prints over the console, the GDB server
intecepts them and does not send the characters directly over the serial
line, but rather wraps them in a packet handled by the GDB client.
Change-Id: Ic4b82e81b5a575831c01af7b476767234fbf74f7
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
2016-04-12 05:51:39 +08:00
|
|
|
|
|
|
|
obj-$(CONFIG_DEBUG_INFO) += debug/
|
|
|
|
obj-$(CONFIG_REBOOT_RST_CNT) += reboot_rst_cnt.o
|
2016-07-27 05:55:41 +08:00
|
|
|
|
|
|
|
# Last since we declare default exception handlers here
|
|
|
|
obj-y += fatal.o
|