Skip to contentSkip to conversation

PATCH: Adeos and Fusion PPC64 port (first attempt)

Adeos-main Heikki Lindholm 1 participant 1 message Jun 2, 2005

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

Hello all,

Here's an initial port of adeos and rtai/fusion to 64-bit powerpc Taneli Vähäkangas and myself have been working on. Unfortunately the port isn't yet fully functional, but due to timing constraints I have to shove it in (out) now ("kunhan hänessä on"). It's developed and tested on a G5 PowerMac; IBM Iseries code is untouched. Current status is:
* compiles - makefile structure should be ok
* Linux/adeos boots
* fusion modules load and unload
* fusion timers probably don't work
* fusion fpu support is untested and probably doesn't work
* A hello world rt thread seems to work :)
* much of the stuff could be integrated with the ppc32 from which it differs very little, but should probably be made more stable before that

Regards,
Heikki Lindholm

GNUmakefile.in +2 -0
diff -Nru fusion-0.7.1/GNUmakefile.in fusion-0.7.1-ppc64-devel/GNUmakefile.in
@@ -93,6 +93,8 @@
 CONFIG_LTT_TRUE = @CONFIG_LTT_TRUE@
 CONFIG_PPC_FALSE = @CONFIG_PPC_FALSE@
 CONFIG_PPC_TRUE = @CONFIG_PPC_TRUE@
+CONFIG_PPC64_FALSE = @CONFIG_PPC64_FALSE@
+CONFIG_PPC64_TRUE = @CONFIG_PPC64_TRUE@
 CONFIG_RTAI_DOC_DOX_FALSE = @CONFIG_RTAI_DOC_DOX_FALSE@
 CONFIG_RTAI_DOC_DOX_TRUE = @CONFIG_RTAI_DOC_DOX_TRUE@
 CONFIG_RTAI_DRIVERS_16550A_FALSE = @CONFIG_RTAI_DRIVERS_16550A_FALSE@
arch/GNUmakefile.am +4 -0
diff -Nru fusion-0.7.1/arch/GNUmakefile.am fusion-0.7.1-ppc64-devel/arch/GNUmakefile.am
@@ -6,4 +6,8 @@
 ARCHDIR = ppc
 endif
 
+if CONFIG_PPC64
+ARCHDIR = ppc64
+endif
+
 SUBDIRS = $(ARCHDIR)
arch/GNUmakefile.in +2 -1
diff -Nru fusion-0.7.1/arch/GNUmakefile.in fusion-0.7.1-ppc64-devel/arch/GNUmakefile.in
@@ -55,7 +55,7 @@
 	uninstall-recursive
 ETAGS = etags
 CTAGS = ctags
-DIST_SUBDIRS = ppc i386
+DIST_SUBDIRS = ppc ppc64 i386
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 ACLOCAL = @ACLOCAL@
 AMDEP_FALSE = @AMDEP_FALSE@
@@ -267,6 +267,7 @@
 sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 @CONFIG_PPC_TRUE@ARCHDIR = ppc
+@CONFIG_PPC64_TRUE@ARCHDIR = ppc64
 @CONFIG_X86_TRUE@ARCHDIR = i386
 SUBDIRS = $(ARCHDIR)
 all: all-recursive
arch/ppc64/GNUmakefile.am +3 -0
diff -Nru fusion-0.7.1/arch/ppc64/GNUmakefile.am fusion-0.7.1-ppc64-devel/arch/ppc64/GNUmakefile.am
@@ -0,0 +1,3 @@
+SUBDIRS = hal
+
+EXTRA_DIST = Kconfig defconfig patches
arch/ppc64/GNUmakefile.in +569 -0

569 lines not on this page · raw message

arch/ppc64/Kconfig +70 -0

70 lines not on this page · raw message

arch/ppc64/defconfig +66 -0

66 lines not on this page · raw message

arch/ppc64/hal/GNUmakefile.am +34 -0
diff -Nru fusion-0.7.1/arch/ppc64/hal/GNUmakefile.am fusion-0.7.1-ppc64-devel/arch/ppc64/hal/GNUmakefile.am
@@ -0,0 +1,34 @@
+moduledir = $(DESTDIR)@RTAI_MODULE_DIR@
+
+modext = @RTAI_MODULE_EXT@
+
+CROSS_COMPILE = @CROSS_COMPILE@
+
+libhal_SRC = hal.c switch.S
+
+if CONFIG_RTAI_HW_FPU
+libhal_SRC += fpu.S
+endif
+
+rtai_hal.ko: @RTAI_KBUILD_ENV@
+rtai_hal.ko: $(libhal_SRC) FORCE
+	@RTAI_KBUILD_TOP@ \
+	@RTAI_KBUILD_CMD@ rtai_extradef="@RTAI_KMOD_CFLAGS@" \
+	@RTAI_KBUILD_BOTTOM@
+
+clean-local:
+	@RTAI_KBUILD_CLEAN@
+
+all-local: rtai_hal$(modext)
+if CONFIG_RTAI_OLD_FASHIONED_BUILD
+	$(mkinstalldirs) $(top_srcdir)/modules
+	$(INSTALL_DATA) $^ $(top_srcdir)/modules
+endif
+
+install-exec-local: rtai_hal$(modext)
+	$(mkinstalldirs) $(moduledir)
+	$(INSTALL_DATA) $< $(moduledir)
+
+.PHONY: FORCE
+
+EXTRA_DIST = $(libhal_SRC) fpu.S Makefile.kbuild
arch/ppc64/hal/GNUmakefile.in +447 -0

