summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-11-09 03:33:51 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2015-05-26 20:31:28 +0200
commit8104da771c579a092c576318509fe25df074f1ec (patch)
treef0afc09e324daf3ebe981b8a24f16831d831b240 /src/arch/x86
parente1213d16f38c7950b2c70dfccccbb8d9c08a0ee9 (diff)
downloadcoreboot-8104da771c579a092c576318509fe25df074f1ec.tar.xz
acpigen: Remove acpigen_patch_len
Change-Id: I77276342b3f44c7c845a10682ff1f15599c4c721 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/7365 Tested-by: build bot (Jenkins) Reviewed-by: Rudolf Marek <r.marek@assembler.cz>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/boot/acpigen.c13
-rw-r--r--src/arch/x86/include/arch/acpigen.h1
2 files changed, 1 insertions, 13 deletions
diff --git a/src/arch/x86/boot/acpigen.c b/src/arch/x86/boot/acpigen.c
index 0fb400e4eb..108d6c84eb 100644
--- a/src/arch/x86/boot/acpigen.c
+++ b/src/arch/x86/boot/acpigen.c
@@ -22,7 +22,7 @@
/*
* If you need to change this, change acpigen_write_f and
- * acpigen_patch_len
+ * acpigen_pop_len
*/
#define ACPIGEN_MAXLEN 0xfff
@@ -46,17 +46,6 @@ int acpigen_write_len_f(void)
return 2;
}
-void acpigen_patch_len(int len)
-{
- ASSERT(len <= ACPIGEN_MAXLEN)
- ASSERT(ltop > 0)
- char *p = len_stack[--ltop];
- /* generate store length for 0xfff max */
- p[0] = (0x40 | (len & 0xf));
- p[1] = (len >> 4 & 0xff);
-
-}
-
void acpigen_pop_len(void)
{
int len;
diff --git a/src/arch/x86/include/arch/acpigen.h b/src/arch/x86/include/arch/acpigen.h
index b84a979c7f..55bc87f8dc 100644
--- a/src/arch/x86/include/arch/acpigen.h
+++ b/src/arch/x86/include/arch/acpigen.h
@@ -26,7 +26,6 @@
#include <arch/acpi.h>
int acpigen_write_len_f(void);
-void acpigen_patch_len(int len);
void acpigen_pop_len(void);
void acpigen_set_current(char *curr);
char *acpigen_get_current(void);