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
e0e84aed
There was an error fetching the commit references. Please try again later.
Commit
e0e84aed
authored
6 years ago
by
Lioncash
Browse files
Options
Downloads
Patches
Plain Diff
kernel/process_capability: Handle kernel version capability flags
parent
010bc677
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/core/hle/kernel/process_capability.cpp
+13
-1
13 additions, 1 deletion
src/core/hle/kernel/process_capability.cpp
src/core/hle/kernel/process_capability.h
+5
-0
5 additions, 0 deletions
src/core/hle/kernel/process_capability.h
with
18 additions
and
1 deletion
src/core/hle/kernel/process_capability.cpp
+
13
−
1
View file @
e0e84aed
...
...
@@ -315,7 +315,19 @@ ResultCode ProcessCapabilities::HandleProgramTypeFlags(u32 flags) {
}
ResultCode
ProcessCapabilities
::
HandleKernelVersionFlags
(
u32
flags
)
{
// TODO: Implement
// Yes, the internal member variable is checked in the actual kernel here.
// This might look odd for options that are only allowed to be initialized
// just once, however the kernel has a separate initialization function for
// kernel processes and userland processes. The kernel variant sets this
// member variable ahead of time.
const
u32
major_version
=
kernel_version
>>
19
;
if
(
major_version
!=
0
||
flags
<
0x80000
)
{
return
ERR_INVALID_CAPABILITY_DESCRIPTOR
;
}
kernel_version
=
flags
;
return
RESULT_SUCCESS
;
}
...
...
This diff is collapsed.
Click to expand it.
src/core/hle/kernel/process_capability.h
+
5
−
0
View file @
e0e84aed
...
...
@@ -155,6 +155,11 @@ public:
return
program_type
;
}
/// Gets the kernel version value.
u32
GetKernelVersion
()
const
{
return
kernel_version
;
}
private
:
/// Attempts to parse a given sequence of capability descriptors.
///
...
...
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