Commit Graph

70 Commits

Author SHA1 Message Date
Kevin Lange
66ba18fc33 Ug. 2012-03-10 15:03:59 -06:00
Markus Schober
aec24c08f1 Attaching nearly works! 2012-02-07 02:29:28 -06:00
Kevin Lange
4366a20a8f Pipe and packet-based mouse device 2012-02-02 16:16:29 -06:00
Kevin Lange
238278c3fc init, get/sethostname 2012-01-30 12:10:53 -06:00
Kevin Lange
047f209357 Style guide. 2012-01-29 12:46:34 -06:00
Kevin Lange
d73d2e2361 [cmos] Fix userspace clock 2012-01-25 13:50:30 -06:00
Kevin Lange
1a2cb28fc1 [pipe] Fix write overrun and other issues 2012-01-25 00:54:59 -06:00
Kevin Lange
339b82e10c [massive commit] Userspace terminal.
Completely removes:
* The kernel terminal (both VGA and graphical)
* The kernel ANSI parser (obviously)
* kgets() function
* Dozens of other functions that were made useless

Adds:
* Userspace terminal that should work (relatively) well
* Keyboard device driver (implemented with a "pipe" object)
* Stabalized interrupt interface
* `clear` uses the c library
* All panic screens and kprintf() output goes to the serial line ONLY
* The kernel boots directly into /bin/terminal (no arguments, unless you
  want to add them (such as -f))
2012-01-25 00:19:52 -06:00
Kevin Lange
aa748bc99a Hmpf. 2012-01-10 19:14:30 -06:00
Kevin Lange
edebb12573 [misc] Boot logging to screen 2011-12-26 19:23:58 -06:00
Kevin Lange
c440ab6477 [misc] Fix some general boot issues with some Grubs 2011-12-25 18:18:41 -06:00
Kevin Lange
c0f45e0b7f VESA mode switching support.
BIOS execution is provided through the `v8086` module, which provides
software emulation of an 8086 processor. It is not currently working
with some BIOSes and may (read: probably will be) replaced with another
emulator (x86emu comes to mind) at some point in the near future. In the
meantime, the default video mode for QEMU works with this and it's
enough to get us on real VESA instead of fake VBE. The `bochs` module
will be renamed in a future commit. Userspace programs have been
adjusted to work at bitrates other than 32 *POORLY*. If you write pixels
left-to-right, they should work fine. They only work with 24-bpp
otherwise, and then you need to be careful of what pixels you are
writing when, or you will overwrite things in other pixels.

You may pass a commandline argument like the following to set display
modes:

  vid=vesa,1024,768

Or for stranger modes under QEMU or Bochs, use the bochs VBE
initializer:

  vid=bochs,1280,720

Note that the address of the linear framebuffer is still found via
hackish probing instead of PCI or trusting the VBE information, so if
you have things in the wrong memory ranges (0xE0000000+), be prepared to
have them get read.

Once again, this entire commit is a massive hack. I am happy that it
worked, and I will continue to make it less hacky, but in the meantime,
this is what we've got.

Happy holidays.
2011-12-25 00:40:40 -06:00
Kevin Lange
26b3079578 [main] Also include lower memory in available pages 2011-12-15 23:00:43 -06:00
Kevin Lange
fac669e4c3 [mem] Add facilities to track memory usage (naïvely) 2011-12-15 21:47:46 -06:00
Kevin Lange
67343548a7 Only mount hard disk if requested 2011-12-14 22:30:46 -06:00
Kevin Lange
5d0f3f0f3d [text/io] Better text output management
- Fixes a number of bugs with VGA text-mode (including crashes and
  colors)
- Makes it far easier to include more console drivers in the kernel,
  though this will be terribly redundant in the future.
- Actually check for video graphics modes before attempting to draw the
  mouse cursor.
