qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 05/12] pc-bios: s390x: Remove unneeded dasd-ipl.c reset ps


From: Thomas Huth
Subject: Re: [PATCH v5 05/12] pc-bios: s390x: Remove unneeded dasd-ipl.c reset psw mask changes
Date: Thu, 25 Jun 2020 13:09:02 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 25/06/2020 12.57, Thomas Huth wrote:
On 24/06/2020 09.52, Janosch Frank wrote:
jump_to_low_kernel() and the functions that it calls will already or
64 bit addressing into the reset psw mask when executing
jump_to_IPL_2() after the diag308 subcode 1.

Hmm, the jump_to_IPL_code() also sets the 64-bit addressing bits ... but jump_to_low_kernel() has some logic that tests for the bits before that function is called:

     /* Trying to get PSW at zero address */
     if (*((uint64_t *)0) & RESET_PSW_MASK) {
         jump_to_IPL_code((*((uint64_t *)0)) & 0x7fffffff);
     }

Could it be that the code in dasd-ipl.c has been written with that if-statement in mind?

... in that case, the code in dasd-ipl.c should maybe rather call jump_to_IPL_code((*((uint64_t *)0)) & 0x7fffffff) directly instead of going through jump_to_low_kernel(), I guess.

Jason, do you remember the intention here?

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]