hw/nvram/fw_cfg: Add fw_cfg_arch_key_name()

Add fw_cfg_arch_key_name() which returns the name of
an architecture-specific key.

Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20190422195020.1494-3-philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
Philippe Mathieu-Daudé 2019-04-22 15:49:41 +02:00
parent 1f80b0d67e
commit b15c0f7d55
5 changed files with 38 additions and 1 deletions

View file

@ -100,7 +100,7 @@ static const char *key_name(uint16_t key)
};
if (key & FW_CFG_ARCH_LOCAL) {
return NULL;
return fw_cfg_arch_key_name(key);
}
if (key < FW_CFG_FILE_FIRST) {
return fw_cfg_wellknown_keys[key];