mark pages as _guarded

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mark pages as _guarded

Jump to solution
697 Views
vasanthsri
Contributor III

Dear All,

We have an user space program (real time application) which mmap's ~1.5 GB data space and 1 GB of program space and like to mark few pages (memory segments) as "Guarded" to avoid speculative fetching.

Is there any wrapper in Linux which helps to mark the pages -or- memory as guarded (_PAGE_GUARDED) i.e. G-PAGE ?

Processor : P4040

Linux        : 2.6.34.12

Thanks in Advance.

Labels (1)
0 Kudos
1 Solution
575 Views
scottwood
NXP Employee
NXP Employee

There is no existing mechanism to do this.

View solution in original post

0 Kudos
2 Replies
576 Views
scottwood
NXP Employee
NXP Employee

There is no existing mechanism to do this.

0 Kudos
575 Views
vasanthsri
Contributor III

Thanks Scott for the confirmation on this regard. I thought, there is some -hidden- protection mechanism implemented like PROT_GUARD which will help to mark these pages as "guarded" from application (userland) perspective.

0 Kudos