aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-06-21 17:09:38 +0200
committerHelge Deller <deller@gmx.de>2023-06-21 17:09:38 +0200
commite957f3e22f3d75bfbcf6576af4116b5ebe7fa726 (patch)
tree240d6d09d07b5618bd1bc44813b8902da796e4c6
parent5bddafeaf61fa11f4902598e1aeb075968a29a6d (diff)
downloadseabios-hppa-e957f3e22f3d75bfbcf6576af4116b5ebe7fa726.zip
seabios-hppa-e957f3e22f3d75bfbcf6576af4116b5ebe7fa726.tar.gz
seabios-hppa-e957f3e22f3d75bfbcf6576af4116b5ebe7fa726.tar.bz2
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 <deller@gmx.de>
-rw-r--r--src/parisc/head.S11
-rw-r--r--src/parisc/hppa.h4
-rw-r--r--src/parisc/parisc.c4
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 <deller@gmx.de>
+ * (C) 2017-2023 Helge Deller <deller@gmx.de>
*/
+#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 <deller@gmx.de>
+// Copyright (C) 2017-2023 Helge Deller <deller@gmx.de>
// Copyright (C) 2019 Sven Schnelle <svens@stackframe.org>
//
// 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.