Commit Graph

609 Commits

Author SHA1 Message Date
295b7b4afe Always print to a valid console 2018-08-03 03:03:44 +02:00
bbca21b808 Code cleanup 2018-08-03 03:03:35 +02:00
eaebbb0f00 Code cleanup 2018-08-03 02:17:38 +02:00
4f8536876a Always use clock drivers with a valid instance 2018-08-03 02:17:38 +02:00
7af49989ec Do not compile _multiboot_start when not used 2018-08-03 01:53:06 +02:00
c7944c91da Code cleanup 2018-08-03 01:51:07 +02:00
018cdae162 Import realloc() in libuKernel 2018-08-02 23:38:41 +02:00
b5f0cf9f88 Avoid a few compilation warnings 2018-08-02 23:16:23 +02:00
447dcd6494 Code cleanup 2018-07-27 03:20:58 +02:00
2927b26d74 Separate the bus code from the VGA display driver 2018-07-27 03:15:40 +02:00
0b8a38ca45 Fix building the UART console driver 2018-07-21 05:30:43 +02:00
b6f3407b7d Import missing file 2018-07-21 05:23:53 +02:00
e16d7923ec Consider VGA and VESA as display drivers 2018-07-21 05:20:45 +02:00
c833a991c4 Remove unused header 2018-07-21 03:47:28 +02:00
a56ae53260 Define and use a few more constants 2018-07-21 03:50:59 +02:00
9f7b7dd810 Remove explicit casts 2018-07-21 03:50:59 +02:00
f23e59a8cb Add support for '\r' on VGA displays 2018-07-21 03:50:59 +02:00
c70d1748ba Add the usual base addresses for further serial ports 2018-07-19 02:04:51 +02:00
94d410d834 Unify the search path for includes 2018-07-17 14:37:55 +02:00
3b08127954 Expose CMOS bus commands to potential users 2018-07-17 13:38:47 +02:00
fcbbdfa986 Describe and use one more constant 2018-07-17 13:33:41 +02:00
0ca35efa15 Describe and use more constants 2018-07-17 02:16:59 +02:00
96398850bc Code cleanup 2018-07-17 02:12:03 +02:00
4ffeb920c2 Substract 1970 to the date guessed for the Epoch 2018-07-17 02:08:16 +02:00
513623335e Convert the date obtained to decimal if necessary 2018-07-17 02:06:13 +02:00
8901252c74 Code cleanup 2018-07-17 02:02:07 +02:00
f0834c0d76 Keep errno when devices fail to attach 2018-07-16 02:00:01 +02:00
7a20a906ad Remove debugging information 2018-07-16 01:38:58 +02:00
00069745d9 Improve the messages when initializing drivers 2018-07-16 01:40:49 +02:00
c2c5d522cd Add commands to enable or disable NMI
NMI stands for Non Maskable Interrupts.
2018-07-16 01:40:49 +02:00
f41d41e6e3 Change the order of arguments when getting the time 2018-07-16 01:40:43 +02:00
b6e22cac7f Remove the CMOS weekday register
It is apparently notoriously unreliable, and should not be used.
2018-07-16 01:40:11 +02:00
90c7f9eb0e Add a delay when reading from the CMOS bus 2018-07-16 01:40:11 +02:00
e935772f91 Code cleanup 2018-07-16 01:40:11 +02:00
2e71212695 Code cleanup 2018-07-15 23:37:33 +02:00
582a537575 Enable interrupts again 2018-07-15 05:49:05 +02:00
b5e6e07701 Set the IDT more like the GDT
This makes its initialization easier.
2018-07-15 05:46:34 +02:00
655e39736c Code cleanup 2018-07-15 03:58:31 +02:00
f59ea7131e Do not enable interrupts yet
This requires an interrupt handler to be configured first.
2018-07-15 03:56:00 +02:00
9a4e58760f Initialize the PIC 2018-07-15 03:55:08 +02:00
1d5a7a558b Initialize the clock 2018-07-15 03:54:42 +02:00
9480761ca2 Import a driver for the 8259a PIC
This is specific to Intel x86 platforms.
Not tested yet.
2018-07-15 03:47:33 +02:00
702497e79b Also build the PIC framework helper 2018-07-15 03:44:15 +02:00
758a0673a4 Compare the results obtained for consistency 2018-07-15 03:43:02 +02:00
915ab5828d Check if the clock data is available 2018-07-15 03:40:47 +02:00
c6672662af Code cleanup 2018-07-15 03:38:36 +02:00
644d3ce68e Code cleanup 2018-07-15 03:36:53 +02:00
bc9aaf9fc8 Code cleanup 2018-07-15 03:36:28 +02:00
164fc9c5d5 Let bus drivers handle custom commands 2018-07-15 03:35:59 +02:00
67f9ed2698 Add iowait() to the I/O port operations 2018-07-15 03:34:25 +02:00