aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86_64/misc.rs
blob: 8a2c31652e347aa0a03a85d918c63f4d7861cb95 (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();
	}
}