1
0

ci?
Some checks failed
CI / Typos (push) Failing after 13s
CI / Build (push) Failing after 31s

This commit is contained in:
Mark 2025-02-25 19:22:48 -08:00
parent a8d8344639
commit 2369d86617
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
5 changed files with 16 additions and 7 deletions

View File

@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: "Install TeXLive"
- name: "Install Rust"
run: |
sudo apt update
DEBIAN_FRONTEND=noninteractive \
@ -36,3 +36,6 @@ jobs:
- name: Run clippy
working-directory: ./tetros
run: cargo clippy --all-targets --all-features
- name: Build
run: make

View File

@ -1,6 +1,6 @@
SECTION .text ; cannot use .data
struc GDTEntry
struc GDTEntry ; spell:disable:line
.limitl resw 1
.basel resw 1
.basem resb 1
@ -26,21 +26,21 @@ gdt_attr:
.accessed equ 1 << 0
;system
; legacy
.tssAvailabe16 equ 0x1
.tssAvailabe16 equ 0x1 ; spell:disable:line
.ldt equ 0x2
.tssBusy16 equ 0x3
.call16 equ 0x4
.task equ 0x5
.interrupt16 equ 0x6
.trap16 equ 0x7
.tssAvailabe32 equ 0x9
.tssAvailabe32 equ 0x9 ; spell:disable:line
.tssBusy32 equ 0xB
.call32 equ 0xC
.interrupt32 equ 0xE
.trap32 equ 0xF
; long mode
.ldt32 equ 0x2
.tssAvailabe64 equ 0x9
.tssAvailabe64 equ 0x9 ; spell:disable:line
.tssBusy64 equ 0xB
.call64 equ 0xC
.interrupt64 equ 0xE

View File

@ -61,6 +61,7 @@ impl<T> fmt::Debug for Entry<T> {
}
}
// spell:off
impl<F> Entry<F> {
/// Create a valid non-present IDT entry.
#[inline]
@ -111,7 +112,9 @@ impl<F> Entry<F> {
))
}
}
// spell:on
// spell:off
impl<F: HandlerFuncType> Entry<F> {
/// Sets the handler address for the IDT entry and sets the following defaults:
/// - The code selector is the code segment currently active in the CPU
@ -125,3 +128,4 @@ impl<F: HandlerFuncType> Entry<F> {
unsafe { self.set_handler_addr(handler.to_virt_addr()) }
}
}
// spell:on

View File

@ -16,6 +16,7 @@ struct IDTR {
// MARK: idt
//
// spell:off
#[derive(Clone, Debug)]
#[repr(C)]
#[repr(align(8))]
@ -410,6 +411,7 @@ pub struct InterruptDescriptorTable {
/// instruction pointer points to the instruction after the INTn.
interrupts: [Entry<HandlerFunc>; 256 - 32],
}
// spell:on
//
// MARK: impl

View File

@ -1,8 +1,8 @@
[default]
extend-ignore-re = [
# spell:disable-line
"(?Rm)^.*(%|#|//)\\s*spell:disable-line$",
"(?Rm)^.*(%|#|//|;)\\s*spell:disable-line$",
# spell:<on|off>
"(?s)(%|#|//)\\s*spell:off.*?\\n\\s*(%|#|//)\\s*spell:on",
"(?s)(%|#|//|;)\\s*spell:off.*?\\n\\s*(%|#|//)\\s*spell:on",
]