diff options
author | Christoph Hellwig <hch@lst.de> | 2019-04-15 11:14:33 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmer@sifive.com> | 2019-04-25 14:51:10 -0700 |
commit | 5cfade5fdcc9753c5b3958f65f0716a31268dd3e (patch) | |
tree | e79e0917a50a5bf35b5d49db70cedeb9cfde24af /arch/riscv/include/asm/thread_info.h | |
parent | riscv: use asm-generic/extable.h (diff) | |
download | wireguard-linux-5cfade5fdcc9753c5b3958f65f0716a31268dd3e.tar.xz wireguard-linux-5cfade5fdcc9753c5b3958f65f0716a31268dd3e.zip |
riscv: turn mm_segment_t into a struct
This matches what other heavily used architectures do, and will allow us
to easily use <asm-generic/uaccess.h> for the nommu case.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/include/asm/thread_info.h')
-rw-r--r-- | arch/riscv/include/asm/thread_info.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/thread_info.h b/arch/riscv/include/asm/thread_info.h index 1c9cc8389928..9c039870019b 100644 --- a/arch/riscv/include/asm/thread_info.h +++ b/arch/riscv/include/asm/thread_info.h @@ -28,7 +28,9 @@ #include <asm/processor.h> #include <asm/csr.h> -typedef unsigned long mm_segment_t; +typedef struct { + unsigned long seg; +} mm_segment_t; /* * low level task data that entry.S needs immediate access to |