diff options
Diffstat (limited to 'usr/src/uts/common/sys/ucode.h')
-rw-r--r-- | usr/src/uts/common/sys/ucode.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/src/uts/common/sys/ucode.h b/usr/src/uts/common/sys/ucode.h index 7d2af4711a..3c5dd6e989 100644 --- a/usr/src/uts/common/sys/ucode.h +++ b/usr/src/uts/common/sys/ucode.h @@ -24,6 +24,7 @@ * * Copyright 2021 OmniOS Community Edition (OmniOSce) Association. * Copyright 2022 Joyent, Inc. + * Copyright 2022 Oxide Computer Company */ #ifndef _SYS_UCODE_H @@ -114,12 +115,17 @@ typedef struct ucode_header_amd { typedef struct ucode_file_amd { #ifndef __xpv + /* + * The combined size of these fields adds up to 8KiB (8192 bytes). + * If support is needed for larger update files, increase the size of + * the uf_encr element. + */ ucode_header_amd_t uf_header; uint8_t uf_data[896]; uint8_t uf_resv[896]; uint8_t uf_code_present; uint8_t uf_code[191]; - uint8_t uf_encr[2048]; + uint8_t uf_encr[6144]; #else uint8_t *ucodep; uint32_t usize; |