Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void _start(void)
- {
- int n=1;
- char *b=(char *)0x00000400; //1024*1;
- char *c=(char *)0x00100400; //1024*(1024+1);
- //char *c=(char*)0x01000400; // no problems with that
- //char *c=(char*)0x00100401; // no problems with that
- *b=1;
- *c=2;
- if(*b == 2)
- {
- asm volatile("jmp 0x0\n");//should never be executed. if it is executer
- // then virtualbox will crash
- }
- while(1); // if all is ok my kernel does nothing but virtualbox doesn't crash
- }
Advertisement
Add Comment
Please, Sign In to add comment