Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
errldisplay: use table-driven display for HWPF error strings
Gcc generates space-inefficient code for giant switch statements and the existing display formatted encoded strings have much redundant data. Refactor the perl script to generate a static table output containg the string data plus lookup function and move the actual format strings to the display code itself. This saves ~300K for the hostboot extended image and allows the HWPF error string data to be used outside of just the console display object. Resolves #118 Signed-off-by: Robert Lippert <rlippert@google.com> Change-Id: Ifddc1cdb1789b4943a68590c169fcdf8206d2ffa Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48595 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
- Loading branch information
1 parent
7535501
commit fb8c267
Showing
3 changed files
with
169 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters