File tree 10 files changed +17
-12
lines changed
10 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 2
2
//Interrupt handler for keyboard, reads scancode from keyboard controller then interprets it
3
3
4
4
use crate :: drivers:: pic:: PICS ;
5
- use crate :: shell:: SHELL ;
5
+ use crate :: shell:: shell :: SHELL ;
6
6
use core:: arch:: asm;
7
7
8
8
//Warning! Mutable static here
Original file line number Diff line number Diff line change 2
2
//Used to trigger the cpu scheduler and to context switch
3
3
4
4
use crate :: drivers:: pic:: PICS ;
5
- use crate :: task:: CPUState ;
6
- use crate :: task:: TASK_MANAGER ;
5
+ use crate :: multitasking :: task:: CPUState ;
6
+ use crate :: multitasking :: task:: TASK_MANAGER ;
7
7
use core:: arch:: asm;
8
8
9
9
pub const TIMER_INT : u8 = 32 ;
Original file line number Diff line number Diff line change 6
6
mod drivers;
7
7
mod filesystem;
8
8
mod interrupts;
9
+ mod memory;
10
+ mod multitasking;
9
11
mod shell;
10
12
mod syscalls;
11
- mod task;
12
- mod paging;
13
13
14
14
use core:: arch:: asm;
15
15
use core:: panic:: PanicInfo ;
16
16
use drivers:: disk:: DISK ;
17
17
use drivers:: pic:: PICS ;
18
18
use filesystem:: fat:: FAT ;
19
19
use interrupts:: idt:: IDT ;
20
- use shell:: SHELL ;
20
+ use shell:: shell :: SHELL ;
21
21
use syscalls:: print:: PRINTER ;
22
- use paging:: PAGING ;
23
- use paging:: PageTable ;
22
+ use memory :: paging:: PAGING ;
23
+ use memory :: paging:: PageTable ;
24
24
25
25
use libfelix;
26
26
@@ -56,7 +56,9 @@ pub extern "C" fn _start() -> ! {
56
56
PAGING . set_table ( 1 , & table1) ;
57
57
PAGING . set_table ( 2 , & table2) ;
58
58
PAGING . set_table ( 3 , & table3) ;
59
- //PAGING.set_table(15, &table2);
59
+
60
+ let table = PageTable :: new ( 0x00C0_0000 ) ;
61
+ PAGING . set_table ( 4 , & table) ;
60
62
61
63
PAGING . enable ( ) ;
62
64
}
Original file line number Diff line number Diff line change
1
+ pub mod paging;
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ pub mod task;
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ pub mod shell;
Original file line number Diff line number Diff line change 2
2
3
3
use crate :: filesystem:: fat:: FAT ;
4
4
use crate :: syscalls:: print:: PRINTER ;
5
- use crate :: task:: Task ;
6
- use crate :: task:: TASK_MANAGER ;
5
+ use crate :: multitasking :: task:: Task ;
6
+ use crate :: multitasking :: task:: TASK_MANAGER ;
7
7
8
8
const APP_TARGET : u32 = 0x0050_0000 ;
9
9
const APP_SIGNATURE : u32 = 0xB16B00B5 ;
Original file line number Diff line number Diff line change 2
2
3
3
use crate :: drivers:: pic:: PICS ;
4
4
use crate :: syscalls:: print;
5
- use crate :: task:: TASK_MANAGER ;
5
+ use crate :: multitasking :: task:: TASK_MANAGER ;
6
6
use core:: arch:: asm;
7
7
8
8
use core:: slice;
You can’t perform that action at this time.
0 commit comments