diff options
author | 2021-04-08 02:10:35 -0700 | |
---|---|---|
committer | 2021-04-08 02:10:35 -0700 | |
commit | 523296c4ecfad57ef26aabdde1446c788dbc668e (patch) | |
tree | 910cea9953116816b41c67f9550e807a2eb39cda /src/bits64/syscall.rs | |
parent | e9fd841a6b89133f6afe46a8ce608af2f2e4b57e (diff) | |
download | rust-x86-523296c4ecfad57ef26aabdde1446c788dbc668e.tar.gz rust-x86-523296c4ecfad57ef26aabdde1446c788dbc668e.tar.zst rust-x86-523296c4ecfad57ef26aabdde1446c788dbc668e.zip |
Fix clippy warnings.
Diffstat (limited to 'src/bits64/syscall.rs')
-rw-r--r-- | src/bits64/syscall.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/bits64/syscall.rs b/src/bits64/syscall.rs index b370282..63c7c30 100644 --- a/src/bits64/syscall.rs +++ b/src/bits64/syscall.rs @@ -88,6 +88,10 @@ macro_rules! syscall { }; } +/// Invoke a syscall. +/// +/// # Safety +/// Throws `#UD` if IA32_EFER.SCE = 0. #[cfg(target_arch = "x86_64")] #[inline(always)] #[allow(unused_mut)] @@ -97,6 +101,10 @@ pub unsafe fn syscall0(arg0: u64) -> u64 { ret } +/// Invoke a syscall. +/// +/// # Safety +/// Throws `#UD` if IA32_EFER.SCE = 0. #[cfg(target_arch = "x86_64")] #[inline(always)] #[allow(unused_mut)] @@ -107,6 +115,10 @@ pub unsafe fn syscall1(arg0: u64, arg1: u64) -> u64 { ret } +/// Invoke a syscall. +/// +/// # Safety +/// Throws `#UD` if IA32_EFER.SCE = 0. #[cfg(target_arch = "x86_64")] #[inline(always)] #[allow(unused_mut)] @@ -117,6 +129,10 @@ pub unsafe fn syscall2(arg0: u64, arg1: u64, arg2: u64) -> u64 { ret } +/// Invoke a syscall. +/// +/// # Safety +/// Throws `#UD` if IA32_EFER.SCE = 0. #[cfg(target_arch = "x86_64")] #[inline(always)] #[allow(unused_mut)] @@ -127,6 +143,10 @@ pub unsafe fn syscall3(arg0: u64, arg1: u64, arg2: u64, arg3: u64) -> u64 { ret } +/// Invoke a syscall. +/// +/// # Safety +/// Throws `#UD` if IA32_EFER.SCE = 0. #[cfg(target_arch = "x86_64")] #[inline(always)] #[allow(unused_mut)] @@ -138,6 +158,10 @@ pub unsafe fn syscall4(arg0: u64, arg1: u64, arg2: u64, arg3: u64, arg4: u64) -> ret } +/// Invoke a syscall. +/// +/// # Safety +/// Throws `#UD` if IA32_EFER.SCE = 0. #[cfg(target_arch = "x86_64")] #[inline(always)] #[allow(unused_mut)] @@ -150,6 +174,10 @@ pub unsafe fn syscall5(arg0: u64, arg1: u64, arg2: u64, arg3: u64, arg4: u64, ar ret } +/// Invoke a syscall. +/// +/// # Safety +/// Throws `#UD` if IA32_EFER.SCE = 0. #[cfg(target_arch = "x86_64")] #[inline(always)] #[allow(unused_mut)] |