Skip to content

Commit

Permalink
sys/_stdint.h: Simplify vaddr_t typedef by using ptraddr_t
Browse files Browse the repository at this point in the history
These should be entirely the same for all supported architectures, so
make the former more obviously an alias for the latter.
  • Loading branch information
jrtc27 committed Jul 25, 2023
1 parent 7806058 commit 2d28d4b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sys/sys/_stdint.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,7 @@ typedef __ptraddr_t ptraddr_t;
#endif

#ifndef _VADDR_T_DECLARED
#ifndef __CHERI_PURE_CAPABILITY__
typedef __uintptr_t vaddr_t;
#else
typedef __uint64_t vaddr_t;
#endif
typedef ptraddr_t vaddr_t;
#define _VADDR_T_DECLARED
#endif

Expand Down

0 comments on commit 2d28d4b

Please sign in to comment.