aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc
diff options
context:
space:
mode:
authorManish Ahuja <ahuja@austin.ibm.com>2008-03-21 19:37:08 -0400
committerPaul Mackerras <paulus@samba.org>2008-03-25 17:44:06 -0400
commit6ac26c8a7eb149dbd669cc6cd9b77ffc9cd0d2fb (patch)
tree4eb613ed5f8eb7accb042e30c89d9d25097d557f /include/asm-powerpc
parentd28a79326a4028dbb1755b8efe6daa915d8bfeea (diff)
[POWERPC] pseries: phyp dump: Reserve and release memory
Initial patch for reserving memory in early boot, and freeing it later. If the previous boot had ended with a crash, the reserved memory would contain a copy of the crashed kernel data. Signed-off-by: Manish Ahuja <mahuja@us.ibm.com> Signed-off-by: Linas Vepstas <linasvepstas@gmail.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc')
-rw-r--r--include/asm-powerpc/phyp_dump.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/asm-powerpc/phyp_dump.h b/include/asm-powerpc/phyp_dump.h
new file mode 100644
index 000000000000..e2d988dcdc99
--- /dev/null
+++ b/include/asm-powerpc/phyp_dump.h
@@ -0,0 +1,41 @@
1/*
2 * Hypervisor-assisted dump
3 *
4 * Linas Vepstas, Manish Ahuja 2008
5 * Copyright 2008 IBM Corp.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version
10 * 2 of the License, or (at your option) any later version.
11 */
12
13#ifndef _PPC64_PHYP_DUMP_H
14#define _PPC64_PHYP_DUMP_H
15
16#ifdef CONFIG_PHYP_DUMP
17
18/* The RMR region will be saved for later dumping
19 * whenever the kernel crashes. Set this to 256MB. */
20#define PHYP_DUMP_RMR_START 0x0
21#define PHYP_DUMP_RMR_END (1UL<<28)
22
23struct phyp_dump {
24 /* Memory that is reserved during very early boot. */
25 unsigned long init_reserve_start;
26 unsigned long init_reserve_size;
27 /* Check status during boot if dump supported, active & present*/
28 unsigned long phyp_dump_configured;
29 unsigned long phyp_dump_is_active;
30 /* store cpu & hpte size */
31 unsigned long cpu_state_size;
32 unsigned long hpte_region_size;
33};
34
35extern struct phyp_dump *phyp_dump_info;
36
37int early_init_dt_scan_phyp_dump(unsigned long node,
38 const char *uname, int depth, void *data);
39
40#endif /* CONFIG_PHYP_DUMP */
41#endif /* _PPC64_PHYP_DUMP_H */