[SLOF] [PATCH 10/16] Implement measurements of the master boot record
stefanb at linux.vnet.ibm.com
Fri Nov 13 23:10:50 AEDT 2015
On 11/12/2015 03:09 AM, Segher Boessenkool wrote:
> On Thu, Nov 12, 2015 at 08:17:37AM +0100, Thomas Huth wrote:
>>>>> --- a/slof/fs/packages/disk-label.fs
>>>>> +++ b/slof/fs/packages/disk-label.fs
>>>>> @@ -545,7 +545,11 @@ B9E5 CONSTANT
>>>>> \ load from a bootable partition
>>>>> : load-from-boot-partition ( addr -- size )
>>>>> debug-disk-label? IF ." Trying DOS boot " .s cr THEN
>>>>> - dup load-from-dos-boot-partition ?dup 0 <> IF nip EXIT THEN
>>>>> + dup load-from-dos-boot-partition ?dup 0 <> IF
>>>>> + nip
>>>>> + 80 block 200 vtpm-add-bcv
>>>> what does 80 mean ?
>>> Ah, cannot drop the bcv function...
>> ... if you use something like this (untested):
>> s" 80 block 200 vtpm-add-bcv" ['] evaluate CATCH drop
>> Yes, Forth is fun! :-)
I changed the above to call vtpm-measure-hdd-mbr called with only the
'block' parameter. The implementation of that function then calls the
C-code with the two additional parameters.
More information about the SLOF