diff options
author | Eric Richter <erichte@linux.vnet.ibm.com> | 2020-09-16 11:21:18 -0500 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2020-10-01 13:44:06 +1000 |
commit | 262f5e883eff64486c627c82fab08887e382f615 (patch) | |
tree | fcee1b70a7dde004b6b6416f5e91b2cb1a768c9f /doc/pci.rst | |
parent | f356c0671e5d99775ccde2e2b7f621f5fd0ea6d6 (diff) | |
download | skiboot-262f5e883eff64486c627c82fab08887e382f615.zip skiboot-262f5e883eff64486c627c82fab08887e382f615.tar.gz skiboot-262f5e883eff64486c627c82fab08887e382f615.tar.bz2 |
secvar: overhaul secvar struct by removing static sized fields
Originally, the secvar struct was intended to contain all the variable
information seperate from the linked list/etc metadata, so that copying
and serialization/deserialization could be handled by a single memcpy().
This is fragile, potentially compiler dependent, and doesn't account for
endianness. Therefore, this patch removes the static allocation for key, now
allocates a buffer for data, and completely removes the now unnecessary
secvar_node struct.
As a side effect, some of the secvar_util functionality has been tweaked where
it makes sense. Most notably alloc_secvar now takes in an extra argument as it
now has to allocate the key
Signed-off-by: Eric Richter <erichte@linux.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'doc/pci.rst')
0 files changed, 0 insertions, 0 deletions