Commit dd1f2818 authored by Stefan Lankes's avatar Stefan Lankes
Browse files

remove compiler warnings

parent 00969a90
Pipeline #242508 passed with stages
in 1 minute and 42 seconds
......@@ -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;
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment