Commit Graph

51 Commits

Author SHA1 Message Date
fc3efd7c68
Fix ordering of INTERRUPT_FRAME in header 2020-11-26 04:03:43 +00:00
4a86fbd114
Add debugging symbols to output.. 2020-11-26 04:03:43 +00:00
75f44b0514
Add a memstart symbol to the linkerscript
This replaces the old way of appending the memory bitmap to the end of the kernel, which started causing problems with expansion..

I hardcoded the value to 0x1440, which is the start of the first FREE block of memory given to SeaBIOS in QEMU. This should be changed in the future..
2020-11-26 04:03:43 +00:00
bd8213356e
Adjust the crt0 file to insert a null stack frame before calling the kernel. Provides a solid base for the stack unwinding. 2020-11-26 04:03:43 +00:00
9b0aceac55
Minimise printing in physmem - turns out serial output is SLOW. 2020-11-26 04:03:43 +00:00
c5be09fc5d
Adjust formatting in paging that i missed 2020-11-26 04:03:43 +00:00
429fa55a73
Flailing with Invalid Opcode.. 2020-11-26 04:03:43 +00:00
acfe8c2666
Add stack unwinding to critical ISRs.
Also adjust the formatting of serial prints..
2020-11-26 04:03:43 +00:00
9646eac29e
Add basic stack unwinding functionality 2020-11-26 04:03:42 +00:00
0c0f52dbb9
Add opcode handling.. started debugging memory management. 2020-11-26 04:03:42 +00:00
fe15a79fc3
Fix building on Windows by dpeter99
Fix CMake invocation that confused it into using Visual Studio build tools..
2020-11-26 04:03:42 +00:00
Curle
b4121964c5
Fix pre.sh
I can't spell!
2020-11-26 04:03:42 +00:00
Curle
649c475f5d
Comment out the post-build script.
More preparation for build server.
2020-11-26 04:03:42 +00:00
Curle
caca55de6e
Update pre.sh with explicit cross-linker
Just to help automating the build process.
2020-11-26 04:03:42 +00:00
ba9e97a46a
Fix typo in post-build script 2020-11-26 04:03:42 +00:00
428dfce021
Remove large image file, add extra stuff to the gitignore 2020-11-26 04:03:42 +00:00
19c2ba6b72
Move toolchain to VirtualBox. qemu is too restrictive :/ 2020-11-26 04:03:42 +00:00
b86d8af721
Refactor CPU preparation into cpu.c, work on enabling AVX and SSE 2020-11-26 04:03:42 +00:00
0ff9705fc8
Poke paging. Still a little strange. Removed excess debugging. 2020-11-26 04:03:41 +00:00
Curle
15165b1562
We have virtual memory management!
Even if it's a little broken...
2020-11-26 04:03:41 +00:00
8665e4c634
Add defs required for kernel to compile 2020-11-26 04:03:41 +00:00
25d8f97693
Add symbols to linker script for page table generation 2020-11-26 04:03:41 +00:00
bd5389f1fc
Add new files to CMake 2020-11-26 04:03:41 +00:00
bade5bde21
Change bracketing to make gcc -Werror happy 2020-11-26 04:03:41 +00:00
9c65d7d19f
Add MMIO read/write functions. 2020-11-26 04:03:41 +00:00
2e662e3717
Add missing invlpg function to cpu.c 2020-11-26 04:03:41 +00:00
6faadded24
Rework memory management. 2020-11-26 04:03:41 +00:00
be4ee498c4
Add BXRC file for Bochs support. 2020-11-26 04:03:40 +00:00
a915465fc1
Add startings of new kernel-side library
Lainlib is libk. It is separate from Helix, which will become the 3D engine common to the kernel and the userspace.
2020-11-26 04:03:40 +00:00
61dbcc0dec
Remove dead files 2020-11-26 04:03:40 +00:00
86778f1518
Remove ISO components 2020-11-26 04:03:40 +00:00
Curle
8a3e80213f
Update README for new build process 2020-11-26 04:03:40 +00:00
b3e3f153b5
Add support for C++
This was a doozy. I had to recompile gcc with a custom target to get it to output the CRT{BEGIN/END}.o files with proper 64 bit relocations.

The CMakeLists.txt file was also edited to allow these files to be linked (thereby actually adding the support) as well as to automatically create the boot image upon build.
2020-11-26 04:03:40 +00:00
aa9600b2b0
Add PCI Enumeration to boot output 2020-11-26 04:03:40 +00:00
e8214d5650
Add basic PCI support.
Currently can only enumerate the PCI bus with a basic process, and retrieve basic details on every valid device.
2020-11-26 04:03:39 +00:00
1f514e9cb2
Refresh all files with project headers and documentation 2020-11-26 04:03:39 +00:00
ce85ddbd1c
Removed unnecessary VGA textmode header 2020-11-26 04:03:39 +00:00
f6e2f3ac5d
Removed unnecessary ISO files 2020-11-26 04:03:39 +00:00
7e7a76a5b9
Add Windows version of mkbootimg for platform agnosticity 2020-11-26 04:03:38 +00:00
c992564365
Move from CD-ROM images to Hard Disk images.
This involves a new img/ folder, a new program called mkbootimg, the accompanying chroma.json file that instructs mkbootimg how to create the image.

An extra Powershell script is included for brevity.
2020-11-26 04:03:38 +00:00
Curle
83aef00afa
Create README.md 2020-11-26 04:03:29 +00:00
af77c415ac
Add shebang lines to scripts 2020-11-26 04:03:29 +00:00
destoer
7603180791
fix compilier warnings 2020-11-26 04:03:29 +00:00
destoer
65aa630701
remove junk files 2020-11-26 04:03:29 +00:00
destoer
2e78df807b
remove makefile 2020-11-26 04:03:29 +00:00
destoer
7e9d2ec0f8
removed junk files 2020-11-26 04:03:28 +00:00
54489cdc75
Added Windows build script 2020-11-26 04:03:28 +00:00
destoer
f192162c54
added build scripts 2020-11-26 04:03:28 +00:00
74b44aab7f
Add missing files from git migration 2020-11-26 04:02:56 +00:00
d522d40ac8 Attempts at fixing paging.
Have somehow fixed the drawing routines along the way.

I also tried to implement a better keyboard handler, but that's quite a ways away right now.
2020-04-11 23:02:54 +01:00