From e957f3e22f3d75bfbcf6576af4116b5ebe7fa726 Mon Sep 17 00:00:00 2001 From: Helge Deller Date: Wed, 21 Jun 2023 17:09:38 +0200 Subject: parisc: Move SeaBIOS-hppa version string This allows to include the version number in the binary header of hppa-firmware.img Signed-off-by: Helge Deller --- src/parisc/head.S | 11 +++++------ src/parisc/hppa.h | 4 ++++ src/parisc/parisc.c | 4 +--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/parisc/head.S b/src/parisc/head.S index eec378b..891ec9a 100644 --- a/src/parisc/head.S +++ b/src/parisc/head.S @@ -1,17 +1,16 @@ /* * Startup glue code for parisc firmware * - * (C) 2017-2021 Helge Deller + * (C) 2017-2023 Helge Deller */ +#include "parisc/hppa.h" #include "parisc/hppa_hardware.h" #include "autoconf.h" #include "autoversion.h" /* load 32-bit 'value' into 'reg' compensating for the ldil - * sign-extension when running in wide mode. - * WARNING!! neither 'value' nor 'reg' can be expressions - * containing '.'!!!! */ + * sign-extension when running in wide mode. */ .macro load32 value, reg ldil L%\value, \reg ldo R%\value(\reg), \reg @@ -81,8 +80,8 @@ reset_entry: b,n startup marker: - /* file identification */ - .stringz "PA-RISC/HPPA PDC Firmware (SeaBIOS fork)" + /* file identification, useful for strings command on binary file to see version. */ + .stringz "PA-RISC/HPPA PDC Firmware " SEABIOS_HPPA_VERSION_STR " (SeaBIOS fork)" .stringz "https://github.com/hdeller/seabios-hppa" .stringz BUILD_VERSION diff --git a/src/parisc/hppa.h b/src/parisc/hppa.h index 1bf601f..5d4250b 100644 --- a/src/parisc/hppa.h +++ b/src/parisc/hppa.h @@ -2,6 +2,10 @@ #define HPPA_H /* this file is included by x86.h */ +/* version number of this SeaBIOS firmware */ +#define SEABIOS_HPPA_VERSION 7 +#define SEABIOS_HPPA_VERSION_STR "7" + #include "parisc/hppa_hardware.h" #ifndef __ASSEMBLY__ diff --git a/src/parisc/parisc.c b/src/parisc/parisc.c index f4ce9ea..65ed177 100644 --- a/src/parisc/parisc.c +++ b/src/parisc/parisc.c @@ -1,6 +1,6 @@ // Glue code for parisc architecture // -// Copyright (C) 2017-2022 Helge Deller +// Copyright (C) 2017-2023 Helge Deller // Copyright (C) 2019 Sven Schnelle // // This file may be distributed under the terms of the GNU LGPLv3 license. @@ -31,8 +31,6 @@ #include "vgabios.h" -#define SEABIOS_HPPA_VERSION 7 - /* * Various variables which are needed by x86 code. * Defined here to be able to link seabios. -- cgit v1.1