447 lines not on this page · raw message

arch/ppc64/hal/Makefile.kbuild +13 -0
diff -Nru fusion-0.7.1/arch/ppc64/hal/Makefile.kbuild fusion-0.7.1-ppc64-devel/arch/ppc64/hal/Makefile.kbuild
@@ -0,0 +1,13 @@
+EXTRA_CFLAGS += -I$(rtai_srctree)/include \
+		-I$(src)/../../../include \
+		-I$(src)/../../.. \
+		$(rtai_extradef)
+
+EXTRA_AFLAGS += -I$(rtai_srctree)/include \
+		-I$(src)/../../../include \
+		-I$(src)/../../.. \
+		$(rtai_extradef)
+
+obj-m += rtai_hal.o
+
+rtai_hal-objs := $(rtai_objs)
arch/ppc64/hal/fpu.S +74 -0

74 lines not on this page · raw message

arch/ppc64/hal/hal.c +956 -0

956 lines not on this page · raw message

arch/ppc64/hal/switch.S +128 -0

128 lines not on this page · raw message

config/autoconf/arch2host.sh +3 -0
diff -Nru fusion-0.7.1/config/autoconf/arch2host.sh fusion-0.7.1-ppc64-devel/config/autoconf/arch2host.sh
@@ -10,6 +10,9 @@
 ppc|powerpc)
     echo powerpc-unknown-linux-gnu
     ;;
+ppc64|powerpc64)
+    echo powerpc64-unknown-linux-gnu
+    ;;
 "")
     # Shorthand not specified: return default value.
     echo $2
