summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/build/security/securityRegListGen.py10
-rw-r--r--src/sbefw/core/sbeSecurity.H5
2 files changed, 8 insertions, 7 deletions
diff --git a/src/build/security/securityRegListGen.py b/src/build/security/securityRegListGen.py
index a593a976..75316b21 100644
--- a/src/build/security/securityRegListGen.py
+++ b/src/build/security/securityRegListGen.py
@@ -5,7 +5,7 @@
#
# OpenPOWER sbe Project
#
-# Contributors Listed Below - COPYRIGHT 2017
+# Contributors Listed Below - COPYRIGHT 2017,2018
# [+] International Business Machines Corp.
#
#
@@ -100,7 +100,7 @@ def gen_file(whitelist_tables, blacklist_tables):
table1_index_type = "uint8_t"
# table 2 value and running count type
table2_value_type = "uint8_t"
- table2_index_type = "uint8_t"
+ table2_index_type = "uint16_t"
# table 3 value type
table3_value_type = "uint16_t"
for namespace, tablename, table in tables:
@@ -135,9 +135,9 @@ namespace """+namespace+"""
then table 1 will have a = 1, b = 1, c = 4
1 byte for key
- 1 byte for number of paths
- We are good with uint8_t,
- till the number of paths to table 3 from each key is less than 256
+ 2 byte for number of paths
+ We are good with uint16_t,
+ till the number of paths to table 3 from each key is less than 65536
*/
map_t< """+table2_value_type+""", """+table2_index_type+""" > _t2[] = {
// length of the table = """+s_list_len(table[1])+"""
diff --git a/src/sbefw/core/sbeSecurity.H b/src/sbefw/core/sbeSecurity.H
index 3d7ad838..f9aa627f 100644
--- a/src/sbefw/core/sbeSecurity.H
+++ b/src/sbefw/core/sbeSecurity.H
@@ -5,7 +5,8 @@
/* */
/* OpenPOWER sbe Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2017 */
+/* Contributors Listed Below - COPYRIGHT 2017,2018 */
+/* [+] International Business Machines Corp. */
/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
@@ -54,7 +55,7 @@ namespace SBE_SECURITY
template <typename T>
struct table
{
- uint8_t size;
+ uint32_t size;
uint32_t mask;
T *table;
};
OpenPOWER on IntegriCloud