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 /include/asm-s390/setup.h | |
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 'include/asm-s390/setup.h')
-rw-r--r-- | include/asm-s390/setup.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/asm-s390/setup.h b/include/asm-s390/setup.h index 4a1126d8439a..00c03e46689b 100644 --- a/include/asm-s390/setup.h +++ b/include/asm-s390/setup.h | |||
@@ -125,13 +125,15 @@ struct ipl_parameter_block { | |||
125 | /* | 125 | /* |
126 | * IPL validity flags and parameters as detected in head.S | 126 | * IPL validity flags and parameters as detected in head.S |
127 | */ | 127 | */ |
128 | extern u32 ipl_parameter_flags; | 128 | extern u32 ipl_flags; |
129 | extern u16 ipl_devno; | 129 | extern u16 ipl_devno; |
130 | 130 | ||
131 | void do_reipl(void); | 131 | void do_reipl(void); |
132 | 132 | ||
133 | #define IPL_DEVNO_VALID (ipl_parameter_flags & 1) | 133 | enum { |
134 | #define IPL_PARMBLOCK_VALID (ipl_parameter_flags & 2) | 134 | IPL_DEVNO_VALID = 1, |
135 | IPL_PARMBLOCK_VALID = 2, | ||
136 | }; | ||
135 | 137 | ||
136 | #define IPL_PARMBLOCK_START ((struct ipl_parameter_block *) \ | 138 | #define IPL_PARMBLOCK_START ((struct ipl_parameter_block *) \ |
137 | IPL_PARMBLOCK_ORIGIN) | 139 | IPL_PARMBLOCK_ORIGIN) |