We have the following nice rule in arch/x86/Makefile
$(obj)/arch/x86/%/stage0.o: $(src)/arch/x86/%/stage0.S $(src)/arch/x86/stage0_common.S $(Q)mkdir -p $(dir $@) $(Q)printf " CC $(subst $(shell pwd)/,,$(@))\n" $(Q)$(CC) -E $(COREBOOTINCLUDE) $< \ -o $(obj)/arch/x86/stage0_asm.s -DBOOTBLK=0x1f00 \ -DRESRVED=0xf0 -DDATE="`date +%Y/%m/%d`" $(Q)printf " AS $(subst $(shell pwd)/,,$(@))\n" $(Q)$(AS) $(obj)/arch/x86/stage0_asm.s -o $@
RESRVED is never used although arch/x86/stage0_common.S says it refers to the area reserved for VPD. However, we prepend the VPD to stage0.init without any linker magic. Are there two different meanings of VPD?
Can someone please explain this?
Regards. Carl-Daniel