2011-12-14 21:50:34 -06:00
Kevin Lange
748a8e8d28 [log] Simple logging facility 2011-12-14 17:47:30 -06:00
Kevin Lange
145c4274d5 [misc] Also the include files... 2011-12-10 17:45:04 -06:00
Kevin Lange
2a1b0d3dcf [process] Massive commit: New process model 2011-12-08 15:25:48 -06:00
Kevin Lange
3f513579e1 initial work on new process model 2011-12-07 20:59:08 -06:00
Kevin Lange
dd6aaf1a9d [main] Fix vim hints 2011-11-29 13:06:17 -06:00
Kevin Lange
b2b8185494 Load wallpaper from file on disk 2011-11-18 14:38:27 -06:00
Kevin Lange
4697dd4c06 [mouse] Load the mouse cursor from initird 2011-11-17 23:34:35 -06:00
Kevin Lange
9fa8e10bce [ext2] Read from hard disk. Seems to work wonderfully. 2011-11-17 23:29:08 -06:00
Kevin Lange
88b31af4b4 [mouse] Silly graphical pointer 2011-10-30 22:58:42 -05:00
Kevin Lange
441acfa7c6 [mouse] Mouse drivers 2011-10-29 00:33:45 -05:00
Kevin Lange
d68f8a529e License header changes 2011-10-12 23:24:19 -05:00
Kevin Lange
ab00c88b63 uggg 2011-04-18 19:45:29 -05:00
Kevin Lange
3017ffb8e7 [sys] I am very unhappy with most of this 2011-04-17 18:54:40 -05:00
Kevin Lange
3c299a19ed [sys] sbrk, fix stacks? 2011-04-17 18:28:40 -05:00
Kevin Lange
254ceb51ab [sys] More system calls, more stability, kill bad processes 2011-04-17 13:26:31 -05:00
Kevin Lange
7cf04ad13e [elf] Separate exec and system 2011-04-15 17:33:19 -05:00
Kevin Lange
3e3c7fb544 [shell] And that's what was causing a bunch of my problems. 2011-04-15 16:56:25 -05:00
Kevin Lange
5c889a168d Non-shell tests 2011-04-12 15:48:00 -05:00
Kevin Lange
7eb44a784b [task] Make sure we free everything. WARNING: this actually breaks some things as is 2011-04-11 20:05:40 -05:00
Kevin Lange
679bd270f4 [mem] That should fix a bunch of stuff. 2011-04-11 14:17:15 -05:00
Kevin Lange
67901b3bf7 I definitely broke a bunch of stuff. 2011-04-08 17:53:52 -05:00
Kevin Lange
60016e6e2b [main] Shouldn't be DMA'ing any of that... 2011-04-06 17:59:34 -05:00
Kevin Lange
75a221829d [mboot] Oops 2011-04-06 17:06:07 -05:00
Kevin Lange
9b3c3a1e60 [bin] Working on ELF binaries. Redid some multiboot stuff (larger ramdisks should work now) 2011-04-06 16:50:37 -05:00
Kevin Lange
f06f65d941 [ansiterm] Fix a bunch of crap with the ANSI term and output in general. 2011-04-05 19:12:08 -05:00
Kevin Lange
17bcf67667 Remove garbage coloring from various pre-display bits 2011-04-04 19:23:38 -05:00
Kevin Lange
cde56093d2 [panic] Updated panic screen 2011-03-30 02:16:30 -05:00
Kevin Lange
3f8a8e62ab [user] Still slightly broken userspace 2011-03-29 21:08:56 -05:00
Kevin Lange
9c85c544eb [fpu][bochs][sys] FPU enabled, line drawing function, abs(), max() 2011-03-29 16:35:02 -05:00
Kevin Lange
14248e7ddd Fix everything back up. 2011-03-28 20:41:17 -05:00
Kevin Lange
9b1ab6e97f [bochs] Framebuffer terminal. PAGING HAS BEEN DISABLED 2011-03-28 19:34:44 -05:00
Kevin Lange
b01c79a95c [vga_font] とある 2011-03-28 16:55:46 -05:00
Kevin Lange
5450546a15 [vga_font] Font rendering updates. 2011-03-28 16:29:59 -05:00
Kevin Lange
88b93880a6 [bochs] Font rendering, working on font still. Does numbers. 2011-03-28 15:18:48 -05:00