summaryrefslogtreecommitdiffstats
path: root/sbe/sbefw
diff options
context:
space:
mode:
authorDoug Gilbert <dgilbert@us.ibm.com>2015-12-08 15:42:19 -0600
committerAmit J. Tendolkar <amit.tendolkar@in.ibm.com>2016-01-11 03:44:44 -0600
commit66bbad3a702f45a73059384d8c2c98626c6d61d6 (patch)
treec03df8f94ba96a672172144a867823f3a777211b /sbe/sbefw
parenta00b0aaf1e517643aa6701df77a40affb8b8e947 (diff)
downloadtalos-sbe-66bbad3a702f45a73059384d8c2c98626c6d61d6.tar.gz
talos-sbe-66bbad3a702f45a73059384d8c2c98626c6d61d6.zip
Modifications for using pp42 compiler
Change-Id: I5b28197d82df7f5fce5f9f8baac170a4af12e13d Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22552 Tested-by: Jenkins Server Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Basabjit Sengupta <basengup@in.ibm.com> Reviewed-by: Amit J. Tendolkar <amit.tendolkar@in.ibm.com>
Diffstat (limited to 'sbe/sbefw')
-rw-r--r--sbe/sbefw/Makefile2
-rw-r--r--sbe/sbefw/pool.H2
-rw-r--r--sbe/sbefw/sbeFifoMsgUtils.C3
3 files changed, 4 insertions, 3 deletions
diff --git a/sbe/sbefw/Makefile b/sbe/sbefw/Makefile
index 86214956..d0ecafeb 100644
--- a/sbe/sbefw/Makefile
+++ b/sbe/sbefw/Makefile
@@ -1,4 +1,4 @@
-export P2P_ENABLE = 1
+#export P2P_ENABLE = 1
export SUB_OBJDIR = /sbefw
diff --git a/sbe/sbefw/pool.H b/sbe/sbefw/pool.H
index 7fc7f26a..19ec295e 100644
--- a/sbe/sbefw/pool.H
+++ b/sbe/sbefw/pool.H
@@ -18,7 +18,7 @@ static const size_t G_POOLSIZE = 8;
typedef struct
{
size_t refCount;
- uint8_t data[G_BLOCKSIZE];
+ uint8_t data[G_BLOCKSIZE] __attribute__ ((aligned (8)));
}vectorMemPool_t;
/**
diff --git a/sbe/sbefw/sbeFifoMsgUtils.C b/sbe/sbefw/sbeFifoMsgUtils.C
index b02b9e15..317c9c3f 100644
--- a/sbe/sbefw/sbeFifoMsgUtils.C
+++ b/sbe/sbefw/sbeFifoMsgUtils.C
@@ -190,7 +190,8 @@ uint32_t sbeDownFifoEnq_mult (uint32_t &io_len,
l_data.fifo_data);
// Write the data into the downstream FIFO
- l_rc = sbeDownFifoEnq ( *(reinterpret_cast<uint64_t*>(&l_data)) );
+ uint64_t * tp = reinterpret_cast<uint64_t*>(&l_data);
+ l_rc = sbeDownFifoEnq ( *tp );
if (l_rc)
{
SBE_ERROR(SBE_FUNC"sbeDownFifoEnq failed, "
OpenPOWER on IntegriCloud