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:
ptr = 00400013
printf("\nContent is %d\n", *ptr);
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?