diff options
author | 2017-10-19 17:11:29 +0200 | |
---|---|---|
committer | 2017-10-19 17:11:29 +0200 | |
commit | 1e78c7f4b8e705cc6687191afa39090ecbe35dfd (patch) | |
tree | b61b02cc2611fedcf43e77c369ed77890faf4030 /src/bits32/mod.rs | |
parent | 8428a8d70a04534451f8ce858af5481b4d2f4211 (diff) | |
download | rust-x86-1e78c7f4b8e705cc6687191afa39090ecbe35dfd.tar.gz rust-x86-1e78c7f4b8e705cc6687191afa39090ecbe35dfd.tar.zst rust-x86-1e78c7f4b8e705cc6687191afa39090ecbe35dfd.zip |
Split up shared::segmentation into bits32::segmentation and bits64::segmentation and implement specifics of each architecture.
- Provide two functions new_memory and new_tss to comfortably create memory and TSS descriptors.
The x86-64 version of new_tss outputs an array of 2 descriptors to account for the upper bits of the TSS pointer address.
- Add a bitness parameter to the x86-64 version of new_memory to allow creating segments for 32-bit and 64-bit code.
- Fix a copy-pasta mistake in the x86 version of set_cs.
Diffstat (limited to 'src/bits32/mod.rs')
-rw-r--r-- | src/bits32/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bits32/mod.rs b/src/bits32/mod.rs index e98b862..2ffe79f 100644 --- a/src/bits32/mod.rs +++ b/src/bits32/mod.rs @@ -1,4 +1,5 @@ pub mod irq; +pub mod segmentation; pub mod task; #[inline(always)] |