aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86_64/misc.rs
blob: c007d9978a104f2a34e7f36ff86c0ff32b425c3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// wrappers for misc. architectural code
// before they find better place to go.
// asm code goes to asm/misc.s

extern "C" {
    fn _delay();
}

#[inline(always)]

// delays for several cycles. Used to fill sequantial IO commands
// (for devices to react)
pub fn delay() {
    unsafe {
        _delay();
    }                
}