Commit Graph

340 Commits

Author SHA1 Message Date
Mathieu Maret
186192023d Exception: fix stack for ex withour err code 2021-10-29 12:29:18 +02:00
Mathieu Maret
f1039b7fe4 context: add copy kernel context
fix also some indentation
2021-10-28 19:18:03 +02:00
Mathieu Maret
ca399ee782 Modify areaAdd api to be able to do more check 2021-10-28 18:33:02 +02:00
Mathieu Maret
be080af906 Fix initial area setup
The inital kernel stack was not page aligned and thus was found in 2
area
2021-10-28 18:19:35 +02:00
Mathieu Maret
e658ea6e48 Fix upper area limit 2021-10-28 11:03:44 +02:00
Mathieu Maret
07d173a9c1 Sync PDs on modifications 2021-10-28 00:41:02 +02:00
Mathieu Maret
7b9ceba6b2 Give stack information to area 2021-10-28 00:32:35 +02:00
Mathieu Maret
9ae500f06e Add more test 2021-10-27 17:39:17 +02:00
Mathieu Maret
7f6bb8eef3 add mmu context 2021-10-27 17:36:12 +02:00
Mathieu Maret
46e1bb0642 area alloc: mapping optionnal 2021-10-27 17:30:58 +02:00
Mathieu Maret
2c6ffe34a1 Allow to unref unrefered page 2021-10-27 17:26:49 +02:00
Mathieu Maret
4aa093034b Page fault: more information 2021-10-27 17:20:28 +02:00
Mathieu Maret
fbb51dff0f Fix Area research and init size 2021-10-27 17:17:41 +02:00
Mathieu Maret
1e7f99a3e2 Correct irq asm handling 2021-10-27 10:52:50 +02:00
Mathieu Maret
3fb667d62e Core exception handling w or wo err code 2021-10-27 10:13:11 +02:00
Mathieu Maret
75dbbdb53b Wrap IRQ, Exception, cpu_context to be ready for user
Fix ASM where ebp was push 2 times.
One by pushw ebp
One by pushal later
2021-10-27 00:14:22 +02:00
Mathieu Maret
8f6f6cf471 WIP: add TSS management 2021-10-25 21:29:18 +02:00
Mathieu Maret
8a53ecfecd VGA: could be configured from MBI 2021-10-25 21:29:02 +02:00
Mathieu Maret
8ff10c938c Improve print information from mbi 2021-10-18 20:39:08 +02:00
mathieu
d2accf3da6 Merge pull request 'ASM_WRAPPER' (#3) from ASM_WRAPPER into master
Reviewed-on: http://git.mathux.org/mathieu/matos/pulls/3
2021-10-08 17:07:17 +02:00
Mathieu Maret
5c7242e4dc Use ASM exception wrapper 2021-10-08 16:42:32 +02:00
Mathieu Maret
4e14b05f72 irq handler get complete CPU state in arguments 2021-10-08 15:30:08 +02:00
Mathieu Maret
d2417ef349 esp and ss are push for x86_64 2021-10-08 12:01:57 +02:00
Mathieu Maret
ddc0c4c84a Wrap IRQ with ASM 2021-10-08 11:24:02 +02:00
Mathieu Maret
590311f3f1 Add ATA to feature 2021-10-06 14:00:55 +02:00
mathieu
f9d8a4ad29 Merge pull request 'ata' (#2) from ata into master
Reviewed-on: http://git.mathux.org/mathieu/matos/pulls/2
2021-10-06 13:50:10 +02:00
Mathieu Maret
19714126d1 ATA add write and some test 2021-10-06 10:45:03 +02:00
Mathieu Maret
1a337881f3 ATA Add Read function 2021-10-06 08:45:19 +02:00
Mathieu Maret
4fe87718b1 Add target for disk img 2021-10-05 22:07:17 +02:00
Mathieu Maret
1ce5874b0a Add disk image option to makefile 2021-10-05 22:01:13 +02:00
Mathieu Maret
a47783ed9c fix ATA disk and controller detection 2021-10-05 21:59:36 +02:00
Mathieu Maret
9c36f3afa2 Add zalloc 2021-10-04 21:20:16 +02:00
Mathieu Maret
f2e32cc0fd Add ATA 2021-10-03 23:19:00 +02:00
Mathieu Maret
92b4f4af3a Add Feature section to Readme 2021-10-01 22:26:24 +02:00
mathieu
d357d63ff3 Merge pull request 'areaIntegration' (#1) from areaIntegration into master
Reviewed-on: http://git.mathux.org/mathieu/matos/pulls/1
2021-10-01 22:22:09 +02:00
mathieu
1222c0b998 Merge branch 'master' into areaIntegration 2021-10-01 22:21:31 +02:00
Mathieu Maret
8edaa8646f link slab allocator to areaAlloc 2021-10-01 22:21:11 +02:00
Mathieu Maret
a96f72b0af Add alternative memcpy implementation 2021-09-15 21:58:06 +02:00
Mathieu Maret
57bae864f8 Add memcpy perf test 2021-09-15 21:53:08 +02:00
Mathieu Maret
10d42721e9 Add read_cycle_counter 2021-09-15 21:51:58 +02:00
Mathieu Maret
220597a881 gdb: add custom cmd for printing linked list 2021-08-19 16:42:44 +02:00
Mathieu Maret
31aaf10635 bootstrap alloc and area 2021-08-09 14:55:47 +02:00
Mathieu Maret
5a078249d0 Makefile: grouped targets for kernel.sym 2021-08-02 15:07:45 +02:00
Mathieu Maret
8bb6cdbad4 Complete details about first 1MB reserved 2021-06-09 22:23:33 +02:00
Mathieu Maret
865d3b811e Rename memDesc to phyMemDesc 2021-04-10 21:53:03 +02:00
Mathieu Maret
4887984322 Thinner phy page pre-booking 2021-04-10 00:24:02 +02:00
Mathieu Maret
32446b3603 Correct NULL access 2021-04-09 20:47:20 +02:00
Mathieu Maret
1d1ed1ef60 GDB: add cmd for Phy Mem state 2021-04-09 20:46:49 +02:00
Mathieu Maret
8c0c61c099 Pagefault handler never come back 2021-04-09 20:45:40 +02:00
Mathieu Maret
582c06afbc Reduce mem to 16M in debug 2021-04-09 20:44:48 +02:00