Print this page
10570 Need workaround to EFI boot on AMI BIOS
@@ -22,10 +22,11 @@
/*
* Copyright 2012 DEY Storage Systems, Inc. All rights reserved.
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
* Copyright 2016 Toomas Soome <tsoome@me.com>
+ * Copyright (c) 2019, Joyent, Inc.
*/
/*
* This module provides support for labeling operations for target
* drivers.
@@ -2745,11 +2746,11 @@
static int
cmlb_validate_efi(efi_gpt_t *labp)
{
if (labp->efi_gpt_Signature != EFI_SIGNATURE)
return (EINVAL);
- /* at least 96 bytes in this version of the spec. */
+ /* at least 92 bytes in this version of the spec. */
if (sizeof (efi_gpt_t) - sizeof (labp->efi_gpt_Reserved2) >
labp->efi_gpt_HeaderSize)
return (EINVAL);
/* this should be 128 bytes */
if (labp->efi_gpt_SizeOfPartitionEntry != sizeof (efi_gpe_t))