summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2019-03-05 15:56:39 +0800
committerAngel Pons <th3fanbus@gmail.com>2020-04-16 10:15:07 +0000
commitb95a1a4ea0fa465c80a411e10bff8735edae050a (patch)
tree5a59de87344c09782c26f0da04c7c4e1396e37ea /util
parent11278dbabeefe33acd8a796359de1e08e655dc8b (diff)
downloadcoreboot-b95a1a4ea0fa465c80a411e10bff8735edae050a.tar.gz
coreboot-b95a1a4ea0fa465c80a411e10bff8735edae050a.tar.bz2
coreboot-b95a1a4ea0fa465c80a411e10bff8735edae050a.zip
autoport: Support bigger ACPI tables
DSDT can be bigger than 0x10000 bytes, so increase the space up to 1MB for an ACPI table and support lines in acpidump.log with address higher than 0x10000. Change-Id: Iaadcfd0964c1c516e9e39d6cbfe41ec9a8c45e9d Signed-off-by: Iru Cai <mytbk920423@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/31759 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/autoport/log_reader.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/autoport/log_reader.go b/util/autoport/log_reader.go
index d9a687ad4292..0aaf6a9db370 100644
--- a/util/autoport/log_reader.go
+++ b/util/autoport/log_reader.go
@@ -107,12 +107,12 @@ func (l *LogDevReader) GetACPI() (Tables map[string][]byte) {
curTable := ""
for scanner.Scan() {
line := scanner.Text()
- /* Only supports ACPI tables up to 0x10000 in size, FIXME if needed */
- is_hexline, _ := regexp.MatchString(" *[0-9A-Fa-f]{4}: ", line)
+ /* Only supports ACPI tables up to 0x100000 in size, FIXME if needed */
+ is_hexline, _ := regexp.MatchString(" *[0-9A-Fa-f]{4,5}: ", line)
switch {
case len(line) >= 6 && line[5] == '@':
curTable = line[0:4]
- Tables[curTable] = make([]byte, 0, 100000)
+ Tables[curTable] = make([]byte, 0, 0x100000)
case is_hexline:
Tables[curTable] = l.AssignHexLine(line, Tables[curTable])
}