diff options
| author | Chris Metcalf <cmetcalf@tilera.com> | 2012-03-29 15:48:23 -0400 |
|---|---|---|
| committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-05-25 12:48:25 -0400 |
| commit | fc0c49f5db640b9dfc7bb801892b5cbb7508a76a (patch) | |
| tree | fc2ba1a5353385bf0f4e628ec107588b9e517e61 /arch/tile/include | |
| parent | cd6f32aa088f4d328e676c35f51b440f2fe5b98c (diff) | |
arch/tile: support kexec() for tilegx
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/include')
| -rw-r--r-- | arch/tile/include/asm/kexec.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/tile/include/asm/kexec.h b/arch/tile/include/asm/kexec.h index c11a6cc73bb..fc98ccfc98a 100644 --- a/arch/tile/include/asm/kexec.h +++ b/arch/tile/include/asm/kexec.h | |||
| @@ -19,12 +19,24 @@ | |||
| 19 | 19 | ||
| 20 | #include <asm/page.h> | 20 | #include <asm/page.h> |
| 21 | 21 | ||
| 22 | #ifndef __tilegx__ | ||
| 22 | /* Maximum physical address we can use pages from. */ | 23 | /* Maximum physical address we can use pages from. */ |
| 23 | #define KEXEC_SOURCE_MEMORY_LIMIT TASK_SIZE | 24 | #define KEXEC_SOURCE_MEMORY_LIMIT TASK_SIZE |
| 24 | /* Maximum address we can reach in physical address mode. */ | 25 | /* Maximum address we can reach in physical address mode. */ |
| 25 | #define KEXEC_DESTINATION_MEMORY_LIMIT TASK_SIZE | 26 | #define KEXEC_DESTINATION_MEMORY_LIMIT TASK_SIZE |
| 26 | /* Maximum address we can use for the control code buffer. */ | 27 | /* Maximum address we can use for the control code buffer. */ |
| 27 | #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE | 28 | #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE |
| 29 | #else | ||
| 30 | /* We need to limit the memory below PGDIR_SIZE since | ||
| 31 | * we only setup page table for [0, PGDIR_SIZE) before final kexec. | ||
| 32 | */ | ||
| 33 | /* Maximum physical address we can use pages from. */ | ||
| 34 | #define KEXEC_SOURCE_MEMORY_LIMIT PGDIR_SIZE | ||
| 35 | /* Maximum address we can reach in physical address mode. */ | ||
| 36 | #define KEXEC_DESTINATION_MEMORY_LIMIT PGDIR_SIZE | ||
| 37 | /* Maximum address we can use for the control code buffer. */ | ||
| 38 | #define KEXEC_CONTROL_MEMORY_LIMIT PGDIR_SIZE | ||
| 39 | #endif | ||
| 28 | 40 | ||
| 29 | #define KEXEC_CONTROL_PAGE_SIZE PAGE_SIZE | 41 | #define KEXEC_CONTROL_PAGE_SIZE PAGE_SIZE |
| 30 | 42 | ||