configure +35 -3
diff -Nru fusion-0.7.1/configure fusion-0.7.1-ppc64-devel/configure
@@ -467,7 +467,7 @@
 #endif"
 
 ac_subdirs_all="$ac_subdirs_all sim"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CCAS CCASFLAGS LEX LEXLIB LEX_OUTPUT_ROOT CONFIG_RTAI_HW_SMI_DETECT_TRUE CONFIG_RTAI_HW_SMI_DETECT_FALSE RTAI_MAYBE_SIMDIR RTAI_MAYBE_DOCDIR DOXYGEN DOXYGEN_HAVE_DOT DBX_DOC_ROOT DBX_DOC_TRUE DBX_DOC_FALSE DBX_GEN_DOC_ROOT DBX_LINT DBX_XSLTPROC DBX_FOP DBX_MAYBE_NONET DBX_ROOT DBX_XSL_ROOT DBX_ABS_SRCDIR_TRUE DBX_ABS_SRCDIR_FALSE CONFIG_X86_LOCAL_APIC_TRUE CONFIG_X86_LOCAL_APIC_FALSE CONFIG_X86_TRUE CONFIG_X86_FALSE CONFIG_PPC_TRUE CONFIG_PPC_FALSE CONFIG_SMP_TRUE CONFIG_SMP_FALSE CONFIG_LTT_TRUE CONFIG_LTT_FALSE CONFIG_RTAI_HW_FPU_TRUE CONFIG_RTAI_HW_FPU_FALSE CONFIG_RTAI_OPT_FUSION_TRUE CONFIG_RTAI_OPT_FUSION_FALSE CONFIG_RTAI_OPT_PIPE_TRUE CONFIG_RTAI_OPT_PIPE_FALSE CONFIG_RTAI_SKIN_POSIX_TRUE CONFIG_RTAI_SKIN_POSIX_FALSE CONFIG_RTAI_SKIN_NATIVE_TRUE CONFIG_RTAI_SKIN_NATIVE_FALSE CONFIG_RTAI_SKIN_PSOS_TRUE CONFIG_RTAI_SKIN_PSOS_FALSE CONFIG_RTAI_SKIN_VXWORKS_TRUE CONFIG_RTAI_SKIN_VXWORKS_FALSE CONFIG_RTAI_SKIN_VRTX_TRUE CONFIG_RTAI_SKIN_VRTX_FALSE CONFIG_RTAI_SKIN_UITRON_TRUE CONFIG_RTAI_SKIN_UITRON_FALSE CONFIG_RTAI_OPT_UVM_TRUE CONFIG_RTAI_OPT_UVM_FALSE CONFIG_RTAI_DRIVERS_16550A_TRUE CONFIG_RTAI_DRIVERS_16550A_FALSE CONFIG_RTAI_OPT_NATIVE_REGISTRY_TRUE CONFIG_RTAI_OPT_NATIVE_REGISTRY_FALSE CONFIG_RTAI_OPT_NATIVE_PIPE_TRUE CONFIG_RTAI_OPT_NATIVE_PIPE_FALSE CONFIG_RTAI_OPT_NATIVE_SEM_TRUE CONFIG_RTAI_OPT_NATIVE_SEM_FALSE CONFIG_RTAI_OPT_NATIVE_EVENT_TRUE CONFIG_RTAI_OPT_NATIVE_EVENT_FALSE CONFIG_RTAI_OPT_NATIVE_MUTEX_TRUE CONFIG_RTAI_OPT_NATIVE_MUTEX_FALSE CONFIG_RTAI_OPT_NATIVE_COND_TRUE CONFIG_RTAI_OPT_NATIVE_COND_FALSE CONFIG_RTAI_OPT_NATIVE_QUEUE_TRUE CONFIG_RTAI_OPT_NATIVE_QUEUE_FALSE CONFIG_RTAI_OPT_NATIVE_HEAP_TRUE CONFIG_RTAI_OPT_NATIVE_HEAP_FALSE CONFIG_RTAI_OPT_NATIVE_ALARM_TRUE CONFIG_RTAI_OPT_NATIVE_ALARM_FALSE CONFIG_RTAI_OPT_NATIVE_INTR_TRUE CONFIG_RTAI_OPT_NATIVE_INTR_FALSE CONFIG_RTAI_DOC_DOX_TRUE CONFIG_RTAI_DOC_DOX_FALSE CONFIG_RTAI_MAINT_TRUE CONFIG_RTAI_MAINT_FALSE CONFIG_RTAI_MAINT_GCH_TRUE CONFIG_RTAI_MAINT_GCH_FALSE CONFIG_RTAI_MAINT_PGM_TRUE CONFIG_RTAI_MAINT_PGM_FALSE CONFIG_RTAI_OLD_FASHIONED_BUILD_TRUE CONFIG_RTAI_OLD_FASHIONED_BUILD_FALSE CROSS_COMPILE DOXYGEN_SHOW_INCLUDE_FILES LATEX_BATCHMODE LATEX_MODE RTAI_BUILD_STRING RTAI_HOST_STRING RTAI_TARGET_ARCH RTAI_TARGET_SUBARCH RTAI_KMOD_CFLAGS RTAI_USER_CFLAGS RTAI_KMOD_APP_CFLAGS RTAI_USER_APP_CFLAGS RTAI_FP_CFLAGS RTAI_LINUX_DIR RTAI_LINUX_VERSION RTAI_MODULE_DIR RTAI_MODULE_EXT RTAI_KBUILD_ENV RTAI_KBUILD_TOP RTAI_KBUILD_BOTTOM RTAI_KBUILD_CMD RTAI_KBUILD_CLEAN RTAI_KBUILD_DISTCLEAN RTAI_PIPE_NRDEV subdirs LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CCAS CCASFLAGS LEX LEXLIB LEX_OUTPUT_ROOT CONFIG_RTAI_HW_SMI_DETECT_TRUE CONFIG_RTAI_HW_SMI_DETECT_FALSE RTAI_MAYBE_SIMDIR RTAI_MAYBE_DOCDIR DOXYGEN DOXYGEN_HAVE_DOT DBX_DOC_ROOT DBX_DOC_TRUE DBX_DOC_FALSE DBX_GEN_DOC_ROOT DBX_LINT DBX_XSLTPROC DBX_FOP DBX_MAYBE_NONET DBX_ROOT DBX_XSL_ROOT DBX_ABS_SRCDIR_TRUE DBX_ABS_SRCDIR_FALSE CONFIG_X86_LOCAL_APIC_TRUE CONFIG_X86_LOCAL_APIC_FALSE CONFIG_X86_TRUE CONFIG_X86_FALSE CONFIG_PPC_TRUE CONFIG_PPC_FALSE CONFIG_PPC64_TRUE CONFIG_PPC64_FALSE CONFIG_SMP_TRUE CONFIG_SMP_FALSE CONFIG_LTT_TRUE CONFIG_LTT_FALSE CONFIG_RTAI_HW_FPU_TRUE CONFIG_RTAI_HW_FPU_FALSE CONFIG_RTAI_OPT_FUSION_TRUE CONFIG_RTAI_OPT_FUSION_FALSE CONFIG_RTAI_OPT_PIPE_TRUE CONFIG_RTAI_OPT_PIPE_FALSE CONFIG_RTAI_SKIN_POSIX_TRUE CONFIG_RTAI_SKIN_POSIX_FALSE CONFIG_RTAI_SKIN_NATIVE_TRUE CONFIG_RTAI_SKIN_NATIVE_FALSE CONFIG_RTAI_SKIN_PSOS_TRUE CONFIG_RTAI_SKIN_PSOS_FALSE CONFIG_RTAI_SKIN_VXWORKS_TRUE CONFIG_RTAI_SKIN_VXWORKS_FALSE CONFIG_RTAI_SKIN_VRTX_TRUE CONFIG_RTAI_SKIN_VRTX_FALSE CONFIG_RTAI_SKIN_UITRON_TRUE CONFIG_RTAI_SKIN_UITRON_FALSE CONFIG_RTAI_OPT_UVM_TRUE CONFIG_RTAI_OPT_UVM_FALSE CONFIG_RTAI_DRIVERS_16550A_TRUE CONFIG_RTAI_DRIVERS_16550A_FALSE CONFIG_RTAI_OPT_NATIVE_REGISTRY_TRUE CONFIG_RTAI_OPT_NATIVE_REGISTRY_FALSE CONFIG_RTAI_OPT_NATIVE_PIPE_TRUE CONFIG_RTAI_OPT_NATIVE_PIPE_FALSE CONFIG_RTAI_OPT_NATIVE_SEM_TRUE CONFIG_RTAI_OPT_NATIVE_SEM_FALSE CONFIG_RTAI_OPT_NATIVE_EVENT_TRUE CONFIG_RTAI_OPT_NATIVE_EVENT_FALSE CONFIG_RTAI_OPT_NATIVE_MUTEX_TRUE CONFIG_RTAI_OPT_NATIVE_MUTEX_FALSE CONFIG_RTAI_OPT_NATIVE_COND_TRUE CONFIG_RTAI_OPT_NATIVE_COND_FALSE CONFIG_RTAI_OPT_NATIVE_QUEUE_TRUE CONFIG_RTAI_OPT_NATIVE_QUEUE_FALSE CONFIG_RTAI_OPT_NATIVE_HEAP_TRUE CONFIG_RTAI_OPT_NATIVE_HEAP_FALSE CONFIG_RTAI_OPT_NATIVE_ALARM_TRUE CONFIG_RTAI_OPT_NATIVE_ALARM_FALSE CONFIG_RTAI_OPT_NATIVE_INTR_TRUE CONFIG_RTAI_OPT_NATIVE_INTR_FALSE CONFIG_RTAI_DOC_DOX_TRUE CONFIG_RTAI_DOC_DOX_FALSE CONFIG_RTAI_MAINT_TRUE CONFIG_RTAI_MAINT_FALSE CONFIG_RTAI_MAINT_GCH_TRUE CONFIG_RTAI_MAINT_GCH_FALSE CONFIG_RTAI_MAINT_PGM_TRUE CONFIG_RTAI_MAINT_PGM_FALSE CONFIG_RTAI_OLD_FASHIONED_BUILD_TRUE CONFIG_RTAI_OLD_FASHIONED_BUILD_FALSE CROSS_COMPILE DOXYGEN_SHOW_INCLUDE_FILES LATEX_BATCHMODE LATEX_MODE RTAI_BUILD_STRING RTAI_HOST_STRING RTAI_TARGET_ARCH RTAI_TARGET_SUBARCH RTAI_KMOD_CFLAGS RTAI_USER_CFLAGS RTAI_KMOD_APP_CFLAGS RTAI_USER_APP_CFLAGS RTAI_FP_CFLAGS RTAI_LINUX_DIR RTAI_LINUX_VERSION RTAI_MODULE_DIR RTAI_MODULE_EXT RTAI_KBUILD_ENV RTAI_KBUILD_TOP RTAI_KBUILD_BOTTOM RTAI_KBUILD_CMD RTAI_KBUILD_CLEAN RTAI_KBUILD_DISTCLEAN RTAI_PIPE_NRDEV subdirs LIBOBJS LTLIBOBJS'
 ac_subst_files=''
 
 # Initialize some variables set by options.
