Import lazy_static through normal use

This commit is contained in:
Philipp Oppermann
2018-11-13 11:36:40 +01:00
parent 21f3152dc0
commit e7d4012653
9 changed files with 11 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
use x86_64::structures::gdt::{Descriptor, GlobalDescriptorTable, SegmentSelector};
use x86_64::structures::tss::TaskStateSegment;
use x86_64::VirtAddr;
use lazy_static::lazy_static;
pub const DOUBLE_FAULT_IST_INDEX: u16 = 0;

View File

@@ -8,6 +8,7 @@ use gdt;
use pic8259_simple::ChainedPics;
use spin;
use x86_64::structures::idt::{ExceptionStackFrame, InterruptDescriptorTable};
use lazy_static::lazy_static;
pub const PIC_1_OFFSET: u8 = 32;
pub const PIC_2_OFFSET: u8 = PIC_1_OFFSET + 8;

View File

@@ -4,7 +4,6 @@
extern crate bootloader;
extern crate spin;
extern crate volatile;
#[macro_use]
extern crate lazy_static;
extern crate pic8259_simple;
extern crate uart_16550;

View File

@@ -1,5 +1,6 @@
use spin::Mutex;
use uart_16550::SerialPort;
use lazy_static::lazy_static;
lazy_static! {
pub static ref SERIAL1: Mutex<SerialPort> = {

View File

@@ -1,6 +1,7 @@
use core::fmt;
use spin::Mutex;
use volatile::Volatile;
use lazy_static::lazy_static;
lazy_static! {
/// A global `Writer` instance that can be used for printing to the VGA text buffer.