[SLOF] [PATCH v3 11/17] Measure the static core root of trust for measurements

Stefan Berger stefanb at linux.vnet.ibm.com
Sat Mar 5 02:18:29 AEDT 2016


On 03/03/2016 10:46 PM, Hon c Lo wrote:
>
> Hi Stefan,
>
> >  }
> >
> > +uint32_t tpm_measure_scrtm(void)
> > +{
> > +   uint32_t rc;
> > +
> > +   extern long print_version, print_version_end;
> > +   extern long _slof_data, _slof_data_end;
> > +
> How are we getting the storage of all these variables declared?  Base 
> on the C codes alone, there is no memory allocated with the 'extern' 
> keywords used here and I expected compiler errors on the following 4 
> lines of code for referencing them.
>

print_version and print_version_end are defined in board-qemu/slof/version.S

_slof_data and _slof_data_end are defined in slof/OF.lds

    Stefan



More information about the SLOF mailing list