Kernel: Shell is now launched as a capturing lambda
This commit is contained in:
		
							parent
							
								
									cdbad56ed7
								
							
						
					
					
						commit
						2161528cb6
					
				|  | @ -96,18 +96,9 @@ extern "C" void kernel_main() | ||||||
| 		return; | 		return; | ||||||
| 	dprintln("8042 initialized"); | 	dprintln("8042 initialized"); | ||||||
| 
 | 
 | ||||||
| 	Scheduler::Initialize(); | 	Scheduler::initialize(); | ||||||
| 	Scheduler& scheduler = Scheduler::Get(); | 	Scheduler& scheduler = Scheduler::get(); | ||||||
| 	scheduler.AddThread([](){ Shell(tty1).Run(); }); | 	scheduler.add_thread(BAN::Function<void()>([tty1] { Shell(tty1).run(); })); | ||||||
| 	scheduler.AddThread( | 	scheduler.start(); | ||||||
| 		[]() |  | ||||||
| 		{ |  | ||||||
| 			uint64_t start = PIT::ms_since_boot(); |  | ||||||
| 			while (PIT::ms_since_boot() < start + 3000) |  | ||||||
| 				continue; |  | ||||||
| 			kprintln("\nHello!"); |  | ||||||
| 		} |  | ||||||
| 	); |  | ||||||
| 	scheduler.Start(); |  | ||||||
| 	ASSERT(false); | 	ASSERT(false); | ||||||
| } | } | ||||||
		Loading…
	
		Reference in New Issue