acpi/fadt: Make sure that SCI IRQ is valid
[dragonfly.git] / sys / platform / pc64 / acpica5 / genwakecode.sh
CommitLineData
e774ca6d
MD
1#!/bin/sh
2# $FreeBSD: src/sys/i386/acpica/genwakecode.sh,v 1.1 2002/05/01 21:52:34 peter Exp $
3# $DragonFly: src/sys/platform/pc32/acpica5/genwakecode.sh,v 1.1 2004/02/21 06:48:05 dillon Exp $
4#
5echo "/* generated from `pwd`/acpi_wakecode.o */"
6echo 'static char wakecode[] = {';
58d914a3
SS
7hexdump -bv acpi_wakecode.bin | \
8 sed -e 's/^[0-9a-f][0-9a-f]*//' -e 's/\([[:digit:]]\{1,\}\) */0\1,/g'
e774ca6d
MD
9echo '};'
10
11nm -n acpi_wakecode.o | while read offset dummy what
12do
13 echo "#define ${what} 0x${offset}"
14done
15
16exit 0