@@ -19565,6 +19565,11 @@
 	wanted_kernel_arch=CONFIG_PPC
 	arch_have_sim=y
         ;;
+ powerpc64-*|ppc64-*)
+	RTAI_TARGET_ARCH=ppc64
+	wanted_kernel_arch=CONFIG_PPC64
+	arch_have_sim=n
+        ;;
  *) echo ""
    echo "*******************************************"
    echo "Still unsupported host: $host -- Sorry."
@@ -20248,7 +20253,7 @@
 	   timer_type="8254 PIT"
 	fi
         ;;
- ppc)
+ ppc|ppc64)
 	timer_type=decrementer
         ;;
 esac
@@ -21325,6 +21330,16 @@
 
 
 
+if test "$CONFIG_PPC64" = y; then
+  CONFIG_PPC64_TRUE=
+  CONFIG_PPC64_FALSE='#'
+else
+  CONFIG_PPC64_TRUE='#'
+  CONFIG_PPC64_FALSE=
+fi
+
+
+
 if test "$CONFIG_SMP" = y; then
   CONFIG_SMP_TRUE=
   CONFIG_SMP_FALSE='#'
@@ -21723,6 +21738,11 @@
 	RTAI_USER_CFLAGS="$RTAI_USER_CFLAGS -Wall -Wstrict-prototypes -pipe"
 	RTAI_FP_CFLAGS="-ffast-math -mhard-float"
         ;;
