Skip to content

Commit

Permalink
zipl/boot: constify data in section stage2_head
Browse files Browse the repository at this point in the history
Declare `magic`, `tape_head`, and `stage2_head` as const.

Acked-by: Eduard Shishkin <edward6@linux.ibm.com>
Acked-by: Mikhail Zaslonko <zaslonko@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
  • Loading branch information
mhartmay authored and hoeppnerj committed Mar 31, 2023
1 parent a4eb03d commit e6be1c1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion zipl/boot/eckd2dump_mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/*
* Magic number at start of dump record
*/
uint64_t __section(.stage2.head) magic = 0x584d554c54363401ULL; /* XMULT64, version 1 */
const uint64_t __section(.stage2.head) magic = 0x584d554c54363401ULL; /* XMULT64, version 1 */

/*
* Parameter format for ECKD MV dumper (13 bytes):
Expand Down
2 changes: 1 addition & 1 deletion zipl/boot/eckd2dump_sv.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/*
* Magic number at start of dump record
*/
uint64_t __section(.stage2.head) magic = 0x5845434b44363401ULL; /* "XECKD64", version 1 */
const uint64_t __section(.stage2.head) magic = 0x5845434b44363401ULL; /* "XECKD64", version 1 */

/*
* Get device characteristics from zipl parameter block
Expand Down
2 changes: 1 addition & 1 deletion zipl/boot/fba2dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/*
* Magic number at start of dump record
*/
uint64_t __section(.stage2.head) magic = 0x5844464241363401ULL; /* XDFBA64, version 1 */
const uint64_t __section(.stage2.head) magic = 0x5844464241363401ULL; /* XDFBA64, version 1 */

/*
* FBA dump device partition specification
Expand Down
2 changes: 1 addition & 1 deletion zipl/boot/stage2.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@ void panic_notify(unsigned long UNUSED(reason))
{
}

uint64_t __section(.stage2.head) stage2_head;
const uint64_t __section(.stage2.head) stage2_head;
2 changes: 1 addition & 1 deletion zipl/boot/tape2dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct tape_head {
uint64_t ccw2;
} __packed;

struct tape_head __section(.stage2.head) tape_head = {
const struct tape_head __section(.stage2.head) tape_head = {
.psw = PSW_LOAD | STAGE2_ENTRY, /* Start code at 0x2018 */
.ccw1 = 0x0700000060000001ULL, /* Rewind ccw */
.ccw2 = 0x0200200020003000ULL, /* CCW to load dump tool to 0x2000 */
Expand Down

0 comments on commit e6be1c1

Please sign in to comment.