kernel: load cpu microcode update if loaded by the bootloader

add optional fields for microcode in kernel_args.

Change-Id: Ic5fb54cf6c9f489a2d1cdda00f63980c11dcdaeb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2264
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Jérôme Duval
2020-03-16 06:41:16 +00:00
parent 4657aba9da
commit 56bb1bd5c9
5 changed files with 246 additions and 3 deletions
@@ -105,6 +105,15 @@ typedef struct kernel_args {
// bootsplash data
FixedWidthPointer<uint8> boot_splash;
// optional microcode
FixedWidthPointer<void> ucode_data;
uint32 ucode_data_size;
} _PACKED kernel_args;
const size_t kernel_args_size_v1 = sizeof(kernel_args)
- sizeof(FixedWidthPointer<void>) - sizeof(uint32);
#endif /* KERNEL_BOOT_KERNEL_ARGS_H */