aboutsummaryrefslogtreecommitdiff
path: root/src/apic/xapic.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/apic/xapic.rs')
-rw-r--r--src/apic/xapic.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/apic/xapic.rs b/src/apic/xapic.rs
index 218e4c5..80bea6d 100644
--- a/src/apic/xapic.rs
+++ b/src/apic/xapic.rs
@@ -143,7 +143,7 @@ pub const XAPIC_TIMER_DIV_CONF: u32 = 0x3E0;
#[derive(Copy, Clone)]
#[allow(dead_code, non_camel_case_types)]
-enum ApicRegister {
+pub enum ApicRegister {
XAPIC_ID = XAPIC_ID as isize,
XAPIC_VERSION = XAPIC_VERSION as isize,
XAPIC_TPR = XAPIC_TPR as isize,
@@ -301,14 +301,14 @@ impl XAPIC {
}
/// Read a register from the MMIO region.
- fn read(&self, offset: ApicRegister) -> u32 {
+ pub fn read(&self, offset: ApicRegister) -> u32 {
assert!(offset as usize % 4 == 0);
let index = offset as usize / 4;
unsafe { core::ptr::read_volatile(&self.mmio_region[index]) }
}
/// write a register in the MMIO region.
- fn write(&mut self, offset: ApicRegister, val: u32) {
+ pub fn write(&mut self, offset: ApicRegister, val: u32) {
assert!(offset as usize % 4 == 0);
let index = offset as usize / 4;
unsafe { core::ptr::write_volatile(&mut self.mmio_region[index], val) }
on value='feat/data-improvements'>feat/data-improvements Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/examples/framework-vue/src (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2021-07-13Add lang attribute to html tagsGravatar Shreesh Bhat 1-1/+3
2021-07-12Add `lang` attribute to pages on https://astro.build (#668)Gravatar Caleb Jasik 6-11/+46
2021-07-12Update build script to avoid bundling (#304)Gravatar Nate Moore 16-28/+16
2021-07-12Docs: Correcting minor typo in ReadMe (#666)Gravatar Ryan Christian 2-1/+6
2021-07-12[ci] yarn formatGravatar matthewp 4-12/+14
2021-07-12Adds support for client:media hydrator (#664)Gravatar Matthew Phillips 14-24/+125
2021-07-12[ci] yarn formatGravatar natemoo-re 4-29/+28
2021-07-12Add support for named slots (#661)Gravatar Nate Moore 18-27/+346
2021-07-12Upgrade to snowpack@3.8.0 (#621)Gravatar Matthew Phillips 3-45/+708