mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 19:53:59 +08:00
25097bf153
Currently the storage of the machine flags is a globally exported unsigned long long variable. By moving the storage location into the lowcore struct we allow assembler code to check machine_flags directly even without needing a register. Addtionally the lowcore and therefore the machine flags too will be in cache most of the time. Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
26 lines
617 B
C
26 lines
617 B
C
/*
|
|
* Copyright IBM Corp. 2000,2009
|
|
* Author(s): Hartmut Penner <hp@de.ibm.com>,
|
|
* Martin Schwidefsky <schwidefsky@de.ibm.com>
|
|
* Christian Ehrhardt <ehrhardt@de.ibm.com>
|
|
*/
|
|
|
|
#ifndef _ASM_S390_CPUID_H_
|
|
#define _ASM_S390_CPUID_H_
|
|
|
|
/*
|
|
* CPU type and hardware bug flags. Kept separately for each CPU.
|
|
* Members of this structure are referenced in head.S, so think twice
|
|
* before touching them. [mj]
|
|
*/
|
|
|
|
typedef struct
|
|
{
|
|
unsigned int version : 8;
|
|
unsigned int ident : 24;
|
|
unsigned int machine : 16;
|
|
unsigned int unused : 16;
|
|
} __attribute__ ((packed)) cpuid_t;
|
|
|
|
#endif /* _ASM_S390_CPUID_H_ */
|