// // Start Kernel asmlinkage void start_kernel(void) { char buf[255]; int _i = 0; int _diff = 0; _video_draw_char('O', 79, 10); _video_draw_char('c', 79, 11); _video_draw_char('t', 79, 12); _video_draw_char('a', 79, 13); _video_draw_char('n', 79, 14); _video_draw_char('e', 79, 15); _video_draw_char(' ', 79, 16); _video_draw_char(' ', 79, 17); // Draw a banner line of the right side of the screen for (_i = 0; _i < 10; _i++) { _video_draw_char(' ', 79,_i); } for (_i = 18; _i < 22; _i++) { _video_draw_char(' ', 79,_i); } load_misc_kprint(); __sprintf(buf, "=========== Octane ===========\n"); __puts(buf); __sprintf(buf, "@INFO: Build: %ld; since (10/15/2007) %s\n", main_get_build_count, main_get_version); __puts(buf); //memory_end = (1<<20) + (EXT_MEM_K<<10); // memory_end &= PAGE_MASK; memory_end = 16*1024*1024; memory_start = 1024*1024; low_memory_start = (unsigned long) &_end; // now lets load the IDT load_exception_table(); init_interrupts(); sched_init(); load_keyboard_driver(); //memory_start = blk_dev_init(memory_start, memory_end); sti(); //calibrate_delay(); //memory_start = inode_init(memory_start, memory_end); //memory_start = file_table_init(memory_start, memory_end); //mem_init(low_memory_start, memory_start, memory_end); //buffer_init(); time_init(); // Print the current time. printk("INFO: current time: %d\n", xtime.tv_sec); printk("INFO: %d/%d/%d %d:%d\n", cur_simpletime.mon, cur_simpletime.day, cur_simpletime.year, cur_simpletime.hour, cur_simpletime.min); floppy_init(); sti(); //__debug_floppy_open(); //__debug_floppy_release(); test_time_1(); test_block_1(); tests(); for(;;) { _nop(); } }
int main() { test_time_1(); test_time_2(); }