107 Commits (d2d9affddff44d68e7f3ad4acf84daf14458de19)

Author SHA1 Message Date
WangRunji d2d9affddf Use multiboot2 to locate RSDT
7 years ago
WangRunji 0e2cccef9e Use uart_16550 crate
7 years ago
WangRunji f707d7e757 Fit new rust nightly. Update dependencies.
7 years ago
WangRunji f4b9308f2c Use x86_64 paging! Remove original paging mod.
7 years ago
WangRunji 60ed3a2ed4 Fix SMP. Move cpu::init to asm.
7 years ago
WangRunji 4817f69acb Update x86_64 to 0.2.3. FIXME: SMP
7 years ago
WangRunji 1760d76581 Basic sync::mpsc. FIXME: deadlock.
7 years ago
WangRunji 0b0dac3c81 Complete `Semaphore` `Condvar`, dining-philosophers-problem using monitor
7 years ago
WangRunji f3d62a5b8f Replace `AreaFrameAllocator` by `BitAllocator`. Set opt-level=1 to avoid stack overflow.
7 years ago
WangRunji 8d6663edb0 Fix and simplify SMP
7 years ago
WangRunji 2e9ffb84fa HUGE REFACTOR for memory mod: unified to `MemorySet`!
7 years ago
WangRunji 5891613b22 Split sync mod
7 years ago
WangRunji 31bc92aec6 ThreadLock. Dining philosophers problem. Fix thread::spawn.
7 years ago
WangRunji 2ad61cae65 Impl std-like thread interface.
7 years ago
WangRunji dcdbcfbce8 Impl spin & no-interrupt lock. Enable interrupt during syscall.
7 years ago
WangRunji 64b3716c92 HUGE: Impl switch() like ucore/xv6.
7 years ago
WangRunji 6c135bca24 Refactor interrupt mod and add some docs
7 years ago
WangRunji ffb7e194f9 Fix set TSS in SMP
7 years ago
WangRunji f35d74c734 Huge refactor for interrupt.
7 years ago
WangRunji 4e35b927d2 Yield. Shorter schedule interval.
7 years ago
WangRunji 601d0f85bd Add an event system in the Processor. Can sleep and wakeup.
7 years ago
WangRunji 0f26f6ffd6 Basic EventHub and Timer.
7 years ago
WangRunji 950fe4fedc Use crate `log`. Print with color in console.
7 years ago
WangRunji 731d6319e4 Can load user programs from sfs.img (hard linked).
7 years ago
WangRunji 5a1dc423e0 Shared memory & Copy on write !
7 years ago
WangRunji 4d6925a562 Fork (not finished). Not depend on boot_info after remap_kernel.
7 years ago
WangRunji 678d1d2b54 Some tiny changes
7 years ago
WangRunji 7cdfb9e6e2 Basic syscall
7 years ago
WangRunji 40b02c33cb Switch page table for user process
7 years ago
WangRunji 8ce3173c3d Link a user program from xv6-x86_64 in. Add elf crate.
7 years ago
WangRunji 0553d3374d Can switch between `init` and `idle` process
7 years ago
WangRunji 4f18f70e19 Can switch between ring0 and ring 3. Fix IDT bugs.
7 years ago
WangRunji 7d28231f1b Can run into another kernel thread
7 years ago
WangRunji 5d857c38eb Let struct Stack own the stack, panic on Drop. Add a little process mod.
7 years ago
WangRunji 0539f8673e Rewrite interrupt handlers using Redox style. Prepare for saving context.
7 years ago
WangRunji 69f6f4070e Add IRQ handler for ToUser, ToKernel, GPF, Syscall.
7 years ago
WangRunji cb19bc5464 Start AP one by one. Fix deadlock.
7 years ago
WangRunji 2b813b2acc Set CPU num to 4. Init lapic for each. TODO: fix deadlock.
7 years ago
WangRunji f6df3c412c Now CPU1 can handle interrupt. Alloc TSS & GDT & IDT at kernel heap.
7 years ago
WangRunji 3e9ee46850 Now CPU1 can enter Rust. Change kernel guard page.
7 years ago
WangRunji 8a8aff8917 Copy start_ap to lapic.c . Simple startothers(). Try to boot AP but failed.
7 years ago
WangRunji 038867921e Move device init to arch mod
7 years ago
WangRunji 01c0c3b2ad Move IDT & GDT to arch, as Redox did.
7 years ago
WangRunji 77703442e7 Move `paging` mod to `arch`, as Redox did.
7 years ago
WangRunji 5b91db9d76 Move interrupt mod
7 years ago
WangRunji d330bd8224 Merge branch 'dev' into move-kernel-va
7 years ago
WangRunji cea8ccdac9 Recover IDT, using Once<>
7 years ago
WangRunji 230d5a0287 Move remap_the_kernel() out of `paging` mod. Add page fault handler.
7 years ago
WangRunji 9b4d9a4a1f Init IDT at beginning
7 years ago
WangRunji 3b792baf5b ACK for APIC IRQ
7 years ago