Esempio n. 1
0
void tpie_init(int subsystems) {
	if (subsystems & MEMORY_MANAGER)	
	 	init_memory_manager();

	if (subsystems & DEFAULT_LOGGING)
		init_default_log();

	if (subsystems & PRIMEDB)
		init_prime();

	if (subsystems & CAPTURE_FRACTIONS) {
		init_fraction_db(true);
		init_execution_time_db();
	} else if (subsystems & PROGRESS) {
		init_fraction_db(false);
		init_execution_time_db();
	}

	if (subsystems & JOB_MANAGER)
		init_job();

	if (subsystems & STREAMS) {
		init_stream_buffer_pool();
		init_compressor();
	}

	if (subsystems & HASH)
		init_hash();
}
Esempio n. 2
0
void  kernel_main(){
    arch::enable_sse();

    interrupt::install_idt();
    interrupt::install_isrs();
    interrupt::remap_irqs();
    interrupt::install_irqs();
    interrupt::enable_interrupts();

    e820::finalize_memory_detection();

    init_memory_manager();

    install_timer();
    //acpi::init();
    keyboard::install_driver();
    disks::detect_disks();

    //Call global cosntructors
    _init();

    //Launch the shell
    init_shell();

    return;
}
Esempio n. 3
0
File: main.cpp Progetto: rstat1/Plex
void kernel_main(struct multiboot_info *mboot, int initial_stack)
{
    long int mem = 0;
	mboot_info = mboot;
	start_video();
    putstr("Init Descriptor Tables................."); 
    gdt_install(); 
    idt_install();
    putstr("[OK]\n"); 
    putstr("Init ISRs.............................."); 
    isr_install();    
    putstr("[OK]\n"); 
    putstr("Init IRQs.............................."); 
    irq_install(); 
    __asm__ __volatile__ ("sti");   
    putstr("[OK]\n"); 
    putstr("Init PIT..............................."); 
    timer_install();
    putstr("[OK]\n");    
    putstr("Amount of memory......................");
    mem = mboot->mem_upper / 1024; 
    putnum(mem);
    putstr("MB\n");
	putstr("Init Memory............................");
	init_memory_manager();
    putstr("\n\n");     
    putstr("\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tWelcome to Plex!");
    for (;;); 
}
Esempio n. 4
0
void kernel_main(char boot_disk_id, void *memory_map, BootModuleInfo *boot_module_list)
{
	init_memory_manager(memory_map);
	init_tty();
	clear();
	init_interrupts();
	init_pci();

	int arr[10000];
	textcolor(2);
	printf("Structure size: %d\n",sizeof(arr));
	printf("kernel_page_dir = 0x%x\n", kernel_page_dir);
	printf("memory_size = %d MB\n", memory_size / 1024 / 1024);
	printf("get_page_info(kernel_page_dir, 0xB8000) = 0x%x\n", get_page_info(kernel_page_dir, (void*)0xB8000));

}
Esempio n. 5
0
void S_Init()
{
	init_memory_manager();
	init_streaming();
	init_sound_engine();
	init_comms();
	init_reverb();
	init_waves();
	init_voices();

	// Load the banks.
	AK::SoundEngine::LoadBank(AK::BANKS::INIT, AK_DEFAULT_POOL_ID);
	AK::SoundEngine::LoadBank(AK::BANKS::GLOBAL, AK_DEFAULT_POOL_ID);

	snd_initialized = qtrue;
}
Esempio n. 6
0
void init(multiboot_info_t* mb_info, unsigned long magic)
{
    clear_screen();
    init_serial();
    init_ata();
    //initalize the memory manager
    init_memory_manager(mb_info);
    //clean the multiboot info after it isn't needed anymore
    mb_info = NULL;
    
    init_keyboard();
    
    kprintf("Initalizing GDT...\n");
    init_gdt();
    kprintf("Initalizing IDT...\n");
    init_idt();
    init_multitasking();
}