+ ppc64)
+	RTAI_TARGET_SUBARCH=
+	RTAI_USER_CFLAGS="$RTAI_USER_CFLAGS -Wall -Wstrict-prototypes -pipe"
+	RTAI_FP_CFLAGS="-ffast-math -mhard-float"
+        ;;
 esac
 
 if test x$CONFIG_RTAI_OPT_KSYMS = xy; then
@@ -21806,7 +21826,7 @@
 
 
 
-                                                                                                                                                                                                                                                                                                                                          ac_config_files="$ac_config_files GNUmakefile config/GNUmakefile arch/GNUmakefile arch/i386/GNUmakefile arch/i386/hal/GNUmakefile arch/ppc/GNUmakefile arch/ppc/hal/GNUmakefile include/GNUmakefile include/nucleus/GNUmakefile include/nucleus/asm-i386/GNUmakefile include/nucleus/asm-ppc/GNUmakefile include/nucleus/asm-uvm/GNUmakefile nucleus/GNUmakefile nucleus/lib/GNUmakefile scripts/GNUmakefile scripts/rtai-config scripts/rtai-load testsuite/GNUmakefile testsuite/latency/GNUmakefile testsuite/klatency/GNUmakefile testsuite/cruncher/GNUmakefile testsuite/switch/GNUmakefile skins/GNUmakefile skins/posix/GNUmakefile skins/rtai/GNUmakefile skins/rtai/lib/GNUmakefile skins/psos+/GNUmakefile skins/uitron/GNUmakefile skins/vrtx/GNUmakefile skins/vxworks/GNUmakefile drivers/GNUmakefile drivers/16550A/GNUmakefile drivers/16550A/lib/GNUmakefile"
+                                                                                                                                                                                                                                                                                                                                          ac_config_files="$ac_config_files GNUmakefile config/GNUmakefile arch/GNUmakefile arch/i386/GNUmakefile arch/i386/hal/GNUmakefile arch/ppc/GNUmakefile arch/ppc/hal/GNUmakefile arch/ppc64/GNUmakefile arch/ppc64/hal/GNUmakefile include/GNUmakefile include/nucleus/GNUmakefile include/nucleus/asm-i386/GNUmakefile include/nucleus/asm-ppc/GNUmakefile include/nucleus/asm-ppc64/GNUmakefile include/nucleus/asm-uvm/GNUmakefile nucleus/GNUmakefile nucleus/lib/GNUmakefile scripts/GNUmakefile scripts/rtai-config scripts/rtai-load testsuite/GNUmakefile testsuite/latency/GNUmakefile testsuite/klatency/GNUmakefile testsuite/cruncher/GNUmakefile testsuite/switch/GNUmakefile skins/GNUmakefile skins/posix/GNUmakefile skins/rtai/GNUmakefile skins/rtai/lib/GNUmakefile skins/psos+/GNUmakefile skins/uitron/GNUmakefile skins/vrtx/GNUmakefile skins/vxworks/GNUmakefile drivers/GNUmakefile drivers/16550A/GNUmakefile drivers/16550A/lib/GNUmakefile"
 
 
 if test \! x$RTAI_MAYBE_DOCDIR = x; then
@@ -21982,6 +22002,13 @@
 Usually this means the macro was only invoked conditionally." >&2;}
    { (exit 1); exit 1; }; }
 fi
+if test -z "${CONFIG_PPC64_TRUE}" && test -z "${CONFIG_PPC64_FALSE}"; then
+  { { echo "$as_me:$LINENO: error: conditional \"CONFIG_PPC64\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+echo "$as_me: error: conditional \"CONFIG_PPC64\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+   { (exit 1); exit 1; }; }
+fi
 if test -z "${CONFIG_SMP_TRUE}" && test -z "${CONFIG_SMP_FALSE}"; then
   { { echo "$as_me:$LINENO: error: conditional \"CONFIG_SMP\" was never defined.
 Usually this means the macro was only invoked conditionally." >&5
@@ -22632,10 +22659,13 @@
   "arch/i386/hal/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES arch/i386/hal/GNUmakefile" ;;
   "arch/ppc/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES arch/ppc/GNUmakefile" ;;
   "arch/ppc/hal/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES arch/ppc/hal/GNUmakefile" ;;
+  "arch/ppc64/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES arch/ppc64/GNUmakefile" ;;
+  "arch/ppc64/hal/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES arch/ppc64/hal/GNUmakefile" ;;
   "include/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES include/GNUmakefile" ;;
   "include/nucleus/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES include/nucleus/GNUmakefile" ;;
   "include/nucleus/asm-i386/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES include/nucleus/asm-i386/GNUmakefile" ;;
   "include/nucleus/asm-ppc/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES include/nucleus/asm-ppc/GNUmakefile" ;;
+  "include/nucleus/asm-ppc64/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES include/nucleus/asm-ppc64/GNUmakefile" ;;
   "include/nucleus/asm-uvm/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES include/nucleus/asm-uvm/GNUmakefile" ;;
   "nucleus/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES nucleus/GNUmakefile" ;;
   "nucleus/lib/GNUmakefile" ) CONFIG_FILES="$CONFIG_FILES nucleus/lib/GNUmakefile" ;;
@@ -22867,6 +22897,8 @@
 s,@CONFIG_X86_FALSE@,$CONFIG_X86_FALSE,;t t
 s,@CONFIG_PPC_TRUE@,$CONFIG_PPC_TRUE,;t t
 s,@CONFIG_PPC_FALSE@,$CONFIG_PPC_FALSE,;t t
+s,@CONFIG_PPC64_TRUE@,$CONFIG_PPC64_TRUE,;t t
+s,@CONFIG_PPC64_FALSE@,$CONFIG_PPC64_FALSE,;t t
 s,@CONFIG_SMP_TRUE@,$CONFIG_SMP_TRUE,;t t
 s,@CONFIG_SMP_FALSE@,$CONFIG_SMP_FALSE,;t t
 s,@CONFIG_LTT_TRUE@,$CONFIG_LTT_TRUE,;t t
configure.in +15 -1
diff -Nru fusion-0.7.1/configure.in fusion-0.7.1-ppc64-devel/configure.in
@@ -53,6 +53,11 @@
 	wanted_kernel_arch=CONFIG_PPC
 	arch_have_sim=y
         ;;
+ powerpc64-*|ppc64-*)
+	RTAI_TARGET_ARCH=ppc64
+	wanted_kernel_arch=CONFIG_PPC64
+	arch_have_sim=n
+        ;;
  *) echo ""
    echo "*******************************************"
    echo "Still unsupported host: $host -- Sorry."
@@ -592,7 +597,7 @@
 	   timer_type="8254 PIT"
 	fi
         ;;
- ppc)
+ ppc|ppc64)
 	timer_type=decrementer
         ;;
 esac
@@ -1035,6 +1040,7 @@
 dnl CPU architecture
 AM_CONDITIONAL(CONFIG_X86,[test "$CONFIG_X86" = y])
 AM_CONDITIONAL(CONFIG_PPC,[test "$CONFIG_PPC" = y])
+AM_CONDITIONAL(CONFIG_PPC64,[test "$CONFIG_PPC64" = y])
 AM_CONDITIONAL(CONFIG_SMP,[test "$CONFIG_SMP" = y])
 AM_CONDITIONAL(CONFIG_LTT,[test "$CONFIG_LTT" = y])
 
@@ -1132,6 +1138,11 @@
 	RTAI_USER_CFLAGS="$RTAI_USER_CFLAGS -Wall -Wstrict-prototypes -pipe"
 	RTAI_FP_CFLAGS="-ffast-math -mhard-float"
         ;;
+ ppc64)
+	RTAI_TARGET_SUBARCH=
+	RTAI_USER_CFLAGS="$RTAI_USER_CFLAGS -Wall -Wstrict-prototypes -pipe"
+	RTAI_FP_CFLAGS="-ffast-math -mhard-float"
+        ;;
 esac
 
 if test x$CONFIG_RTAI_OPT_KSYMS = xy; then
@@ -1212,10 +1223,13 @@
 	arch/i386/hal/GNUmakefile \
         arch/ppc/GNUmakefile \
 	arch/ppc/hal/GNUmakefile \
+        arch/ppc64/GNUmakefile \
+	arch/ppc64/hal/GNUmakefile \
 	include/GNUmakefile \
 	include/nucleus/GNUmakefile \
 	include/nucleus/asm-i386/GNUmakefile \
 	include/nucleus/asm-ppc/GNUmakefile \
+	include/nucleus/asm-ppc64/GNUmakefile \
 	include/nucleus/asm-uvm/GNUmakefile \
 	nucleus/GNUmakefile \
 	nucleus/lib/GNUmakefile \
include/nucleus/GNUmakefile.am +4 -0
diff -Nru fusion-0.7.1/include/nucleus/GNUmakefile.am fusion-0.7.1-ppc64-devel/include/nucleus/GNUmakefile.am
@@ -8,6 +8,10 @@
 ARCHDIR = asm-ppc
 endif
 
