Browse Source

added define to provoke kernel panic when accessing the memory at that address

master
T. Meissner 10 years ago
parent
commit
f630c4e28c
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      c_pointers/chapter_5.c

+ 4
- 0
c_pointers/chapter_5.c View File

@ -113,6 +113,10 @@ int main(void) {
}
#define KERNEL_PANIC 0x0000
char *mem = (int*) KERNEL_PANIC;
// standard string operations
// comparing strings


Loading…
Cancel
Save