everything works now for ever
This commit is contained in:
@@ -10,9 +10,15 @@ extern "C" void main() {
|
|||||||
unsigned id = sys_getpid();
|
unsigned id = sys_getpid();
|
||||||
char text[] = "testX";
|
char text[] = "testX";
|
||||||
text[4] = 0x30+id;
|
text[4] = 0x30+id;
|
||||||
|
char buf= 32 ;
|
||||||
for (unsigned i = 1;; ++i) {
|
for (unsigned i = 1;; ++i) {
|
||||||
write(1, text, sizeof(text));
|
write(1, text, sizeof(text));
|
||||||
|
void* ptr= map(512);
|
||||||
|
|
||||||
|
//sprintf(&buf, "ptr address: %x \n" , ptr);
|
||||||
|
//unmap(ptr, 512);
|
||||||
|
|
||||||
|
|
||||||
//if(i==id){
|
//if(i==id){
|
||||||
// //write(2, "kill", 4);
|
// //write(2, "kill", 4);
|
||||||
// //write(2, &text[4], 1);
|
// //write(2, &text[4], 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user