Home
last modified time | relevance | path

Searched hist:"2 fac89d1267e81e1f4bf0eacf9ea8dbacf80aacb" (Results 1 – 1 of 1) sorted by relevance

/rk3399_ARM-atf/drivers/partition/
H A Dpartition.c2fac89d1267e81e1f4bf0eacf9ea8dbacf80aacb Thu Sep 26 13:53:32 UTC 2024 Bogdan Roman <bogdan-gabriel.roman@nxp.com> fix(guid-partition): fix MBR header load

In the case of GPT, the UEFI specification requires that the PMBR
(Protective MBR) partition table contain one partition record, which
starts at LBA 1, containing the GPT Header. Hence, the field 'first_lba'
of the first partition table entry of the PMBR should always be set to 1
when GPT is used. However, this is not the case for plain MBR.

The function load_mbr_header() should also work for plain MBR
partitioning, so the check 'if (tmp.first_lba != 1)' has been relocated.

Change-Id: Iad990e61b2186c21f942537dfd140ed0e023ac4c
Signed-off-by: Bogdan Roman <bogdan-gabriel.roman@nxp.com>
Signed-off-by: Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com>