License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Many source files in the tree are missing licensing information, which
makes it harder for compliance tools to determine the correct license.
By default all files without license information are under the default
license of the kernel, which is GPL version 2.
Update the files which contain no license information with the 'GPL-2.0'
SPDX license identifier. The SPDX identifier is a legally binding
shorthand, which can be used instead of the full boiler plate text.
This patch is based on work done by Thomas Gleixner and Kate Stewart and
Philippe Ombredanne.
How this work was done:
Patches were generated and checked against linux-4.14-rc6 for a subset of
the use cases:
- file had no licensing information it it.
- file was a */uapi/* one with no licensing information in it,
- file was a */uapi/* one with existing licensing information,
Further patches will be generated in subsequent months to fix up cases
where non-standard license headers were used, and references to license
had to be inferred by heuristics based on keywords.
The analysis to determine which SPDX License Identifier to be applied to
a file was done in a spreadsheet of side by side results from of the
output of two independent scanners (ScanCode & Windriver) producing SPDX
tag:value files created by Philippe Ombredanne. Philippe prepared the
base worksheet, and did an initial spot review of a few 1000 files.
The 4.13 kernel was the starting point of the analysis with 60,537 files
assessed. Kate Stewart did a file by file comparison of the scanner
results in the spreadsheet to determine which SPDX license identifier(s)
to be applied to the file. She confirmed any determination that was not
immediately clear with lawyers working with the Linux Foundation.
Criteria used to select files for SPDX license identifier tagging was:
- Files considered eligible had to be source code files.
- Make and config files were included as candidates if they contained >5
lines of source
- File already had some variant of a license header in it (even if <5
lines).
All documentation files were explicitly excluded.
The following heuristics were used to determine which SPDX license
identifiers to apply.
- when both scanners couldn't find any license traces, file was
considered to have no license information in it, and the top level
COPYING file license applied.
For non */uapi/* files that summary was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 11139
and resulted in the first patch in this series.
If that file was a */uapi/* path one, it was "GPL-2.0 WITH
Linux-syscall-note" otherwise it was "GPL-2.0". Results of that was:
SPDX license identifier # files
---------------------------------------------------|-------
GPL-2.0 WITH Linux-syscall-note 930
and resulted in the second patch in this series.
- if a file had some form of licensing information in it, and was one
of the */uapi/* ones, it was denoted with the Linux-syscall-note if
any GPL family license was found in the file or had no licensing in
it (per prior point). Results summary:
SPDX license identifier # files
---------------------------------------------------|------
GPL-2.0 WITH Linux-syscall-note 270
GPL-2.0+ WITH Linux-syscall-note 169
((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) 21
((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17
LGPL-2.1+ WITH Linux-syscall-note 15
GPL-1.0+ WITH Linux-syscall-note 14
((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause) 5
LGPL-2.0+ WITH Linux-syscall-note 4
LGPL-2.1 WITH Linux-syscall-note 3
((GPL-2.0 WITH Linux-syscall-note) OR MIT) 3
((GPL-2.0 WITH Linux-syscall-note) AND MIT) 1
and that resulted in the third patch in this series.
- when the two scanners agreed on the detected license(s), that became
the concluded license(s).
- when there was disagreement between the two scanners (one detected a
license but the other didn't, or they both detected different
licenses) a manual inspection of the file occurred.
- In most cases a manual inspection of the information in the file
resulted in a clear resolution of the license that should apply (and
which scanner probably needed to revisit its heuristics).
- When it was not immediately clear, the license identifier was
confirmed with lawyers working with the Linux Foundation.
- If there was any question as to the appropriate license identifier,
the file was flagged for further research and to be revisited later
in time.
In total, over 70 hours of logged manual review was done on the
spreadsheet to determine the SPDX license identifiers to apply to the
source files by Kate, Philippe, Thomas and, in some cases, confirmation
by lawyers working with the Linux Foundation.
Kate also obtained a third independent scan of the 4.13 code base from
FOSSology, and compared selected files where the other two scanners
disagreed against that SPDX file, to see if there was new insights. The
Windriver scanner is based on an older version of FOSSology in part, so
they are related.
Thomas did random spot checks in about 500 files from the spreadsheets
for the uapi headers and agreed with SPDX license identifier in the
files he inspected. For the non-uapi files Thomas did random spot checks
in about 15000 files.
In initial set of patches against 4.14-rc6, 3 files were found to have
copy/paste license identifier errors, and have been fixed to reflect the
correct identifier.
Additionally Philippe spent 10 hours this week doing a detailed manual
inspection and review of the 12,461 patched files from the initial patch
version early this week with:
- a full scancode scan run, collecting the matched texts, detected
license ids and scores
- reviewing anything where there was a license detected (about 500+
files) to ensure that the applied SPDX license was correct
- reviewing anything where there was no detection but the patch license
was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
SPDX license was correct
This produced a worksheet with 20 files needing minor correction. This
worksheet was then exported into 3 different .csv files for the
different types of files to be modified.
These .csv files were then reviewed by Greg. Thomas wrote a script to
parse the csv files and add the proper SPDX tag to the file, in the
format that the file expected. This script was further refined by Greg
based on the output to detect more types of files automatically and to
distinguish between header and source .c files (which need different
comment types.) Finally Greg ran the script using the .csv files to
generate the patches.
Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-01 22:07:57 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2009-06-16 16:30:52 +08:00
|
|
|
/*
|
|
|
|
* S390 64-bit swsusp implementation
|
|
|
|
*
|
|
|
|
* Copyright IBM Corp. 2009
|
|
|
|
*
|
|
|
|
* Author(s): Hans-Joachim Picht <hans@linux.vnet.ibm.com>
|
|
|
|
* Michael Holzheu <holzheu@linux.vnet.ibm.com>
|
|
|
|
*/
|
|
|
|
|
2011-07-24 16:48:19 +08:00
|
|
|
#include <linux/linkage.h>
|
2009-06-16 16:30:52 +08:00
|
|
|
#include <asm/page.h>
|
|
|
|
#include <asm/ptrace.h>
|
2009-09-23 04:58:53 +08:00
|
|
|
#include <asm/thread_info.h>
|
2009-06-16 16:30:52 +08:00
|
|
|
#include <asm/asm-offsets.h>
|
2018-04-26 00:41:30 +08:00
|
|
|
#include <asm/nospec-insn.h>
|
2012-06-04 21:05:43 +08:00
|
|
|
#include <asm/sigp.h>
|
2009-06-16 16:30:52 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Save register context in absolute 0 lowcore and call swsusp_save() to
|
|
|
|
* create in-memory kernel image. The context is saved in the designated
|
|
|
|
* "store status" memory locations (see POP).
|
|
|
|
* We return from this function twice. The first time during the suspend to
|
|
|
|
* disk process. The second time via the swsusp_arch_resume() function
|
|
|
|
* (see below) in the resume process.
|
|
|
|
* This function runs with disabled interrupts.
|
|
|
|
*/
|
2018-04-26 00:41:30 +08:00
|
|
|
GEN_BR_THUNK %r14
|
|
|
|
|
2009-06-16 16:30:52 +08:00
|
|
|
.section .text
|
2011-07-24 16:48:19 +08:00
|
|
|
ENTRY(swsusp_arch_suspend)
|
2017-09-12 22:37:33 +08:00
|
|
|
lg %r1,__LC_NODAT_STACK
|
|
|
|
aghi %r1,-STACK_FRAME_OVERHEAD
|
|
|
|
stmg %r6,%r15,__SF_GPRS(%r1)
|
|
|
|
stg %r15,__SF_BACKCHAIN(%r1)
|
2009-06-16 16:30:52 +08:00
|
|
|
lgr %r1,%r15
|
|
|
|
|
2015-09-08 19:59:08 +08:00
|
|
|
/* Store FPU registers */
|
|
|
|
brasl %r14,save_fpu_regs
|
|
|
|
|
2009-06-16 16:30:52 +08:00
|
|
|
/* Deactivate DAT */
|
|
|
|
stnsm __SF_EMPTY(%r15),0xfb
|
|
|
|
|
|
|
|
/* Store prefix register on stack */
|
|
|
|
stpx __SF_EMPTY(%r15)
|
|
|
|
|
2013-04-08 22:09:31 +08:00
|
|
|
/* Save prefix register contents for lowcore copy */
|
|
|
|
llgf %r10,__SF_EMPTY(%r15)
|
2009-06-16 16:30:52 +08:00
|
|
|
|
|
|
|
/* Get pointer to save area */
|
2009-07-24 18:39:49 +08:00
|
|
|
lghi %r1,0x1000
|
2009-06-16 16:30:52 +08:00
|
|
|
|
2009-09-23 04:58:53 +08:00
|
|
|
/* Save CPU address */
|
2012-03-11 23:59:25 +08:00
|
|
|
stap __LC_EXT_CPU_ADDR(%r0)
|
2009-09-23 04:58:53 +08:00
|
|
|
|
2009-06-16 16:30:52 +08:00
|
|
|
/* Store registers */
|
|
|
|
mvc 0x318(4,%r1),__SF_EMPTY(%r15) /* move prefix to lowcore */
|
|
|
|
stam %a0,%a15,0x340(%r1) /* store access registers */
|
|
|
|
stctg %c0,%c15,0x380(%r1) /* store control registers */
|
|
|
|
stmg %r0,%r15,0x280(%r1) /* store general registers */
|
|
|
|
|
|
|
|
stpt 0x328(%r1) /* store timer */
|
2009-10-06 16:34:11 +08:00
|
|
|
stck __SF_EMPTY(%r15) /* store clock */
|
2009-06-16 16:30:52 +08:00
|
|
|
stckc 0x330(%r1) /* store clock comparator */
|
|
|
|
|
2009-10-06 16:34:11 +08:00
|
|
|
/* Update cputime accounting before going to sleep */
|
|
|
|
lg %r0,__LC_LAST_UPDATE_TIMER
|
|
|
|
slg %r0,0x328(%r1)
|
|
|
|
alg %r0,__LC_SYSTEM_TIMER
|
|
|
|
stg %r0,__LC_SYSTEM_TIMER
|
|
|
|
mvc __LC_LAST_UPDATE_TIMER(8),0x328(%r1)
|
|
|
|
lg %r0,__LC_LAST_UPDATE_CLOCK
|
|
|
|
slg %r0,__SF_EMPTY(%r15)
|
|
|
|
alg %r0,__LC_STEAL_TIMER
|
|
|
|
stg %r0,__LC_STEAL_TIMER
|
|
|
|
mvc __LC_LAST_UPDATE_CLOCK(8),__SF_EMPTY(%r15)
|
|
|
|
|
2009-06-16 16:30:52 +08:00
|
|
|
/* Activate DAT */
|
|
|
|
stosm __SF_EMPTY(%r15),0x04
|
|
|
|
|
|
|
|
/* Set prefix page to zero */
|
|
|
|
xc __SF_EMPTY(4,%r15),__SF_EMPTY(%r15)
|
|
|
|
spx __SF_EMPTY(%r15)
|
|
|
|
|
2013-04-08 22:09:31 +08:00
|
|
|
/* Save absolute zero pages */
|
|
|
|
larl %r2,suspend_zero_pages
|
|
|
|
lg %r2,0(%r2)
|
|
|
|
lghi %r4,0
|
|
|
|
lghi %r3,2*PAGE_SIZE
|
|
|
|
lghi %r5,2*PAGE_SIZE
|
|
|
|
1: mvcle %r2,%r4,0
|
|
|
|
jo 1b
|
|
|
|
|
|
|
|
/* Copy lowcore to absolute zero lowcore */
|
2009-07-24 18:39:49 +08:00
|
|
|
lghi %r2,0
|
2013-04-08 22:09:31 +08:00
|
|
|
lgr %r4,%r10
|
2009-07-24 18:39:49 +08:00
|
|
|
lghi %r3,2*PAGE_SIZE
|
|
|
|
lghi %r5,2*PAGE_SIZE
|
|
|
|
1: mvcle %r2,%r4,0
|
|
|
|
jo 1b
|
2009-06-16 16:30:52 +08:00
|
|
|
|
|
|
|
/* Save image */
|
|
|
|
brasl %r14,swsusp_save
|
|
|
|
|
|
|
|
/* Restore prefix register and return */
|
|
|
|
lghi %r1,0x1000
|
|
|
|
spx 0x318(%r1)
|
|
|
|
lmg %r6,%r15,STACK_FRAME_OVERHEAD + __SF_GPRS(%r15)
|
|
|
|
lghi %r2,0
|
2018-04-26 00:41:30 +08:00
|
|
|
BR_EX %r14
|
2009-06-16 16:30:52 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Restore saved memory image to correct place and restore register context.
|
|
|
|
* Then we return to the function that called swsusp_arch_suspend().
|
|
|
|
* swsusp_arch_resume() runs with disabled interrupts.
|
|
|
|
*/
|
2011-07-24 16:48:19 +08:00
|
|
|
ENTRY(swsusp_arch_resume)
|
2009-06-16 16:30:52 +08:00
|
|
|
stmg %r6,%r15,__SF_GPRS(%r15)
|
|
|
|
lgr %r1,%r15
|
|
|
|
aghi %r15,-STACK_FRAME_OVERHEAD
|
|
|
|
stg %r1,__SF_BACKCHAIN(%r15)
|
|
|
|
|
2009-09-23 04:58:44 +08:00
|
|
|
/* Make all free pages stable */
|
|
|
|
lghi %r2,1
|
|
|
|
brasl %r14,arch_set_page_states
|
2009-09-23 04:58:53 +08:00
|
|
|
|
2009-06-16 16:30:52 +08:00
|
|
|
/* Deactivate DAT */
|
|
|
|
stnsm __SF_EMPTY(%r15),0xfb
|
|
|
|
|
|
|
|
/* Set prefix page to zero */
|
|
|
|
xc __SF_EMPTY(4,%r15),__SF_EMPTY(%r15)
|
|
|
|
spx __SF_EMPTY(%r15)
|
|
|
|
|
|
|
|
/* Restore saved image */
|
|
|
|
larl %r1,restore_pblist
|
|
|
|
lg %r1,0(%r1)
|
|
|
|
ltgr %r1,%r1
|
|
|
|
jz 2f
|
|
|
|
0:
|
|
|
|
lg %r2,8(%r1)
|
|
|
|
lg %r4,0(%r1)
|
2011-08-18 02:42:24 +08:00
|
|
|
iske %r0,%r4
|
2009-06-16 16:30:52 +08:00
|
|
|
lghi %r3,PAGE_SIZE
|
|
|
|
lghi %r5,PAGE_SIZE
|
|
|
|
1:
|
|
|
|
mvcle %r2,%r4,0
|
|
|
|
jo 1b
|
2011-08-18 02:42:24 +08:00
|
|
|
lg %r2,8(%r1)
|
|
|
|
sske %r0,%r2
|
2009-06-16 16:30:52 +08:00
|
|
|
lg %r1,16(%r1)
|
|
|
|
ltgr %r1,%r1
|
|
|
|
jnz 0b
|
|
|
|
2:
|
|
|
|
ptlb /* flush tlb */
|
|
|
|
|
2009-09-23 04:58:45 +08:00
|
|
|
/* Reset System */
|
|
|
|
larl %r1,restart_entry
|
2009-09-23 04:58:53 +08:00
|
|
|
larl %r2,.Lrestart_diag308_psw
|
2009-09-23 04:58:45 +08:00
|
|
|
og %r1,0(%r2)
|
|
|
|
stg %r1,0(%r0)
|
2009-09-23 04:58:53 +08:00
|
|
|
larl %r1,.Lnew_pgm_check_psw
|
2009-09-23 04:58:45 +08:00
|
|
|
epsw %r2,%r3
|
|
|
|
stm %r2,%r3,0(%r1)
|
|
|
|
mvc __LC_PGM_NEW_PSW(16,%r0),0(%r1)
|
|
|
|
lghi %r0,0
|
|
|
|
diag %r0,%r0,0x308
|
|
|
|
restart_entry:
|
|
|
|
lhi %r1,1
|
2012-06-04 21:05:43 +08:00
|
|
|
sigp %r1,%r0,SIGP_SET_ARCHITECTURE
|
2009-09-23 04:58:45 +08:00
|
|
|
sam64
|
2015-03-21 19:43:08 +08:00
|
|
|
#ifdef CONFIG_SMP
|
|
|
|
larl %r1,smp_cpu_mt_shift
|
|
|
|
icm %r1,15,0(%r1)
|
|
|
|
jz smt_done
|
|
|
|
llgfr %r1,%r1
|
|
|
|
smt_loop:
|
|
|
|
sigp %r1,%r0,SIGP_SET_MULTI_THREADING
|
|
|
|
brc 8,smt_done /* accepted */
|
|
|
|
brc 2,smt_loop /* busy, try again */
|
|
|
|
smt_done:
|
|
|
|
#endif
|
2009-09-23 04:58:53 +08:00
|
|
|
larl %r1,.Lnew_pgm_check_psw
|
2009-09-23 04:58:45 +08:00
|
|
|
lpswe 0(%r1)
|
|
|
|
pgm_check_entry:
|
|
|
|
|
2009-09-23 04:58:53 +08:00
|
|
|
/* Switch to original suspend CPU */
|
|
|
|
larl %r1,.Lresume_cpu /* Resume CPU address: r2 */
|
|
|
|
stap 0(%r1)
|
|
|
|
llgh %r2,0(%r1)
|
2012-03-11 23:59:25 +08:00
|
|
|
llgh %r1,__LC_EXT_CPU_ADDR(%r0) /* Suspend CPU address: r1 */
|
2009-09-23 04:58:53 +08:00
|
|
|
cgr %r1,%r2
|
|
|
|
je restore_registers /* r1 = r2 -> nothing to do */
|
|
|
|
larl %r4,.Lrestart_suspend_psw /* Set new restart PSW */
|
2010-02-27 05:37:33 +08:00
|
|
|
mvc __LC_RST_NEW_PSW(16,%r0),0(%r4)
|
2009-09-23 04:58:53 +08:00
|
|
|
3:
|
2012-06-04 21:05:43 +08:00
|
|
|
sigp %r9,%r1,SIGP_INITIAL_CPU_RESET /* sigp initial cpu reset */
|
2012-03-11 23:59:26 +08:00
|
|
|
brc 8,4f /* accepted */
|
|
|
|
brc 2,3b /* busy, try again */
|
2009-09-23 04:58:53 +08:00
|
|
|
|
|
|
|
/* Suspend CPU not available -> panic */
|
2018-09-14 23:35:46 +08:00
|
|
|
larl %r15,init_thread_union+THREAD_SIZE-STACK_FRAME_OVERHEAD
|
2009-09-23 04:58:53 +08:00
|
|
|
larl %r2,.Lpanic_string
|
s390/hibernate: fix error handling when suspend cpu != resume cpu
The resume code checks if the resume cpu is the same as the suspend cpu.
If not, and if it is also not possible to switch to the suspend cpu, an
error message should be printed and the resume process should be stopped
by loading a disabled wait psw.
The current logic is broken in multiple ways, the message is never printed,
and the disabled wait psw never loaded because the kernel panics before that:
- sam31 and SIGP_SET_ARCHITECTURE to ESA mode is wrong, this will break
on the first 64bit instruction in sclp_early_printk().
- The init stack should be used, but the stack pointer is not set up correctly
(missing aghi %r15,-STACK_FRAME_OVERHEAD).
- __sclp_early_printk() checks the sclp_init_state. If it is not
sclp_init_state_uninitialized, it simply returns w/o printing anything.
In the resumed kernel however, sclp_init_state will never be uninitialized.
This patch fixes those issues by removing the sam31/ESA logic, adding a
correct init stack pointer, and also introducing sclp_early_printk_force()
to allow using sclp_early_printk() even when sclp_init_state is not
uninitialized.
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2018-09-11 00:03:29 +08:00
|
|
|
brasl %r14,sclp_early_printk_force
|
2009-09-23 04:58:53 +08:00
|
|
|
larl %r3,.Ldisabled_wait_31
|
|
|
|
lpsw 0(%r3)
|
|
|
|
4:
|
|
|
|
/* Switch to suspend CPU */
|
2012-06-04 21:05:43 +08:00
|
|
|
sigp %r9,%r1,SIGP_RESTART /* sigp restart to suspend CPU */
|
2009-09-23 04:58:53 +08:00
|
|
|
brc 2,4b /* busy, try again */
|
|
|
|
5:
|
2012-06-04 21:05:43 +08:00
|
|
|
sigp %r9,%r2,SIGP_STOP /* sigp stop to current resume CPU */
|
2009-10-29 22:04:13 +08:00
|
|
|
brc 2,5b /* busy, try again */
|
2009-09-23 04:58:53 +08:00
|
|
|
6: j 6b
|
|
|
|
|
|
|
|
restart_suspend:
|
|
|
|
larl %r1,.Lresume_cpu
|
|
|
|
llgh %r2,0(%r1)
|
|
|
|
7:
|
2012-06-04 21:05:43 +08:00
|
|
|
sigp %r9,%r2,SIGP_SENSE /* sigp sense, wait for resume CPU */
|
2009-10-29 22:04:14 +08:00
|
|
|
brc 8,7b /* accepted, status 0, still running */
|
2009-09-23 04:58:53 +08:00
|
|
|
brc 2,7b /* busy, try again */
|
|
|
|
tmll %r9,0x40 /* Test if resume CPU is stopped */
|
|
|
|
jz 7b
|
|
|
|
|
|
|
|
restore_registers:
|
2009-06-16 16:30:52 +08:00
|
|
|
/* Restore registers */
|
2009-10-06 16:34:11 +08:00
|
|
|
lghi %r13,0x1000 /* %r1 = pointer to save area */
|
2009-06-16 16:30:52 +08:00
|
|
|
|
2009-10-06 16:34:11 +08:00
|
|
|
/* Ignore time spent in suspended state. */
|
|
|
|
llgf %r1,0x318(%r13)
|
|
|
|
stck __LC_LAST_UPDATE_CLOCK(%r1)
|
2009-06-16 16:30:52 +08:00
|
|
|
spt 0x328(%r13) /* reprogram timer */
|
|
|
|
//sckc 0x330(%r13) /* set clock comparator */
|
|
|
|
|
|
|
|
lctlg %c0,%c15,0x380(%r13) /* load control registers */
|
|
|
|
lam %a0,%a15,0x340(%r13) /* load access registers */
|
|
|
|
|
|
|
|
/* Load old stack */
|
|
|
|
lg %r15,0x2f8(%r13)
|
|
|
|
|
2013-04-08 22:09:31 +08:00
|
|
|
/* Save prefix register */
|
|
|
|
mvc __SF_EMPTY(4,%r15),0x318(%r13)
|
|
|
|
|
|
|
|
/* Restore absolute zero pages */
|
|
|
|
lghi %r2,0
|
|
|
|
larl %r4,suspend_zero_pages
|
|
|
|
lg %r4,0(%r4)
|
|
|
|
lghi %r3,2*PAGE_SIZE
|
|
|
|
lghi %r5,2*PAGE_SIZE
|
|
|
|
1: mvcle %r2,%r4,0
|
|
|
|
jo 1b
|
|
|
|
|
2009-06-16 16:30:52 +08:00
|
|
|
/* Restore prefix register */
|
2013-04-08 22:09:31 +08:00
|
|
|
spx __SF_EMPTY(%r15)
|
2009-06-16 16:30:52 +08:00
|
|
|
|
|
|
|
/* Activate DAT */
|
|
|
|
stosm __SF_EMPTY(%r15),0x04
|
|
|
|
|
2009-09-23 04:58:44 +08:00
|
|
|
/* Make all free pages unstable */
|
|
|
|
lghi %r2,0
|
|
|
|
brasl %r14,arch_set_page_states
|
|
|
|
|
2013-08-30 01:36:49 +08:00
|
|
|
/* Call arch specific early resume code */
|
|
|
|
brasl %r14,s390_early_resume
|
2010-04-22 23:17:04 +08:00
|
|
|
|
2009-06-16 16:30:52 +08:00
|
|
|
/* Return 0 */
|
|
|
|
lmg %r6,%r15,STACK_FRAME_OVERHEAD + __SF_GPRS(%r15)
|
|
|
|
lghi %r2,0
|
2018-04-26 00:41:30 +08:00
|
|
|
BR_EX %r14
|
2009-09-23 04:58:45 +08:00
|
|
|
|
2010-02-20 08:03:52 +08:00
|
|
|
.section .data..nosave,"aw",@progbits
|
2009-09-23 04:58:45 +08:00
|
|
|
.align 8
|
2009-09-23 04:58:53 +08:00
|
|
|
.Ldisabled_wait_31:
|
|
|
|
.long 0x000a0000,0x00000000
|
|
|
|
.Lpanic_string:
|
2017-02-02 17:33:20 +08:00
|
|
|
.asciz "Resume not possible because suspend CPU is no longer available\n"
|
2009-09-23 04:58:53 +08:00
|
|
|
.align 8
|
|
|
|
.Lrestart_diag308_psw:
|
2009-09-23 04:58:45 +08:00
|
|
|
.long 0x00080000,0x80000000
|
2009-09-23 04:58:53 +08:00
|
|
|
.Lrestart_suspend_psw:
|
|
|
|
.quad 0x0000000180000000,restart_suspend
|
|
|
|
.Lnew_pgm_check_psw:
|
2009-09-23 04:58:45 +08:00
|
|
|
.quad 0,pgm_check_entry
|
2009-09-23 04:58:53 +08:00
|
|
|
.Lresume_cpu:
|
|
|
|
.byte 0,0
|