+if CONFIG_PPC64
+ARCHDIR = asm-ppc64
+endif
+
 include_HEADERS = \
 		fusion.h \
 		heap.h \
include/nucleus/GNUmakefile.in +4 -1
diff -Nru fusion-0.7.1/include/nucleus/GNUmakefile.in fusion-0.7.1-ppc64-devel/include/nucleus/GNUmakefile.in
@@ -67,7 +67,7 @@
 HEADERS = $(include_HEADERS)
 ETAGS = etags
 CTAGS = ctags
-DIST_SUBDIRS = asm-ppc asm-i386 asm-uvm
+DIST_SUBDIRS = asm-ppc asm-ppc64 asm-i386 asm-uvm
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 ACLOCAL = @ACLOCAL@
 AMDEP_FALSE = @AMDEP_FALSE@
@@ -87,6 +87,8 @@
 CONFIG_LTT_TRUE = @CONFIG_LTT_TRUE@
 CONFIG_PPC_FALSE = @CONFIG_PPC_FALSE@
 CONFIG_PPC_TRUE = @CONFIG_PPC_TRUE@
+CONFIG_PPC64_FALSE = @CONFIG_PPC64_FALSE@
+CONFIG_PPC64_TRUE = @CONFIG_PPC64_TRUE@
 CONFIG_RTAI_DOC_DOX_FALSE = @CONFIG_RTAI_DOC_DOX_FALSE@
 CONFIG_RTAI_DOC_DOX_TRUE = @CONFIG_RTAI_DOC_DOX_TRUE@
 CONFIG_RTAI_DRIVERS_16550A_FALSE = @CONFIG_RTAI_DRIVERS_16550A_FALSE@
@@ -279,6 +281,7 @@
 sysconfdir = @sysconfdir@
 target_alias = @target_alias@
 @CONFIG_PPC_TRUE@ARCHDIR = asm-ppc
+@CONFIG_PPC64_TRUE@ARCHDIR = asm-ppc64
 @CONFIG_X86_TRUE@ARCHDIR = asm-i386
 include_HEADERS = \
 		fusion.h \
include/nucleus/asm-ppc64/GNUmakefile.am +14 -0
diff -Nru fusion-0.7.1/include/nucleus/asm-ppc64/GNUmakefile.am fusion-0.7.1-ppc64-devel/include/nucleus/asm-ppc64/GNUmakefile.am
@@ -0,0 +1,14 @@
+includedir = $(prefix)/include/nucleus/asm-ppc64
+
+include_HEADERS = \
+		atomic.h \
+		calibration.h \
+		hal.h \
+		system.h \
+		syscall.h \
+		uart.h
+
+install-data-local:
+	$(mkinstalldirs) $(DESTDIR)$(includedir)
+	rm -f $(DESTDIR)$(includedir)/../asm
+	$(LN_S) asm-ppc64 $(DESTDIR)$(includedir)/../asm
include/nucleus/asm-ppc64/GNUmakefile.in +513 -0

407 lines not on this page · raw message

include/nucleus/asm-ppc64/atomic.h +221 -0

221 lines not on this page · raw message

include/nucleus/asm-ppc64/calibration.h +45 -0

45 lines not on this page · raw message

include/nucleus/asm-ppc64/hal.h +406 -0

406 lines not on this page · raw message

include/nucleus/asm-ppc64/syscall.h +181 -0

181 lines not on this page · raw message

include/nucleus/asm-ppc64/system.h +968 -0

968 lines not on this page · raw message

include/nucleus/asm-ppc64/uart.h +35 -0
diff -Nru fusion-0.7.1/include/nucleus/asm-ppc64/uart.h fusion-0.7.1-ppc64-devel/include/nucleus/asm-ppc64/uart.h

Lines of this file are not shown. View the raw message.

skins/rtai/lib/queue.c +1 -1
diff -Nru fusion-0.7.1/skins/rtai/lib/queue.c fusion-0.7.1-ppc64-devel/skins/rtai/lib/queue.c

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

adeos/generic.c +639 -0

639 lines not on this page · raw message

adeos/Kconfig +37 -0
diff -Nru linux-2.6.10/adeos/Kconfig linux-2.6.10-adeos-ppc64-devel/adeos/Kconfig

Lines of this file are not shown. View the raw message.

adeos/Makefile +15 -0
diff -Nru linux-2.6.10/adeos/Makefile linux-2.6.10-adeos-ppc64-devel/adeos/Makefile

Lines of this file are not shown. View the raw message.

adeos/ppc64.c +527 -0

527 lines not on this page · raw message

arch/ppc64/Kconfig +2 -0
diff -Nru linux-2.6.10/arch/ppc64/Kconfig linux-2.6.10-adeos-ppc64-devel/arch/ppc64/Kconfig

Lines of this file are not shown. View the raw message.

arch/ppc64/kernel/adeos.c +671 -0

