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
c916bcf7
There was an error fetching the commit references. Please try again later.
Commit
c916bcf7
authored
9 years ago
by
Yuri Kunde Schlesner
Browse files
Options
Downloads
Patches
Plain Diff
Move typedefs from kernel.h to more appropriate places
parent
6ad71c21
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/common/common_types.h
+5
-0
5 additions, 0 deletions
src/common/common_types.h
src/core/hle/hle.h
+7
-0
7 additions, 0 deletions
src/core/hle/hle.h
src/core/hle/kernel/kernel.h
+1
-10
1 addition, 10 deletions
src/core/hle/kernel/kernel.h
with
13 additions
and
10 deletions
src/common/common_types.h
+
5
−
0
View file @
c916bcf7
...
...
@@ -47,6 +47,11 @@ typedef std::int64_t s64; ///< 64-bit signed int
typedef
float
f32
;
///< 32-bit floating point
typedef
double
f64
;
///< 64-bit floating point
// TODO: It would be nice to eventually replace these with strong types that prevent accidental
// conversion between each other.
typedef
u32
VAddr
;
///< Represents a pointer in the userspace virtual address space.
typedef
u32
PAddr
;
///< Represents a pointer in the ARM11 physical address space.
/// Union for fast 16-bit type casting
union
t16
{
u8
_u8
[
2
];
///< 8-bit unsigned char(s)
...
...
This diff is collapsed.
Click to expand it.
src/core/hle/hle.h
+
7
−
0
View file @
c916bcf7
...
...
@@ -4,6 +4,13 @@
#pragma once
#include
"common/common_types.h"
typedef
u32
Handle
;
typedef
s32
Result
;
const
Handle
INVALID_HANDLE
=
0
;
namespace
HLE
{
extern
bool
g_reschedule
;
///< If true, immediately reschedules the CPU to a new thread
...
...
This diff is collapsed.
Click to expand it.
src/core/hle/kernel/kernel.h
+
1
−
10
View file @
c916bcf7
...
...
@@ -11,18 +11,9 @@
#include
<vector>
#include
"common/common.h"
#include
"core/hle/hle.h"
#include
"core/hle/result.h"
typedef
u32
Handle
;
typedef
s32
Result
;
// TODO: It would be nice to eventually replace these with strong types that prevent accidental
// conversion between each other.
typedef
u32
VAddr
;
///< Represents a pointer in the userspace virtual address space.
typedef
u32
PAddr
;
///< Represents a pointer in the ARM11 physical address space.
const
Handle
INVALID_HANDLE
=
0
;
namespace
Kernel
{
class
Thread
;
...
...
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