Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
8c4caa4f
Commit
8c4caa4f
authored
Jun 12, 2009
by
Martin Schwidefsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[S390] use facility list for cpu type safety check
Signed-off-by:
Martin Schwidefsky
<
schwidefsky@de.ibm.com
>
parent
ce58ae6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
15 deletions
+35
-15
arch/s390/include/asm/lowcore.h
arch/s390/include/asm/lowcore.h
+1
-0
arch/s390/kernel/head.S
arch/s390/kernel/head.S
+34
-15
No files found.
arch/s390/include/asm/lowcore.h
View file @
8c4caa4f
...
...
@@ -30,6 +30,7 @@
#define __LC_SUBCHANNEL_NR 0x00ba
#define __LC_IO_INT_PARM 0x00bc
#define __LC_IO_INT_WORD 0x00c0
#define __LC_STFL_FAC_LIST 0x00c8
#define __LC_MCCK_CODE 0x00e8
#define __LC_DUMP_REIPL 0x0e00
...
...
arch/s390/kernel/head.S
View file @
8c4caa4f
...
...
@@ -479,27 +479,46 @@ startup:basr %r13,0 # get base
mvc
__LC_LAST_UPDATE_TIMER
(
8
),
6
f
-
.
LPG0
(%
r13
)
mvc
__LC_EXIT_TIMER
(
8
),
5
f
-
.
LPG0
(%
r13
)
#ifndef CONFIG_MARCH_G5
#
check
processor
version
against
MARCH_
{
G5
,
Z900
,
Z990
,
Z9_109
,
Z10
}
stidp
__LC_CPUID
#
store
cpuid
lhi
%
r0
,(
3
f
-
2
f
)
/
2
la
%
r1
,
2
f
-
.
LPG0
(%
r13
)
0
:
clc
__LC_CPUID
+
4
(
2
),
0
(%
r1
)
jne
3
f
lpsw
1
f
-
.
LPG0
(
13
)
#
machine
type
not
good
enough
,
crash
#
check
capabilities
against
MARCH_
{
G5
,
Z900
,
Z990
,
Z9_109
,
Z10
}
xc
__LC_STFL_FAC_LIST
(
8
),
__LC_STFL_FAC_LIST
stfl
__LC_STFL_FAC_LIST
#
store
facility
list
tm
__LC_STFL_FAC_LIST
,
0x01
#
stfle
available
?
jz
0
f
la
%
r0
,
0
.
insn
s
,
0xb2b00000
,
__LC_STFL_FAC_LIST
#
store
facility
list
extended
0
:
l
%
r0
,
__LC_STFL_FAC_LIST
n
%
r0
,
2
f
+
8
-
.
LPG0
(%
r13
)
cl
%
r0
,
2
f
+
8
-
.
LPG0
(%
r13
)
jne
1
f
l
%
r0
,
__LC_STFL_FAC_LIST
+
4
n
%
r0
,
2
f
+
12
-
.
LPG0
(%
r13
)
cl
%
r0
,
2
f
+
12
-
.
LPG0
(%
r13
)
je
3
f
1
:
lpsw
2
f
-
.
LPG0
(
13
)
#
machine
type
not
good
enough
,
crash
.
align
16
1
:
.
long
0x000a0000
,
0x00000000
2
:
2
:
.
long
0x000a0000
,
0x8badcccc
#if defined(CONFIG_64BIT)
#if defined(CONFIG_MARCH_Z10)
.
long
0xc100efe3
,
0xf0680000
#elif defined(CONFIG_MARCH_Z9_109)
.
long
0xc100efc3
,
0x00000000
#elif defined(CONFIG_MARCH_Z990)
.
long
0xc0002000
,
0x00000000
#elif defined(CONFIG_MARCH_Z900)
.
long
0xc0000000
,
0x00000000
#endif
#else
#if defined(CONFIG_MARCH_Z10)
.
short
0x9672
,
0x2064
,
0x2066
,
0x2084
,
0x2086
,
0x2094
,
0x2096
.
long
0x8100c880
,
0x00000000
#elif defined(CONFIG_MARCH_Z9_109)
.
short
0x9672
,
0x2064
,
0x2066
,
0x2084
,
0x2086
.
long
0x8100c880
,
0x00000000
#elif defined(CONFIG_MARCH_Z990)
.
short
0x9672
,
0x2064
,
0x2066
.
long
0x80002000
,
0x00000000
#elif defined(CONFIG_MARCH_Z900)
.
short
0x9672
.
long
0x80000000
,
0x00000000
#endif
#endif
3
:
la
%
r1
,
2
(%
r1
)
brct
%
r0
,
0
b
3
:
#endif
l
%
r13
,
4
f
-
.
LPG0
(%
r13
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment