From c2662f0d22c2eeb4fcdd364c991099c1c9310c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Thu, 13 Aug 2009 18:48:21 +0000 Subject: [PATCH] [GSoC] [ARM] Patch by Johannes Wischert. - empty u-boot specific platform code for the kernel, - add various objects needed by the kernel from libroot or the generic C implementation. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32328 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/lib/arch/arm/Jamfile | 33 +++++++++++++++++++ src/system/kernel/platform/u-boot/Jamfile | 8 +++++ .../kernel/platform/u-boot/platform.cpp | 10 ++++++ 3 files changed, 51 insertions(+) create mode 100644 src/system/kernel/lib/arch/arm/Jamfile create mode 100644 src/system/kernel/platform/u-boot/Jamfile create mode 100644 src/system/kernel/platform/u-boot/platform.cpp diff --git a/src/system/kernel/lib/arch/arm/Jamfile b/src/system/kernel/lib/arch/arm/Jamfile new file mode 100644 index 0000000000..275696c9a2 --- /dev/null +++ b/src/system/kernel/lib/arch/arm/Jamfile @@ -0,0 +1,33 @@ +SubDir HAIKU_TOP src system kernel lib arch arm ; + +SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) generic ] ; + +local librootSources = [ FDirName $(HAIKU_TOP) src system libroot ] ; +local posixSources = [ FDirName $(librootSources) posix ] ; + +SEARCH_SOURCE += [ FDirName $(librootSources) os arch $(TARGET_ARCH) ] ; + +KernelMergeObject kernel_os_arch_$(TARGET_ARCH).o : + atomic.S + byteorder.S +# system_time_asm.S + system_time.c + + : $(TARGET_KERNEL_PIC_CCFLAGS) +; + +SEARCH_SOURCE += [ FDirName $(posixSources) arch $(TARGET_ARCH) ] ; +SEARCH_SOURCE += [ FDirName $(posixSources) string arch generic ] ; +SEARCH_SOURCE += [ FDirName $(posixSources) string arch $(TARGET_ARCH) ] ; + +KernelMergeObject kernel_lib_posix_arch_$(TARGET_ARCH).o : + siglongjmp.S + sigsetjmp.S + kernel_longjmp_return.c + kernel_setjmp_save_sigs.c + + arch_string.S + memset.c + + : $(TARGET_KERNEL_PIC_CCFLAGS) +; diff --git a/src/system/kernel/platform/u-boot/Jamfile b/src/system/kernel/platform/u-boot/Jamfile new file mode 100644 index 0000000000..d29857ba59 --- /dev/null +++ b/src/system/kernel/platform/u-boot/Jamfile @@ -0,0 +1,8 @@ +SubDir HAIKU_TOP src system kernel platform u-boot ; + +SubDirCcFlags $(TARGET_KERNEL_PIC_CCFLAGS) ; +SubDirC++Flags $(TARGET_KERNEL_PIC_CCFLAGS) ; + +KernelMergeObject kernel_platform_u-boot.o : + platform.cpp +; diff --git a/src/system/kernel/platform/u-boot/platform.cpp b/src/system/kernel/platform/u-boot/platform.cpp new file mode 100644 index 0000000000..4cccfeca19 --- /dev/null +++ b/src/system/kernel/platform/u-boot/platform.cpp @@ -0,0 +1,10 @@ +/* + Atari kernel platform code. +*/ + +//#include + +//#define in8(a) (*(volatile uint8 *)(a)) +//#define out8(v, a) (*(volatile uint8 *)(a) = v) + +