diff options
author | Andy Fiddaman <omnios@citrus-it.co.uk> | 2021-06-21 13:44:28 +0000 |
---|---|---|
committer | Andy Fiddaman <omnios@citrus-it.co.uk> | 2021-06-23 22:05:39 +0000 |
commit | ada023d26fbb04273c643d7c7fade1b24da764fb (patch) | |
tree | 052f64e0e72a3cc7e72bd4389a56793a09183216 /usr/src/common/ucode/ucode_utils.c | |
parent | fa9eb22261c7b7a35c7a6957acb3c2b26c39e15b (diff) | |
download | illumos-joyent-ada023d26fbb04273c643d7c7fade1b24da764fb.tar.gz |
13891 ucodeadm cannot handle latest Intel microcode
Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/common/ucode/ucode_utils.c')
-rw-r--r-- | usr/src/common/ucode/ucode_utils.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 <sys/types.h> @@ -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; } |