671 lines not on this page · raw message

arch/ppc64/kernel/entry.S +187 -1

188 lines not on this page · raw message

arch/ppc64/kernel/head.S +22 -0
diff -Nru linux-2.6.10/arch/ppc64/kernel/head.S linux-2.6.10-adeos-ppc64-devel/arch/ppc64/kernel/head.S

Lines of this file are not shown. View the raw message.

arch/ppc64/kernel/idle.c +11 -1
diff -Nru linux-2.6.10/arch/ppc64/kernel/idle.c linux-2.6.10-adeos-ppc64-devel/arch/ppc64/kernel/idle.c

Lines of this file are not shown. View the raw message.

arch/ppc64/kernel/irq.c +11 -0
diff -Nru linux-2.6.10/arch/ppc64/kernel/irq.c linux-2.6.10-adeos-ppc64-devel/arch/ppc64/kernel/irq.c

Lines of this file are not shown. View the raw message.

arch/ppc64/kernel/Makefile +2 -0
diff -Nru linux-2.6.10/arch/ppc64/kernel/Makefile linux-2.6.10-adeos-ppc64-devel/arch/ppc64/kernel/Makefile

Lines of this file are not shown. View the raw message.

arch/ppc64/kernel/ppc_ksyms.c +29 -0
diff -Nru linux-2.6.10/arch/ppc64/kernel/ppc_ksyms.c linux-2.6.10-adeos-ppc64-devel/arch/ppc64/kernel/ppc_ksyms.c

Lines of this file are not shown. View the raw message.

arch/ppc64/kernel/traps.c +67 -2

69 lines not on this page · raw message

arch/ppc64/mm/fault.c +6 -0
diff -Nru linux-2.6.10/arch/ppc64/mm/fault.c linux-2.6.10-adeos-ppc64-devel/arch/ppc64/mm/fault.c

Lines of this file are not shown. View the raw message.

Documentation/adeos.txt +176 -0

176 lines not on this page · raw message

include/asm-ppc64/adeos.h +437 -0

437 lines not on this page · raw message

include/asm-ppc64/hw_irq.h +33 -0
diff -Nru linux-2.6.10/include/asm-ppc64/hw_irq.h linux-2.6.10-adeos-ppc64-devel/include/asm-ppc64/hw_irq.h

Lines of this file are not shown. View the raw message.

include/asm-ppc64/smp.h +5 -1
diff -Nru linux-2.6.10/include/asm-ppc64/smp.h linux-2.6.10-adeos-ppc64-devel/include/asm-ppc64/smp.h

Lines of this file are not shown. View the raw message.

include/linux/adeos.h +518 -0

518 lines not on this page · raw message

include/linux/init_task.h +55 -0

55 lines not on this page · raw message

include/linux/preempt.h +43 -0

43 lines not on this page · raw message

include/linux/sched.h +7 -0
diff -Nru linux-2.6.10/include/linux/sched.h linux-2.6.10-adeos-ppc64-devel/include/linux/sched.h

Lines of this file are not shown. View the raw message.

init/main.c +10 -0
diff -Nru linux-2.6.10/init/main.c linux-2.6.10-adeos-ppc64-devel/init/main.c

Lines of this file are not shown. View the raw message.

kernel/adeos.c +800 -0

800 lines not on this page · raw message

kernel/exit.c +3 -0
diff -Nru linux-2.6.10/kernel/exit.c linux-2.6.10-adeos-ppc64-devel/kernel/exit.c

Lines of this file are not shown. View the raw message.

kernel/fork.c +8 -0
diff -Nru linux-2.6.10/kernel/fork.c linux-2.6.10-adeos-ppc64-devel/kernel/fork.c

Lines of this file are not shown. View the raw message.

kernel/Makefile +1 -0
diff -Nru linux-2.6.10/kernel/Makefile linux-2.6.10-adeos-ppc64-devel/kernel/Makefile

Lines of this file are not shown. View the raw message.

kernel/panic.c +3 -0
diff -Nru linux-2.6.10/kernel/panic.c linux-2.6.10-adeos-ppc64-devel/kernel/panic.c

Lines of this file are not shown. View the raw message.

kernel/printk.c +67 -1

68 lines not on this page · raw message

kernel/sched.c +92 -1

93 lines not on this page · raw message

kernel/signal.c +18 -0
diff -Nru linux-2.6.10/kernel/signal.c linux-2.6.10-adeos-ppc64-devel/kernel/signal.c

Lines of this file are not shown. View the raw message.

kernel/sysctl.c +3 -0
diff -Nru linux-2.6.10/kernel/sysctl.c linux-2.6.10-adeos-ppc64-devel/kernel/sysctl.c

Lines of this file are not shown. View the raw message.

Makefile +4 -2
diff -Nru linux-2.6.10/Makefile linux-2.6.10-adeos-ppc64-devel/Makefile

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.