aboutsummaryrefslogblamecommitdiff
path: root/sys/i386/acpica/genwakecode.sh
blob: caffbf8642ae28f19f008e37850d58a432aca999 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


           
                                                           
 
                                                                   




                                            
#!/bin/sh
# $FreeBSD$
#
file2c 'static char wakecode[] = {' '};' <acpi_wakecode.bin

nm -n --defined-only acpi_wakecode.o | while read offset dummy what
do
    echo "#define ${what}	0x${offset}"
done

exit 0