RTEMS | riscv: refactor riscv-utility.h (!1222)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Tue Apr 28 23:54:29 UTC 2026
Sebastian Huber started a new discussion on cpukit/score/cpu/riscv/include/rtems/score/riscv-utility.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1222#note_149223
> -
> -// page table entry (PTE) fields
> -#define PTE_V 0x001 // Valid
> -#define PTE_R 0x002 // Read
> -#define PTE_W 0x004 // Write
> -#define PTE_X 0x008 // Execute
> -#define PTE_U 0x010 // User
> -#define PTE_G 0x020 // Global
> -#define PTE_A 0x040 // Accessed
> -#define PTE_D 0x080 // Dirty
> -#define PTE_SOFT 0x300 // Reserved for Software
> -
> -#define PTE_PPN_SHIFT 10
> -
> -#define PTE_TABLE(PTE) (((PTE) & (PTE_V | PTE_R | PTE_W | PTE_X)) == PTE_V)
> +#include <encoding.h>
This include should be `#include "encoding.h"` to match with the install location of the header.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1222#note_149223
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260428/32751ade/attachment-0001.htm>
More information about the bugs
mailing list