Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
69ee9edd
There was an error fetching the commit references. Please try again later.
Commit
69ee9edd
authored
7 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
memory: Add regions for map region, "new" map region, etc.
parent
3923b0f5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/memory.h
+29
-19
29 additions, 19 deletions
src/core/memory.h
with
29 additions
and
19 deletions
src/core/memory.h
+
29
−
19
View file @
69ee9edd
...
@@ -129,21 +129,6 @@ enum : VAddr {
...
@@ -129,21 +129,6 @@ enum : VAddr {
PROCESS_IMAGE_MAX_SIZE
=
0x08000000
,
PROCESS_IMAGE_MAX_SIZE
=
0x08000000
,
PROCESS_IMAGE_VADDR_END
=
PROCESS_IMAGE_VADDR
+
PROCESS_IMAGE_MAX_SIZE
,
PROCESS_IMAGE_VADDR_END
=
PROCESS_IMAGE_VADDR
+
PROCESS_IMAGE_MAX_SIZE
,
/// Area where IPC buffers are mapped onto.
IPC_MAPPING_VADDR
=
0x04000000
,
IPC_MAPPING_SIZE
=
0x04000000
,
IPC_MAPPING_VADDR_END
=
IPC_MAPPING_VADDR
+
IPC_MAPPING_SIZE
,
/// Application heap (includes stack).
HEAP_VADDR
=
0x108000000
,
HEAP_SIZE
=
0xF0000000
,
HEAP_VADDR_END
=
HEAP_VADDR
+
HEAP_SIZE
,
/// Area where shared memory buffers are mapped onto.
SHARED_MEMORY_VADDR
=
0x10000000
,
SHARED_MEMORY_SIZE
=
0x04000000
,
SHARED_MEMORY_VADDR_END
=
SHARED_MEMORY_VADDR
+
SHARED_MEMORY_SIZE
,
/// Maps 1:1 to an offset in FCRAM. Used for HW allocations that need to be linear in physical
/// Maps 1:1 to an offset in FCRAM. Used for HW allocations that need to be linear in physical
/// memory.
/// memory.
LINEAR_HEAP_VADDR
=
0x14000000
,
LINEAR_HEAP_VADDR
=
0x14000000
,
...
@@ -176,14 +161,39 @@ enum : VAddr {
...
@@ -176,14 +161,39 @@ enum : VAddr {
SHARED_PAGE_SIZE
=
0x00001000
,
SHARED_PAGE_SIZE
=
0x00001000
,
SHARED_PAGE_VADDR_END
=
SHARED_PAGE_VADDR
+
SHARED_PAGE_SIZE
,
SHARED_PAGE_VADDR_END
=
SHARED_PAGE_VADDR
+
SHARED_PAGE_SIZE
,
/// Area where TLS (Thread-Local Storage) buffers are allocated.
TLS_AREA_VADDR
=
0x228000000
,
TLS_ENTRY_SIZE
=
0x200
,
/// Equivalent to LINEAR_HEAP_VADDR, but expanded to cover the extra memory in the New 3DS.
/// Equivalent to LINEAR_HEAP_VADDR, but expanded to cover the extra memory in the New 3DS.
NEW_LINEAR_HEAP_VADDR
=
0x30000000
,
NEW_LINEAR_HEAP_VADDR
=
0x30000000
,
NEW_LINEAR_HEAP_SIZE
=
0x10000000
,
NEW_LINEAR_HEAP_SIZE
=
0x10000000
,
NEW_LINEAR_HEAP_VADDR_END
=
NEW_LINEAR_HEAP_VADDR
+
NEW_LINEAR_HEAP_SIZE
,
NEW_LINEAR_HEAP_VADDR_END
=
NEW_LINEAR_HEAP_VADDR
+
NEW_LINEAR_HEAP_SIZE
,
/// Area where TLS (Thread-Local Storage) buffers are allocated.
TLS_AREA_VADDR
=
NEW_LINEAR_HEAP_VADDR_END
,
TLS_ENTRY_SIZE
=
0x200
,
TLS_AREA_SIZE
=
0x10000000
,
TLS_ADREA_VADDR_END
=
TLS_AREA_VADDR
+
TLS_AREA_SIZE
,
/// Application stack
STACK_VADDR
=
TLS_ADREA_VADDR_END
,
STACK_SIZE
=
0x10000
,
STACK_VADDR_END
=
STACK_VADDR
+
STACK_SIZE
,
/// Application heap
/// Size is confirmed to be a static value on fw 3.0.0
HEAP_VADDR
=
0x108000000
,
HEAP_SIZE
=
0x180000000
,
HEAP_VADDR_END
=
HEAP_VADDR
+
HEAP_SIZE
,
/// New map region
/// Size is confirmed to be a static value on fw 3.0.0
NEW_MAP_REGION_VADDR
=
HEAP_VADDR_END
,
NEW_MAP_REGION_SIZE
=
0x80000000
,
NEW_MAP_REGION_VADDR_END
=
NEW_MAP_REGION_VADDR
+
NEW_MAP_REGION_SIZE
,
/// Map region
/// Size is confirmed to be a static value on fw 3.0.0
MAP_REGION_VADDR
=
NEW_MAP_REGION_VADDR_END
,
MAP_REGION_SIZE
=
0x1000000000
,
MAP_REGION_VADDR_END
=
MAP_REGION_VADDR
+
MAP_REGION_SIZE
,
};
};
/// Currently active page table
/// Currently active page table
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment