Hi,
I'm writing a C program in Linux to display memory content of BIOS data area at segement 0040h with offset 0013h. Below is my program:
#include <stdio.h>
int *ptr;
int main(void)
{
ptr = 00400013
printf("\nContent is %d\n", *ptr);
return 0;
}
When I ran this program, I got this error "segmentation fault". Does it related to protected mode in Linux? If so, what can I do?