How to detect the page read/write fault ?

Yung-Chang Chiu qson at hpds.ee.ncku.edu.tw
Thu Feb 8 06:45:23 UTC 2007


On the x86 machine, i can use the below program to detect read or write fault.
write_fault=uap->uc_mcontext.gregs[REG_ERR]&4;

but it don't work on AMD64 machine.

I have been search on internet, but there is no answer for AMD64.
Anybody can tell me how to do?




More information about the amd64-list mailing list