diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2006-09-20 09:59:15 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-09-20 09:59:15 -0400 |
commit | e87bfe51b5ca2db99dd680bbb1e8fe3c94b607df (patch) | |
tree | abbffd8e3ca0edcbe5a0e36e1e94deb9a3b10adc /arch/s390/kernel/ipl.c | |
parent | 1375fc1fb0434a26f93c59b1b9f3fdb8bf90bba5 (diff) |
[S390] convert some assembler to C.
Convert GET_IPL_DEVICE assembler macro to C function.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/ipl.c')
-rw-r--r-- | arch/s390/kernel/ipl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c index 105ee15a2b31..6555cc48e28f 100644 --- a/arch/s390/kernel/ipl.c +++ b/arch/s390/kernel/ipl.c | |||
@@ -189,9 +189,9 @@ static enum ipl_type ipl_get_type(void) | |||
189 | { | 189 | { |
190 | struct ipl_parameter_block *ipl = IPL_PARMBLOCK_START; | 190 | struct ipl_parameter_block *ipl = IPL_PARMBLOCK_START; |
191 | 191 | ||
192 | if (!IPL_DEVNO_VALID) | 192 | if (!(ipl_flags & IPL_DEVNO_VALID)) |
193 | return IPL_TYPE_UNKNOWN; | 193 | return IPL_TYPE_UNKNOWN; |
194 | if (!IPL_PARMBLOCK_VALID) | 194 | if (!(ipl_flags & IPL_PARMBLOCK_VALID)) |
195 | return IPL_TYPE_CCW; | 195 | return IPL_TYPE_CCW; |
196 | if (ipl->hdr.version > IPL_MAX_SUPPORTED_VERSION) | 196 | if (ipl->hdr.version > IPL_MAX_SUPPORTED_VERSION) |
197 | return IPL_TYPE_UNKNOWN; | 197 | return IPL_TYPE_UNKNOWN; |