Code: Select all
clear();
interrupts();
sti();
tm=time_init();
paging_init();
printk("startup date: %2d/%2d/%2d\n", tm.day, tm.month, tm.year);
printk("startup time: %2d:%2d:%2d\n\n", tm.hour, tm.min, tm.sec);
char *test;
char *test1;
//printk("Location of `test': %x at initialization\n", test);
test = (char *)malloc(sizeof(char));
//printk("Location of `test': %x after malloc\n", test);
test = "Hello World!";
//printk("Location of `test': %x after assignment\n\n", test);
//printk("Location of `test1': %x at initialization\n", test1);
test1 = (char *)malloc(sizeof(char));
//printk("Location of `test1': %x after malloc\n", test1);
test = "I'm Alive\n";
//printk("Location of `test1': %x after assignment\n\n", test1);