-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux-user: Define TASK_UNMAPPED_BASE in $guest/target_mman.h
Provide default values that are as close as possible to the values used by the guest's kernel. Tested-by: Helge Deller <deller@gmx.de> Reviewed-by: Helge Deller <deller@gmx.de> Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
- Loading branch information
Showing
21 changed files
with
167 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
/* | ||
* arch/arm/include/asm/memory.h | ||
* TASK_UNMAPPED_BASE ALIGN(TASK_SIZE / 3, SZ_16M) | ||
* TASK_SIZE CONFIG_PAGE_OFFSET | ||
* CONFIG_PAGE_OFFSET 0xC0000000 (default in Kconfig) | ||
*/ | ||
#define TASK_UNMAPPED_BASE 0x40000000 | ||
|
||
#include "../generic/target_mman.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
/* | ||
* arch/cris/include/asm/processor.h: | ||
* TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3)) | ||
* | ||
* arch/cris/include/arch-v32/arch/processor.h | ||
* TASK_SIZE 0xb0000000 | ||
*/ | ||
#define TASK_UNMAPPED_BASE TARGET_PAGE_ALIGN(0xb0000000 / 3) | ||
|
||
#include "../generic/target_mman.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
/* | ||
* arch/hexgon/include/asm/processor.h | ||
* TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3) | ||
* | ||
* arch/hexagon/include/asm/mem-layout.h | ||
* TASK_SIZE PAGE_OFFSET | ||
* PAGE_OFFSET 0xc0000000 | ||
*/ | ||
#define TASK_UNMAPPED_BASE 0x40000000 | ||
|
||
#include "../generic/target_mman.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
/* | ||
* arch/x86/include/asm/processor.h: | ||
* TASK_UNMAPPED_BASE __TASK_UNMAPPED_BASE(TASK_SIZE_LOW) | ||
* __TASK_UNMAPPED_BASE(S) PAGE_ALIGN(S / 3) | ||
* | ||
* arch/x86/include/asm/page_32_types.h: | ||
* TASK_SIZE_LOW TASK_SIZE | ||
* TASK_SIZE __PAGE_OFFSET | ||
* __PAGE_OFFSET CONFIG_PAGE_OFFSET | ||
* CONFIG_PAGE_OFFSET 0xc0000000 (default in Kconfig) | ||
*/ | ||
#define TASK_UNMAPPED_BASE 0x40000000 | ||
|
||
#include "../generic/target_mman.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
/* | ||
* arch/loongarch/include/asm/processor.h: | ||
* TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3) | ||
* TASK_SIZE64 0x1UL << (... ? VA_BITS : ...) | ||
*/ | ||
#define TASK_UNMAPPED_BASE \ | ||
TARGET_PAGE_ALIGN((1ull << TARGET_VIRT_ADDR_SPACE_BITS) / 3) | ||
|
||
#include "../generic/target_mman.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
/* arch/m68k/include/asm/processor.h */ | ||
#define TASK_UNMAPPED_BASE 0xC0000000 | ||
|
||
#include "../generic/target_mman.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
/* | ||
* arch/microblaze/include/asm/processor.h: | ||
* TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) | ||
* TASK_SIZE CONFIG_KERNEL_START | ||
* CONFIG_KERNEL_START 0xc0000000 (default in Kconfig) | ||
*/ | ||
#define TASK_UNMAPPED_BASE 0x48000000 | ||
|
||
#include "../generic/target_mman.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
/* | ||
* arch/nios2/include/asm/processor.h: | ||
* TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3) | ||
* TASK_SIZE 0x7FFF0000UL | ||
*/ | ||
#define TASK_UNMAPPED_BASE TARGET_PAGE_ALIGN(0x7FFF0000 / 3) | ||
|
||
#include "../generic/target_mman.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
/* | ||
* arch/openrisc/include/asm/processor.h: | ||
* TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) | ||
* TASK_SIZE (0x80000000UL) | ||
*/ | ||
#define TASK_UNMAPPED_BASE 0x30000000 | ||
|
||
#include "../generic/target_mman.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
/* | ||
* arch/loongarch/include/asm/processor.h: | ||
* TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3) | ||
*/ | ||
#define TASK_UNMAPPED_BASE \ | ||
TARGET_PAGE_ALIGN((1ull << (TARGET_VIRT_ADDR_SPACE_BITS - 1)) / 3) | ||
|
||
#include "../generic/target_mman.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
/* | ||
* arch/s390/include/asm/processor.h: | ||
* TASK_UNMAPPED_BASE (... : (_REGION2_SIZE >> 1)) | ||
* | ||
* arch/s390/include/asm/pgtable.h: | ||
* _REGION2_SIZE (1UL << _REGION2_SHIFT) | ||
* _REGION2_SHIFT 42 | ||
*/ | ||
#define TASK_UNMAPPED_BASE (1ull << 41) | ||
|
||
#include "../generic/target_mman.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
/* arch/sh/include/asm/processor_32.h */ | ||
#define TASK_UNMAPPED_BASE \ | ||
TARGET_PAGE_ALIGN((1u << TARGET_VIRT_ADDR_SPACE_BITS) / 3) | ||
|
||
#include "../generic/target_mman.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
/* | ||
* arch/x86/include/asm/processor.h: | ||
* TASK_UNMAPPED_BASE __TASK_UNMAPPED_BASE(TASK_SIZE_LOW) | ||
* __TASK_UNMAPPED_BASE(S) PAGE_ALIGN(S / 3) | ||
* | ||
* arch/x86/include/asm/page_64_types.h: | ||
* TASK_SIZE_LOW DEFAULT_MAP_WINDOW | ||
* DEFAULT_MAP_WINDOW ((1UL << 47) - PAGE_SIZE) | ||
*/ | ||
#define TASK_UNMAPPED_BASE \ | ||
TARGET_PAGE_ALIGN((1ull << TARGET_VIRT_ADDR_SPACE_BITS) / 3) | ||
|
||
#include "../generic/target_mman.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters