53 Commits

Author SHA1 Message Date
6854ad489f Use gcc stack protector
Trick was to use the stack-protector-guard option otherwise gcc expect
the canary value to be stored on the Thread Local Storage of the current
thread.
That does not work the same way for us, so trying to access TLS at
%gs (the canonical place for the TLS), where gcc expect the canary to be
storeg, lead to system reboot as it is not setup.
2025-02-20 17:13:01 +01:00
454f0875f5 Add isodebug target
Allow to take benefit from elf symboles
2024-02-15 23:41:58 +01:00
f9ce88e7a3 Makefile: use no intermediate file
To speedup, a bit, the compilation, use -pipe option for gcc
2024-02-14 18:28:11 +01:00
Mathieu Maret
bd25bb8478 Add calloc, realloc, memmove. Sync klibc and libc 2024-01-31 12:57:35 +01:00
Mathieu Maret
f110f85498 Simplify partition setup
To prepare part1 for grub, part2 for userdata
2023-11-20 00:15:50 +01:00
Mathieu Maret
63757b1e0c Grub: change default timeout 2023-11-19 23:52:41 +01:00
Mathieu Maret
d6dc298d35 Add more makefile doc 2023-11-09 23:46:26 +01:00
Mathieu Maret
4376201d32 debug symbols are expected in .debug file 2023-11-09 23:44:04 +01:00
Mathieu Maret
a459111348 Makefile: help menu and gen .i files 2023-11-08 21:02:53 +01:00
Mathieu Maret
535290cf40 Add doc generation 2022-09-03 23:31:51 +02:00
Mathieu Maret
db0d3dff14 Add debug link for kernel symbols 2022-04-05 22:00:14 +02:00
Mathieu Maret
070a42844a Makefile: Add screenshot target 2021-11-15 14:57:57 +01:00
Mathieu Maret
79d57bc476 Makefile: RUN_TEST for debug_test target only 2021-11-13 08:30:14 +01:00
Mathieu Maret
08a9d7442e Add user file size before the file
As a quick fix before FS support
2021-11-08 22:33:15 +01:00
Mathieu Maret
2b32908029 load userspace from disk 2021-11-05 23:02:23 +01:00
Mathieu Maret
47f1d3f8ab Makefile: some simplification 2021-11-05 09:28:25 +01:00
Mathieu Maret
2cfa67b8e2 Add partition table support 2021-11-05 08:57:17 +01:00
Mathieu Maret
814d38bc97 Makefile: all asm in Gnu AS 2021-10-31 00:04:01 +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
8a53ecfecd VGA: could be configured from MBI 2021-10-25 21:29:02 +02:00
Mathieu Maret
5c7242e4dc Use ASM exception wrapper 2021-10-08 16:42:32 +02:00
Mathieu Maret
ddc0c4c84a Wrap IRQ with ASM 2021-10-08 11:24:02 +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
5a078249d0 Makefile: grouped targets for kernel.sym 2021-08-02 15:07:45 +02:00
Mathieu Maret
cff4e43cb8 Reduce mem to 32M 2021-04-09 20:44:24 +02:00
Mathieu Maret
ef78de447f Improve make target names 2021-01-26 17:58:33 +01:00
Mathieu Maret
9e5b4f0060 Revert "makefile: disable pie"
This reverts commit f64bbd9d9015467647f82e9049ebca848fd15365.
it leads to "Error loading uncompressed kernel without PVH ELF Note"
2021-01-26 08:43:06 +01:00
Mathieu Maret
f64bbd9d90 makefile: disable pie 2021-01-25 20:29:40 +01:00
Mathieu Maret
c3d345bb87 Add 64bit printf 2021-01-23 21:21:13 +01:00
Mathieu Maret
fa9955dd7f Simplifi debug cmd (allow ctrl-c) 2020-08-18 13:55:52 +02:00
Mathieu Maret
88d0266d76 gdb: add non-core dir 2020-05-06 21:05:09 +02:00
Mathieu Maret
c65c7bb7b0 More more stuff in arch subdir 2020-04-29 23:07:01 +02:00
Mathieu Maret
e51314ffac organize by arch 2020-04-27 23:45:38 +02:00
Mathieu Maret
6c3a03a4bc Implement Jiffies 2020-04-27 23:26:22 +02:00
Mathieu Maret
ffac8fedb3 Add core dir by default for gdb 2020-04-23 23:36:40 +02:00
Mathieu Maret
2c0f54926d Initial kthread implementation 2020-04-23 14:49:42 +02:00
Mathieu Maret
7248cd75ae Use i386 qemu for debugging
This help going over function and not stepping in
2020-04-19 14:30:50 +02:00
Mathieu Maret
de3c5e5dc2 Disable vect from compiler
Otherwise, this may produce vectorized instruction (mmx, sse ...) that
will rise a EXCEPTION_INVALID_OPCODE
2019-05-16 23:45:45 +02:00
Mathieu Maret
3bca737990 Add context switch
This is taken from SOS
2019-05-15 23:22:28 +02:00
Mathieu Maret
e1ac9ebd9d Fix iso generation
echo -e does not work on ubuntu
echo does. It's the opposite on archlinux...
Use printf!
2019-05-12 22:56:51 +02:00
Mathieu Maret
7a684d735c Fix iso generation 2019-05-10 16:31:33 +02:00
Mathieu Maret
4e050d5364 Makefile: clean isodir 2019-01-09 17:21:51 +01:00
Mathieu Maret
e998fec795 stack_trace try to get function arguments 2018-11-19 13:57:07 +01:00
Mathieu Maret
dc0789aa72 makefile: reorg flags 2018-11-16 19:57:56 +01:00
Mathieu Maret
085857a900 Add backtrace function 2018-11-16 14:47:21 +01:00
Mathieu Maret
4e93b8c26b make:fix debug target 2018-11-09 10:50:20 +01:00
Mathieu Maret
7633e54663 Add some way to test kernel 2018-11-08 22:09:12 +01:00
Mathieu Maret
89837e03bf Makefile correction
* fix fd.iso kernel path
* add debug target
2018-08-05 14:12:18 +02:00
Mathieu Maret
86f55a41ef Can generate symbole file 2018-07-20 17:10:58 +02:00