diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2023-02-09 16:29:46 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-02-10 18:27:53 +0000 |
commit | 178cf35098685fa2dc331d9e59dded379e8574bb (patch) | |
tree | 5164101e2d8be5712d6bb17ad2de0e87136f7b20 /src/acpi/acpigen.c | |
parent | 383a06ef8d567adb53f9c7031d711fcec32e7d0d (diff) |
acpi/acpigen: add acpigen_write_store_namestr_to_namestr
acpigen_write_rom open-codes this functionality, so add a function for
this.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ief25dd854d1639a295c021e9d02c05b4cc61109c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72936
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <inforichland@gmail.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/acpi/acpigen.c')
-rw-r--r-- | src/acpi/acpigen.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c index 8eea91c5f4..2479f58ef4 100644 --- a/src/acpi/acpigen.c +++ b/src/acpi/acpigen.c @@ -1385,6 +1385,14 @@ void acpigen_write_store_int_to_op(uint64_t src, uint8_t dst) acpigen_emit_byte(dst); } +/* Store ("namestr", "namestr") */ +void acpigen_write_store_namestr_to_namestr(const char *src, const char *dst) +{ + acpigen_write_store(); + acpigen_emit_namestring(src); + acpigen_emit_namestring(dst); +} + /* Or (arg1, arg2, res) */ void acpigen_write_or(uint8_t arg1, uint8_t arg2, uint8_t res) { |