2334d80225
Fixed the print functions. Yay!
2016-03-20 17:07:33 -04:00
c2a0d01995
Append libgcc to kernel build
2016-03-20 13:57:54 -04:00
b242a48282
Remove reference to console in Multiboot
2016-03-20 12:56:57 -04:00
6898153366
Use custom type names in Main.cc
2016-03-20 12:56:43 -04:00
b3d47319a9
Update Console::printFormat to new style
2016-03-20 12:56:28 -04:00
d2d7fac4df
Lots of CString clean up; attempt #1 at implementing int to string conversion
...
Long (64-bit) ints are hard to do on 32-bit...
2016-03-20 12:56:07 -04:00
d8b05620cc
Print the memory map
2016-03-20 03:38:52 -04:00
addf61ee7a
Add typedefs for standard types
...
Rust style integer type names. So much easier to write out...
2016-03-20 03:38:12 -04:00
603e76078d
Set up %ebp for the temporary stack too
2016-03-20 03:37:45 -04:00
9c5460c1f5
Clean up Multiboot a bit
...
Thanks to Aimee for helping out with figuring out the iterator.
2016-03-20 03:37:20 -04:00
2b39ac909e
Implement kstd::CString::copy()
...
Clean up the rest of the CString stuff
2016-03-20 03:34:37 -04:00
a22cec7930
Print memory map information
2016-03-20 00:43:26 -04:00
84b0ab7613
Format tweaking...
2016-03-20 00:42:44 -04:00
4d7187e33e
Comment formatting
2016-03-19 20:21:40 -04:00
ec74cb650c
Attempt to write an iterator for the multiboot memory map list
2016-03-19 12:01:01 -04:00
fad5a48e5b
Add compiler Attributes header file
2016-03-19 04:05:23 -04:00
3afb47e573
Build Multiboot.cc
2016-03-19 04:05:09 -04:00
3a40e246c2
Fix keyboard interrupt printing
2016-03-19 04:04:59 -04:00
100da19d28
Add Multiboot information struct and pass it in to kmain()
...
Print memory availability
2016-03-19 03:45:23 -04:00
98ad3282c1
Stubs from memory utilities
2016-03-16 12:10:13 -04:00
7a15e00cc2
Add some system exception handlers and clean up assemply a bit
2016-03-13 19:33:10 -04:00
0948c0cc46
Use NonSpecificEOI instead of NOPEOI
2016-03-13 19:19:39 -04:00
10d006eb90
Move exception dispatch to InterruptHandler
2016-03-13 19:18:55 -04:00
3e1993084d
Read the scancode from the keyboard buffer when keyboard interrupt received
...
*This* is why I couldn't get more that one keyboard interrupt.
2016-03-13 19:14:37 -04:00
cd39d95a1c
Move interrupt dispatch to InterruptHandler; make individual handlers private
2016-03-13 18:44:13 -04:00
683b79fa07
Make PIC::endOfInterrupt const
2016-03-13 18:41:34 -04:00
4e715c10af
More #define magic for ISRs
2016-03-13 18:40:45 -04:00
2424ecaa30
Send EOI to PIC when we're done with a hardware interrupt
2016-03-13 15:55:40 -04:00
5e2c89e588
OMG INTERRUPTS ARE WORKING
...
The segment selector that you put in the interrupt table is a byte offset, and
*not* an index into the table. Now interrupts work!
But only one. And I think I know how to fix this...
2016-03-13 15:54:25 -04:00
1f6ce53e08
Add method to post an interrupt in software
2016-03-13 15:47:50 -04:00
cf8047f7be
Print descriptor table information when loading
2016-03-13 15:47:11 -04:00
fdc7232079
Code formatting
2016-03-13 15:06:05 -04:00
2e262df414
Getting too fancy with my CString::length()
2016-03-13 15:05:53 -04:00
d62bc7f9d4
Console::printFormat is a printf() style function
2016-03-13 13:56:21 -04:00
d5c7ded8c9
Fixed up Console::printFormat
2016-03-13 13:53:19 -04:00
af8a3c379e
Add CString utilities to kstd
2016-03-13 13:51:13 -04:00
0027a8adb7
Rename and fix up ASCII.hh
2016-03-13 13:39:31 -04:00
2aa443bf0b
Some small functions for dealing with ASCII
2016-03-13 13:35:50 -04:00
1bbd99aeee
Rename writeChar, writeString -> printChar, printString
2016-03-13 13:32:52 -04:00
46d18b97d5
Basic framework for getting interrupts to go, but alas nothing yet...
2016-03-13 13:17:08 -04:00
c9c64b154a
Make IDT size public
2016-03-13 13:14:45 -04:00
c581d1b99a
Initialize PICs instead of remapping -- masks all interrupts
2016-03-13 12:53:28 -04:00
4f2c2a9150
Enable interrupts and loop forever
2016-03-13 12:52:47 -04:00
dfe85fd8e0
Use full 0xFFFFFFFF address for segment limits
2016-03-13 12:52:32 -04:00
d57bf8cf8c
Add exceptionHandler static method for generation IDT DescriptorSpecs
2016-03-13 12:52:05 -04:00
6e2de52aa9
Clean up descriptor generation code
2016-03-13 12:51:42 -04:00
b3c7b28cda
Add new PIC::initialize method to clear interrupts after initialization
2016-03-13 12:43:09 -04:00
18d7dbb927
Implement hardware interrupt enable/disable
2016-03-13 04:44:22 -04:00
9bb7e91b66
auto& instead of just auto
...
Grrr... I hate C++ sometimes.
Thanks Aimee~.
2016-03-12 19:14:48 -05:00
d098bac16c
Cannot copy/assign Console objects
2016-03-12 19:14:07 -05:00