diff options
author | Jason A. Donenfeld | 2022-09-26 13:38:59 +0200 |
---|---|---|
committer | Laurent Vivier | 2022-10-21 20:46:10 +0200 |
commit | 693869a66ed7b49f2c790d88a25fc3d0ec791e0c (patch) | |
tree | c76a93e545ecbfd16edcd87e0dd8c7bedde98970 /include/standard-headers/asm-m68k/bootinfo.h | |
parent | Merge tag 'pull-target-arm-20221020' of https://git.linaro.org/people/pmaydel... (diff) | |
download | qemu-693869a66ed7b49f2c790d88a25fc3d0ec791e0c.tar.gz qemu-693869a66ed7b49f2c790d88a25fc3d0ec791e0c.tar.xz qemu-693869a66ed7b49f2c790d88a25fc3d0ec791e0c.zip |
m68k: rework BI_VIRT_RNG_SEED as BI_RNG_SEED
Following a change on the kernel side (see link), pass BI_RNG_SEED
instead of BI_VIRT_RNG_SEED. This should have no impact on
compatibility, as there will simply be no effect if it's an old kernel,
which is how things have always been. We then use this as an opportunity
to add this to q800, since now we can, which is a nice improvement.
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Laurent Vivier <laurent@vivier.eu>
Link: https://lore.kernel.org/lkml/20220923170340.4099226-3-Jason@zx2c4.com/
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Message-Id: <20220926113900.1256630-1-Jason@zx2c4.com>
[lv: s/^I/ /g]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'include/standard-headers/asm-m68k/bootinfo.h')
-rw-r--r-- | include/standard-headers/asm-m68k/bootinfo.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/standard-headers/asm-m68k/bootinfo.h b/include/standard-headers/asm-m68k/bootinfo.h index 7b790e8ec8..b7a8dd2514 100644 --- a/include/standard-headers/asm-m68k/bootinfo.h +++ b/include/standard-headers/asm-m68k/bootinfo.h @@ -57,7 +57,13 @@ struct mem_info { /* (struct mem_info) */ #define BI_COMMAND_LINE 0x0007 /* kernel command line parameters */ /* (string) */ - +/* + * A random seed used to initialize the RNG. Record format: + * + * - length [ 2 bytes, 16-bit big endian ] + * - seed data [ `length` bytes, padded to preserve 4-byte struct alignment ] + */ +#define BI_RNG_SEED 0x0008 /* * Linux/m68k Architectures (BI_MACHTYPE) |