On 24/04/2024 11:19, Mark Cave-Ayland wrote:
This is based upon a similar patch currently being carried in the QEMU Debian package sources.
Reported-by: Michael Tokarev mjt@tls.msk.ru Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
kernel/bootstrap.c | 4 ++-- kernel/dict.c | 2 +- kernel/include/dict.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/kernel/bootstrap.c b/kernel/bootstrap.c index 9bc94bb..8ad3efe 100644 --- a/kernel/bootstrap.c +++ b/kernel/bootstrap.c @@ -171,9 +171,9 @@ static void write_dictionary(const char *filename) .version = 2, .cellsize = sizeof(ucell), #ifdef CONFIG_BIG_ENDIAN
.endianess = -1,
#else.endianness = -1,
.endianess = 0,
#endif .checksum = 0, .compression = 0,.endianness = 0,
diff --git a/kernel/dict.c b/kernel/dict.c index 0986cb1..51afc67 100644 --- a/kernel/dict.c +++ b/kernel/dict.c @@ -252,7 +252,7 @@ void dump_header(dictionary_header_t *header) printk("OpenBIOS dictionary:\n"); printk(" version: %d\n", header->version); printk(" cellsize: %d\n", header->cellsize);
- printk(" endianess: %s\n", header->endianess?"big":"little");
- printk(" endianness: %s\n", header->endianness?"big":"little"); printk(" compression: %s\n", header->compression?"yes":"no"); printk(" relocation: %s\n", header->relocation?"yes":"no"); printk(" checksum: %08x\n", target_long(header->checksum));
diff --git a/kernel/include/dict.h b/kernel/include/dict.h index 749fd6f..1e735fa 100644 --- a/kernel/include/dict.h +++ b/kernel/include/dict.h @@ -27,7 +27,7 @@ typedef struct dictionary_header { char signature[8]; u8 version; u8 cellsize;
- u8 endianess;
- u8 endianness; u8 compression; u8 relocation; u8 reserved[3];
Applied to master (with updated tag).
ATB,
Mark.