summaryrefslogtreecommitdiffstats
path: root/pk/cme
diff options
context:
space:
mode:
Diffstat (limited to 'pk/cme')
-rw-r--r--pk/cme/Makefile50
-rw-r--r--pk/cme/cme.h22
-rw-r--r--pk/cme/cme_common.h57
-rw-r--r--pk/cme/cme_init.c25
-rw-r--r--pk/cme/pk_port.h16
-rw-r--r--pk/cme/pkcmefiles.mk33
6 files changed, 0 insertions, 203 deletions
diff --git a/pk/cme/Makefile b/pk/cme/Makefile
deleted file mode 100644
index 60c82c87..00000000
--- a/pk/cme/Makefile
+++ /dev/null
@@ -1,50 +0,0 @@
-# This Makefile compiles all of the PK code required for the CME 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 pkcmefiles.mk
-
-ifeq "$(PK_TIMER_SUPPORT)" "1"
-CME_OBJECTS += ${CME-TIMER-C-SOURCES:.c=.o} ${CME-TIMER-S-SOURCES:.S=.o}
-endif
-
-ifeq "$(PK_THREAD_SUPPORT)" "1"
-CME_OBJECTS += ${CME-THREAD-C-SOURCES:.c=.o} ${CME-THREAD-S-SOURCES:.S=.o}
-endif
-
-ifeq "$(CME_ASYNC_SUPPORT)" "1"
-CME_OBJECTS += ${CME-ASYNC-C-SOURCES:.c=.o} ${CME-ASYNC-S-SOURCES:.S=.o}
-endif
-
-OBJS := $(addprefix $(OBJDIR)/, $(CME_OBJECTS))
-
-libpk.a: kernel ppe42 trace cme
- $(AR) crs $(OBJDIR)/libpk.a $(OBJDIR)/*.o
-
-.PHONY: clean cme kernel ppe42 trace
-cme: $(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/cme/cme.h b/pk/cme/cme.h
deleted file mode 100644
index d789ff3b..00000000
--- a/pk/cme/cme.h
+++ /dev/null
@@ -1,22 +0,0 @@
-#ifndef __CME_H__
-#define __CME_H__
-//-----------------------------------------------------------------------------
-// *! (C) Copyright International Business Machines Corp. 2014
-// *! All Rights Reserved -- Property of IBM
-// *! *** IBM Confidential ***
-//-----------------------------------------------------------------------------
-
-/// \file pgp.h
-/// \brief The CME environment for PK.
-
-// This is a 'circular' reference in PK, but included here to simplify PGAS
-// programming.
-
-#ifndef HWMACRO_CME
-#define HWMACRO_CME
-#include "ppe42.h"
-#endif
-
-#include "cme_common.h"
-
-#endif /* __CME_H__ */
diff --git a/pk/cme/cme_common.h b/pk/cme/cme_common.h
deleted file mode 100644
index 23eb59ff..00000000
--- a/pk/cme/cme_common.h
+++ /dev/null
@@ -1,57 +0,0 @@
-#ifndef __CME_COMMON_H__
-#define __CME_COMMON_H__
-
-//-----------------------------------------------------------------------------
-// *! (C) Copyright International Business Machines Corp. 2014
-// *! All Rights Reserved -- Property of IBM
-// *! *** IBM Confidential ***
-//-----------------------------------------------------------------------------
-
-/// \file cme_common.h
-/// \brief Common header for CME
-///
-/// This header is maintained as part of the PK port for CME, 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, CME, GPE)
-#define EXTERNAL_IRQS 64
-
-#ifdef __ASSEMBLER__
-/// This macro contains CME specific code for determining what IRQ caused the
-/// external exception handler to be invoked by the PPE
-
-/// Load noncritical status 0 and the handler array base address. Check
-/// for interrupts pending in status register 0 while the IRQ is
-/// computed. The IRQ is expected to be stored in r3.
- .macro hwmacro_get_ext_irq
-
-#_lwzi %r4, %r4, OCB_ONISR0
- cntlzw %r3, %r4
- cmpwible %r3, 31, external_irq_found #branch if irq is lt or eq to 31
-
- ## No IRQ pending in interrupt set 0. Try set 1.
-
-#_lwzi %r4, %r4, OCB_ONISR1
- cntlzw %r3, %r4
- addi %r3, %r3, 32
-
- .endm
-
-/// Redirect the .hwmacro_irq_cfg_bitmaps macro to call our cme specific implementation
-/// This is called from the ppe42_exceptions.S file.
- .macro .hwmacro_irq_cfg_bitmaps
- .endm
-
-#endif /* __ASSEMBLER__ */
-
-#endif /* __CME_COMMON_H__ */
diff --git a/pk/cme/cme_init.c b/pk/cme/cme_init.c
deleted file mode 100644
index 3a0c3910..00000000
--- a/pk/cme/cme_init.c
+++ /dev/null
@@ -1,25 +0,0 @@
-//-----------------------------------------------------------------------------
-// *! (C) Copyright International Business Machines Corp. 2014
-// *! All Rights Reserved -- Property of IBM
-// *! *** IBM Confidential ***
-//-----------------------------------------------------------------------------
-
-/// \file cme_init.c
-/// \brief PK initialization for CME
-///
-/// 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"
-
-/// CME environment initial setup.
-///
-/// This is setup common to all CME HW Macro applications. This setup takes place
-/// during boot, before main() is called.
-
-void
-__hwmacro_setup(void)
-{
- //async_initialize();
-}
diff --git a/pk/cme/pk_port.h b/pk/cme/pk_port.h
deleted file mode 100644
index bf750d13..00000000
--- a/pk/cme/pk_port.h
+++ /dev/null
@@ -1,16 +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_CME
-
-#include "ppe42.h"
-
-#endif /* __PK_PORT_H__ */
diff --git a/pk/cme/pkcmefiles.mk b/pk/cme/pkcmefiles.mk
deleted file mode 100644
index 66b0e4fb..00000000
--- a/pk/cme/pkcmefiles.mk
+++ /dev/null
@@ -1,33 +0,0 @@
-# @file pkcmefiles.mk
-#
-# @brief mk for including cme object files
-#
-# @page ChangeLogs Change Logs
-# @section pkcmefiles.mk
-# @verbatim
-#
-#
-# Change Log ******************************************************************
-# Flag Defect/Feature User Date Description
-# ------ -------------- ---------- ------------ -----------
-#
-# @endverbatim
-#
-##########################################################################
-# Object Files
-##########################################################################
-
-CME-C-SOURCES = cme_init.c
-CME-S-SOURCES =
-
-CME-TIMER-C-SOURCES =
-CME-TIMER-S-SOURCES =
-
-CME-THREAD-C-SOURCES =
-CME-THREAD-S-SOURCES =
-
-CME-ASYNC-C-SOURCES =
-CME-ASYNC-S-SOURCES =
-
-CME_OBJECTS += $(CME-C-SOURCES:.c=.o) $(CME-S-SOURCES:.S=.o)
-
OpenPOWER on IntegriCloud