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
e95bb782
There was an error fetching the commit references. Please try again later.
Commit
e95bb782
authored
3 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
core: hle: kernel: init_slab_setup: Move CalculateSlabHeapGapSize to global namespace.
parent
5f3e77d9
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/hle/kernel/init/init_slab_setup.cpp
+6
-6
6 additions, 6 deletions
src/core/hle/kernel/init/init_slab_setup.cpp
with
6 additions
and
6 deletions
src/core/hle/kernel/init/init_slab_setup.cpp
+
6
−
6
View file @
e95bb782
...
...
@@ -107,6 +107,12 @@ VAddr InitializeSlabHeap(Core::System& system, KMemoryLayout& memory_layout, VAd
return
start
+
size
;
}
size_t
CalculateSlabHeapGapSize
()
{
constexpr
size_t
KernelSlabHeapGapSize
=
2
_MiB
-
296
_KiB
;
static_assert
(
KernelSlabHeapGapSize
<=
KernelSlabHeapGapsSizeMax
);
return
KernelSlabHeapGapSize
;
}
}
// namespace
KSlabResourceCounts
KSlabResourceCounts
::
CreateDefault
()
{
...
...
@@ -137,12 +143,6 @@ void InitializeSlabResourceCounts(KernelCore& kernel) {
}
}
size_t
CalculateSlabHeapGapSize
()
{
constexpr
size_t
KernelSlabHeapGapSize
=
2
_MiB
-
296
_KiB
;
static_assert
(
KernelSlabHeapGapSize
<=
KernelSlabHeapGapsSizeMax
);
return
KernelSlabHeapGapSize
;
}
size_t
CalculateTotalSlabHeapSize
(
const
KernelCore
&
kernel
)
{
size_t
size
=
0
;
...
...
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