[coreboot] [PATCH] remove namestring trickery

Rudolf Marek r.marek at assembler.cz
Sat Jun 20 15:36:13 CEST 2009


Hello,

The  namestring handling in ACPIgen was a big trickery. We were pasing the 
strings as it was a bytestream already. This was a reason for instead of
_PR one had to write _PR_

Or \_SB.PCI0 was in fact \_SB_PCI0.

This patch adds a proper namestring generation to our ACPIgen generator.
Its used for Name and Scope and Processor now. As bonus, it allows to create a 
multi name paths too. Like Scope(\ALL.YOUR.BASE).

Signed-off-by: Rudolf Marek <r.marek at assembler.cz>

I have no board now, so I cannot test it on real HW. I did some tests which a 
ACPIgen testbench which I'm attaching for future reference.

I dont know what happen to fam10 code, but I think it will need similar change.

Rudolf

-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove_namestring_magic.patch
Type: text/x-diff
Size: 5069 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090620/6346dad1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gen_k8info.c
Type: text/x-csrc
Size: 2424 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090620/6346dad1/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.c
Type: text/x-csrc
Size: 1524 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20090620/6346dad1/attachment-0001.c>


More information about the coreboot mailing list