summaryrefslogtreecommitdiffstats
path: root/src/kernel/basesegment.C
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2011-09-12 10:22:02 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2011-09-14 13:28:46 -0500
commitdbc9dc228c879efbd86df3d655990c21df8d9a8f (patch)
treed756babb6c4a876906718a214c969e31c03d1e9a /src/kernel/basesegment.C
parentb06c8727c809ec10aafe8fad0b929626f9d50987 (diff)
downloadtalos-hostboot-dbc9dc228c879efbd86df3d655990c21df8d9a8f.tar.gz
talos-hostboot-dbc9dc228c879efbd86df3d655990c21df8d9a8f.zip
Centralizing a few of the memory-related constants to avoid some
redundancies and also to have a single place to update the memory map if needed. See Task 3507. Change-Id: I8f2d632983abe6d6798784e975cd93057018594b Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/330 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/kernel/basesegment.C')
-rw-r--r--src/kernel/basesegment.C5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/kernel/basesegment.C b/src/kernel/basesegment.C
index 2c5b73c19..fc053f856 100644
--- a/src/kernel/basesegment.C
+++ b/src/kernel/basesegment.C
@@ -31,7 +31,6 @@
#include <kernel/vmmmgr.H>
#include <kernel/cpuid.H>
-#define SLBE_s 40
BaseSegment::~BaseSegment()
{
@@ -54,12 +53,12 @@ void BaseSegment::_init()
case CORE_POWER7:
case CORE_POWER7_PLUS:
case CORE_POWER8_VENICE:
- iv_physMemSize = VmmManager::EIGHT_MEG;
+ iv_physMemSize = (8*MEGABYTE);
break;
case CORE_POWER8_SALERNO:
default:
- iv_physMemSize = VmmManager::FOUR_MEG;
+ iv_physMemSize = (4*MEGABYTE);
break;
}
// Base block is L3 cache physical memory size
OpenPOWER on IntegriCloud