diff options
Diffstat (limited to 'pk/ppe')
-rw-r--r-- | pk/ppe/Makefile | 50 | ||||
-rw-r--r-- | pk/ppe/pk_port.h | 17 | ||||
-rw-r--r-- | pk/ppe/pkppefiles.mk | 33 | ||||
-rw-r--r-- | pk/ppe/ppe.h | 22 | ||||
-rw-r--r-- | pk/ppe/ppe_common.h | 49 | ||||
-rw-r--r-- | pk/ppe/ppe_init.c | 25 | ||||
-rw-r--r-- | pk/ppe/ppe_timebase.h | 28 |
7 files changed, 0 insertions, 224 deletions
diff --git a/pk/ppe/Makefile b/pk/ppe/Makefile deleted file mode 100644 index 833dbfdf..00000000 --- a/pk/ppe/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -# This Makefile compiles all of the PK code required for the PPE port -# of PK. See the "pk.mk" file in this directory. - -#all generated files from this makefile will end up in obj/$(IMAGE_NAME)/pk -export SUB_OBJDIR = /pk - -include img_defs.mk -include pkppefiles.mk - -ifeq "$(PK_TIMER_SUPPORT)" "1" -PPE_OBJECTS += ${PPE-TIMER-C-SOURCES:.c=.o} ${PPE-TIMER-S-SOURCES:.S=.o} -endif - -ifeq "$(PK_THREAD_SUPPORT)" "1" -PPE_OBJECTS += ${PPE-THREAD-C-SOURCES:.c=.o} ${PPE-THREAD-S-SOURCES:.S=.o} -endif - -ifeq "$(PPE_ASYNC_SUPPORT)" "1" -PPE_OBJECTS += ${PPE-ASYNC-C-SOURCES:.c=.o} ${PPE-ASYNC-S-SOURCES:.S=.o} -endif - -OBJS := $(addprefix $(OBJDIR)/, $(PPE_OBJECTS)) - -libpk.a: kernel ppe42 trace ppe - $(AR) crs $(OBJDIR)/libpk.a $(OBJDIR)/*.o - -.PHONY: clean ppe kernel ppe42 trace -ppe: $(OBJS) - -trace: - $(MAKE) -I $(IMAGE_SRCDIR) -C ../trace - -kernel: - $(MAKE) -I $(IMAGE_SRCDIR) -C ../kernel - -ppe42: - $(MAKE) -I $(IMAGE_SRCDIR) -C ../ppe42 - - -$(OBJS) $(OBJS:.o=.d): | $(OBJDIR) - -$(OBJDIR): - mkdir -p $(OBJDIR) - -clean: - rm -fr $(OBJDIR) - -ifneq ($(MAKECMDGOALS),clean) -include $(OBJS:.o=.d) -endif diff --git a/pk/ppe/pk_port.h b/pk/ppe/pk_port.h deleted file mode 100644 index b88078f2..00000000 --- a/pk/ppe/pk_port.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef __PK_PORT_H__ -#define __PK_PORT_H__ -//----------------------------------------------------------------------------- -// *! (C) Copyright International Business Machines Corp. 2014 -// *! All Rights Reserved -- Property of IBM -// *! *** IBM Confidential *** -//----------------------------------------------------------------------------- - -/// \file pk_port.h -/// \brief The top-level CME environment header for PK. - -#define HWMACRO_PPE - -#include "ppe42.h" -#include "ppe_timebase.h" - -#endif /* __PK_PORT_H__ */ diff --git a/pk/ppe/pkppefiles.mk b/pk/ppe/pkppefiles.mk deleted file mode 100644 index 79b7baae..00000000 --- a/pk/ppe/pkppefiles.mk +++ /dev/null @@ -1,33 +0,0 @@ -# @file pkppefiles.mk -# -# @brief mk for including ppe object files -# -# @page ChangeLogs Change Logs -# @section pkppefiles.mk -# @verbatim -# -# -# Change Log ****************************************************************** -# Flag Defect/Feature User Date Description -# ------ -------------- ---------- ------------ ----------- -# -# @endverbatim -# -########################################################################## -# Object Files -########################################################################## - -PPE-C-SOURCES = ppe_init.c -PPE-S-SOURCES = - -PPE-TIMER-C-SOURCES = -PPE-TIMER-S-SOURCES = - -PPE-THREAD-C-SOURCES = -PPE-THREAD-S-SOURCES = - -PPE-ASYNC-C-SOURCES = -PPE-ASYNC-S-SOURCES = - -PPE_OBJECTS += $(PPE-C-SOURCES:.c=.o) $(PPE-S-SOURCES:.S=.o) - diff --git a/pk/ppe/ppe.h b/pk/ppe/ppe.h deleted file mode 100644 index 05df6a61..00000000 --- a/pk/ppe/ppe.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef __PPE_H__ -#define __PPE_H__ -//----------------------------------------------------------------------------- -// *! (C) Copyright International Business Machines Corp. 2014 -// *! All Rights Reserved -- Property of IBM -// *! *** IBM Confidential *** -//----------------------------------------------------------------------------- - -/// \file pgp.h -/// \brief The PPE environment for PK. - -// This is a 'circular' reference in PK, but included here to simplify PGAS -// programming. - -#ifndef HWMACRO_PPE -#define HWMACRO_PPE -#include "ppe42.h" -#endif - -#include "ppe_common.h" - -#endif /* __PPE_H__ */ diff --git a/pk/ppe/ppe_common.h b/pk/ppe/ppe_common.h deleted file mode 100644 index c7df60bd..00000000 --- a/pk/ppe/ppe_common.h +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef __PPE_COMMON_H__ -#define __PPE_COMMON_H__ - -//----------------------------------------------------------------------------- -// *! (C) Copyright International Business Machines Corp. 2014 -// *! All Rights Reserved -- Property of IBM -// *! *** IBM Confidential *** -//----------------------------------------------------------------------------- - -/// \file ppe_common.h -/// \brief Common header for PPE -/// -/// This header is maintained as part of the PK port for PPE, but needs to be -/// physically present in the PMX area to allow dropping PMX code as a whole -/// to other teams. - -// -*- WARNING: This file is maintained as part of PK. Do not edit in -*- -// -*- the PMX area as your edits will be lost. -*- - -#ifndef __ASSEMBLER__ -#include <stdint.h> -#endif - -/// This constant is used to define the size of the table of interrupt handler -/// structures as well as a limit for error checking. -/// NOTE: This can be specific to each PPE type (SBE, PPE, GPE) -#define EXTERNAL_IRQS 64 - -#ifdef __ASSEMBLER__ -/// This macro contains PPE specific code. -/// Since standalone models of the PPE do not support external interrupts -/// we just set the code to 64 (phantom interrupt) - .macro hwmacro_get_ext_irq - - li %r4, 64 - - .endm - -/// Redirect the .hwmacro_irq_cfg_bitmaps macro to call our ppe specific implementation -/// This is called from the ppe42_exceptions.S file. -/// NOTE: The standalone version of PPE doesn't support external interrupts so this -/// does nothing. - .macro .hwmacro_irq_cfg_bitmaps - .endm - - -#endif /* __ASSEMBLER__ */ - -#endif /* __PPE_COMMON_H__ */ diff --git a/pk/ppe/ppe_init.c b/pk/ppe/ppe_init.c deleted file mode 100644 index 09feea67..00000000 --- a/pk/ppe/ppe_init.c +++ /dev/null @@ -1,25 +0,0 @@ -//----------------------------------------------------------------------------- -// *! (C) Copyright International Business Machines Corp. 2014 -// *! All Rights Reserved -- Property of IBM -// *! *** IBM Confidential *** -//----------------------------------------------------------------------------- - -/// \file ppe_init.c -/// \brief PK initialization for PPE -/// -/// The entry points in this routine are used during initialization. This -/// code space can be deallocated and reassigned after application -/// initialization if required. - -#include "pk.h" - -/// PPE environment initial setup. -/// -/// This is setup common to all PPE HW Macro applications. This setup takes place -/// during boot, before main() is called. - -void -__hwmacro_setup(void) -{ - //async_initialize(); -} diff --git a/pk/ppe/ppe_timebase.h b/pk/ppe/ppe_timebase.h deleted file mode 100644 index 45da0080..00000000 --- a/pk/ppe/ppe_timebase.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef __PPE_TIMEBASE_H__ -#define __PPE_TIMEBASE_H__ - -//----------------------------------------------------------------------------- -// *! (C) Copyright International Business Machines Corp. 2015 -// *! All Rights Reserved -- Property of IBM -// *! *** IBM Confidential *** -//----------------------------------------------------------------------------- - -/// \file ppe_timebase.h -/// \brief support for using the OCB 32 bit timebase register -/// - -#include "pk.h" - -//The timebase register will never be supported in the base ppe model -#ifdef APPCFG_USE_EXT_TIMEBASE -#error "External timebase is not supported on the PPE standalone model" -#endif /* APPCFG_USE_EXT_TIMEBASE */ - -#ifndef __ASSEMBLER__ - -//assembly function is defined in ppe42_timebase.S -uint32_t pk_timebase32_get(void); - -#endif /* __ASSEMBLER__ */ - -#endif /* __PPE_TIMEBASE_H__ */ |