Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit773565f

Browse files
misc(docs): cleanup
Signed-off-by: Anhad Singh <andypythonappdeveloper@gmail.com>
1 parentc806cd2 commit773565f

File tree

5 files changed

+13
-19
lines changed

5 files changed

+13
-19
lines changed

‎src/aero_kernel/src/arch/x86_64/apic.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,11 @@ impl LocalApic {
288288
/// This function works for both XAPIC and X2APIC.
289289
///
290290
/// ## Safety
291-
/// * The provided `register` must be a valid APIC register and the `value` must
292-
///be a valid value for the provided APIC register.
291+
/// * The provided `register` must be a valid APIC register and the `value` must be a valid
292+
/// value for the provided APIC register.
293293
///
294-
/// * If the `register` is 64-bit wide, then the [`Self::write_long`] function must
295-
///be used instead.
294+
/// * If the `register` is 64-bit wide, then the [`Self::write_long`] function must be used
295+
/// instead.
296296
unsafefnwrite(&mutself,register:u32,value:u32){
297297
matchself.apic_type{
298298
ApicType::X2apic =>{

‎src/aero_kernel/src/arch/x86_64/controlregs.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -335,19 +335,17 @@ pub unsafe fn write_xcr0(value: XCr0Flags) {
335335
/// Write the given set of CR4 flags.
336336
///
337337
/// ## Safety
338-
/// - This function does not preserve the current value of the CR4 flags and
339-
/// reserved fields.
340-
/// - Its possible to violate memory safety by swapping CR4 flags.
338+
/// * This function does not preserve the current value of the CR4 flags and reserved fields.
339+
/// * Its possible to violate memory safety by swapping CR4 flags.
341340
pubunsafefnwrite_cr4(value:Cr4Flags){
342341
asm!("mov cr4, {}", in(reg) value.bits(), options(nostack, preserves_flags));
343342
}
344343

345344
/// Write the given set of CR0 flags.
346345
///
347346
/// ## Safety
348-
/// - This function does not preserve the current value of the CR0 flags and
349-
/// reserved fields.
350-
/// - Its possible to violate memory safety by swapping CR0 flags.
347+
/// * This function does not preserve the current value of the CR0 flags and reserved fields.
348+
/// * Its possible to violate memory safety by swapping CR0 flags.
351349
pubunsafefnwrite_cr0(value:Cr0Flags){
352350
asm!("mov cr0, {}", in(reg) value.bits(), options(nostack, preserves_flags));
353351
}

‎src/aero_kernel/src/cmdline.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ pub fn parse(cmdline: &'static str, modules: &[&File]) -> CommandLine {
126126
/// Returns the raw kernel command line string.
127127
///
128128
/// ## Panics
129-
/// * If this function was invoked before the kernel command line was
130-
/// parsed using [`self::parse`].
129+
/// * If this function was invoked before the kernel command line was parsed using [`self::parse`].
131130
pubfnget_raw_cmdline() ->&'staticstr{
132131
RAW_CMDLINE_STR
133132
.get()

‎src/aero_kernel/src/rendy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
use core::fmt::Write;
1919

20+
use core::fmt;
2021
use core::ops::{Index,IndexMut};
2122
use core::ptr::NonNull;
2223
use core::time::Duration;
23-
use core::{fmt, u8};
2424

2525
use alloc::boxed::Box;
2626

‎src/aero_kernel/src/userland/signals.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -395,12 +395,9 @@ impl Signals {
395395
/// Used to update or read the signal mask of a task.
396396
///
397397
/// ## Notes
398-
/// * If `old_set` is not `None`, the previous value of the signal mask is
399-
/// stored in oldset.
400-
///
401-
/// * If `set` is `None`, then the signal mask is unchanged (i.e., `how` is
402-
/// ignored), but the current value of the signal mask is returned in `old_set`
403-
/// (if it is not `None`).
398+
/// * If `old_set` is not `None`, the previous value of the signal mask is stored in oldset.
399+
/// * If `set` is `None`, then the signal mask is unchanged (i.e., `how` is ignored), but the
400+
/// current value of the signal mask is returned in `old_set` (if it is not `None`).
404401
pubfnset_mask(&self,how:SigProcMask,set:Option<u64>,old_set:Option<&mutu64>){
405402
ifletSome(old) = old_set{
406403
*old =self.blocked_mask.load(Ordering::SeqCst);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp