From ada023d26fbb04273c643d7c7fade1b24da764fb Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Mon, 21 Jun 2021 13:44:28 +0000 Subject: 13891 ucodeadm cannot handle latest Intel microcode Reviewed by: Hans Rosenfeld Reviewed by: Toomas Soome Approved by: Dan McDonald --- usr/src/common/ucode/ucode_utils.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usr/src/common/ucode/ucode_utils.c') diff --git a/usr/src/common/ucode/ucode_utils.c b/usr/src/common/ucode/ucode_utils.c index 7721c5c310..ec3efa63ee 100644 --- a/usr/src/common/ucode/ucode_utils.c +++ b/usr/src/common/ucode/ucode_utils.c @@ -22,6 +22,8 @@ /* * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * + * Copyright 2021 OmniOS Community Edition (OmniOSce) Association. */ #include @@ -117,7 +119,6 @@ ucode_checksum_intel(uint32_t sum, uint32_t size, uint8_t *code) ucode_errno_t ucode_validate_amd(uint8_t *ucodep, int size) { - /* LINTED: pointer alignment */ uint32_t *ptr = (uint32_t *)ucodep; uint32_t count; @@ -138,7 +139,6 @@ ucode_validate_amd(uint8_t *ucodep, int size) if (((count = *ptr++) > size) || (count % 16)) return (EM_FILEFORMAT); - /* LINTED: pointer alignment */ ptr = (uint32_t *)(((uint8_t *)ptr) + count); size -= count; @@ -152,7 +152,6 @@ ucode_validate_amd(uint8_t *ucodep, int size) if (((count = *ptr++) > size)) return (EM_FILEFORMAT); - /* LINTED: pointer alignment */ ptr = (uint32_t *)(((uint8_t *)ptr) + count); size -= count; } -- cgit v1.2.3