ia64/xen-unstable

view extras/mini-os/Config.mk @ 19557:226ef307cd2e

AMD IOMMU: Fix ioapic interrupt remapping

A few ioapic redirection entries are initialized by hypervisor before
enabling iommu hardware. This patch copies those entries from ioapic
redirection table into interrupt remapping table after interrupt
remapping table has been allocated.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Apr 17 13:16:39 2009 +0100 (2009-04-17)
parents 03f685b6356a
children
line source
1 # Set mini-os root path, used in mini-os.mk.
2 MINI-OS_ROOT=$(XEN_ROOT)/extras/mini-os
3 export MINI-OS_ROOT
5 libc = $(stubdom)
7 XEN_INTERFACE_VERSION := 0x00030205
8 export XEN_INTERFACE_VERSION
10 # Try to find out the architecture family TARGET_ARCH_FAM.
11 # First check whether x86_... is contained (for x86_32, x86_32y, x86_64).
12 # If not x86 then use $(XEN_TARGET_ARCH) -> for ia64, ...
13 ifeq ($(findstring x86_,$(XEN_TARGET_ARCH)),x86_)
14 TARGET_ARCH_FAM = x86
15 else
16 TARGET_ARCH_FAM = $(XEN_TARGET_ARCH)
17 endif
19 # The architecture family directory below mini-os.
20 TARGET_ARCH_DIR := arch/$(TARGET_ARCH_FAM)
22 # Export these variables for possible use in architecture dependent makefiles.
23 export TARGET_ARCH_DIR
24 export TARGET_ARCH_FAM
26 # This is used for architecture specific links.
27 # This can be overwritten from arch specific rules.
28 ARCH_LINKS =
30 # The path pointing to the architecture specific header files.
31 ARCH_INC := $(TARGET_ARCH_FAM)
33 # For possible special header directories.
34 # This can be overwritten from arch specific rules.
35 EXTRA_INC = $(ARCH_INC)
37 # Include the architecture family's special makerules.
38 # This must be before include minios.mk!
39 include $(MINI-OS_ROOT)/$(TARGET_ARCH_DIR)/arch.mk
41 extra_incl := $(foreach dir,$(EXTRA_INC),-isystem $(CURDIR)/$(MINI-OS_ROOT)/include/$(dir))
43 DEF_CPPFLAGS += -isystem $(CURDIR)/$(MINI-OS_ROOT)/include
44 DEF_CPPFLAGS += -D__MINIOS__
46 ifeq ($(libc),y)
47 DEF_CPPFLAGS += -DHAVE_LIBC
48 DEF_CPPFLAGS += -isystem $(CURDIR)/$(MINI-OS_ROOT)/include/posix
49 DEF_CPPFLAGS += -isystem $(CURDIR)/$(XEN_ROOT)/tools/xenstore
50 endif
52 ifneq ($(LWIPDIR),)
53 lwip=y
54 DEF_CPPFLAGS += -DHAVE_LWIP
55 DEF_CPPFLAGS += -isystem $(LWIPDIR)/src/include
56 DEF_CPPFLAGS += -isystem $(LWIPDIR)/src/include/ipv4
57 endif