From 5cdc240d1338b53a1d8b9f652b0cc628317f3109 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 8 Apr 2019 17:49:25 -0600 Subject: [PATCH] 0.1.54 - add method to disable caching when using physmap --- Cargo.toml | 2 +- src/flag.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8c76ca3193..ab85545620 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "redox_syscall" -version = "0.1.53" +version = "0.1.54" description = "A Rust library to access raw Redox system calls" license = "MIT" authors = ["Jeremy Soller "] diff --git a/src/flag.rs b/src/flag.rs index c519d0c123..6a03793b87 100644 --- a/src/flag.rs +++ b/src/flag.rs @@ -56,8 +56,9 @@ pub const O_SYMLINK: usize = 0x4000_0000; pub const O_NOFOLLOW: usize = 0x8000_0000; pub const O_ACCMODE: usize = O_RDONLY | O_WRONLY | O_RDWR; -pub const PHYSMAP_WRITE: usize = 1; -pub const PHYSMAP_WRITE_COMBINE: usize = 2; +pub const PHYSMAP_WRITE: usize = 0x0000_0001; +pub const PHYSMAP_WRITE_COMBINE: usize = 0x0000_0002; +pub const PHYSMAP_NO_CACHE: usize = 0x0000_0004; pub const PROT_NONE: usize = 0x0000_0000; pub const PROT_EXEC: usize = 0x0001_0000;