Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kernel
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
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
ACS
Public
HermitOS
kernel
Commits
dd1f2818
Commit
dd1f2818
authored
5 years ago
by
Stefan Lankes
Browse files
Options
Downloads
Patches
Plain Diff
remove compiler warnings
parent
00969a90
No related branches found
No related tags found
No related merge requests found
Pipeline
#242508
passed
5 years ago
Stage: prepare
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/arch/x86_64/kernel/mod.rs
+3
-1
3 additions, 1 deletion
src/arch/x86_64/kernel/mod.rs
src/arch/x86_64/kernel/processor.rs
+8
-8
8 additions, 8 deletions
src/arch/x86_64/kernel/processor.rs
with
11 additions
and
9 deletions
src/arch/x86_64/kernel/mod.rs
+
3
−
1
View file @
dd1f2818
...
...
@@ -34,7 +34,9 @@ mod vga;
use
arch
::
x86_64
::
kernel
::
percore
::
*
;
use
arch
::
x86_64
::
kernel
::
serial
::
SerialPort
;
use
core
::{
intrinsics
,
ptr
,
slice
};
#[cfg(feature
=
"newlib"
)]
use
core
::
slice
;
use
core
::{
intrinsics
,
ptr
};
use
environment
;
use
kernel_message_buffer
;
...
...
This diff is collapsed.
Click to expand it.
src/arch/x86_64/kernel/processor.rs
+
8
−
8
View file @
dd1f2818
...
...
@@ -28,14 +28,14 @@ const IA32_MISC_ENABLE_SPEEDSTEP_LOCK: u64 = 1 << 20;
const
IA32_MISC_ENABLE_TURBO_DISABLE
:
u64
=
1
<<
38
;
// MSR EFER bits
const
EFER_SCE
:
u64
=
(
1
<<
0
)
;
const
EFER_LME
:
u64
=
(
1
<<
8
)
;
const
EFER_LMA
:
u64
=
(
1
<<
10
)
;
const
EFER_NXE
:
u64
=
(
1
<<
11
)
;
const
EFER_SVME
:
u64
=
(
1
<<
12
)
;
const
EFER_LMSLE
:
u64
=
(
1
<<
13
)
;
const
EFER_FFXSR
:
u64
=
(
1
<<
14
)
;
const
EFER_TCE
:
u64
=
(
1
<<
15
)
;
const
EFER_SCE
:
u64
=
1
<<
0
;
const
EFER_LME
:
u64
=
1
<<
8
;
const
EFER_LMA
:
u64
=
1
<<
10
;
const
EFER_NXE
:
u64
=
1
<<
11
;
const
EFER_SVME
:
u64
=
1
<<
12
;
const
EFER_LMSLE
:
u64
=
1
<<
13
;
const
EFER_FFXSR
:
u64
=
1
<<
14
;
const
EFER_TCE
:
u64
=
1
<<
15
;
static
mut
CPU_FREQUENCY
:
CpuFrequency
=
CpuFrequency
::
new
();
static
mut
CPU_SPEEDSTEP
:
CpuSpeedStep
=
CpuSpeedStep
::
new
();
...
...
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