Commit Graph

81 Commits

Author SHA1 Message Date
Kevin Lange
a9d895a923 unify logging 2012-12-07 18:33:07 -08:00
Kevin Lange
f5b5b8821d Clean up some minor bits and pieces. 2012-12-04 20:09:06 -08:00
Kevin Lange
6cb9664b69 Fix some VESA woes 2012-12-02 23:28:29 -08:00
Kevin Lange
c9448437dc Fix long-standing issues in qemu/bochs
and possibly other environments - fixes the long-standing issue with
keyboard/mouse getting disabled sometimes on bootup, especially if you
tried to interact with the qemu window during the boot process
2012-11-30 19:32:38 -08:00
Kevin Lange
f79f345956 Giant ramdisks (works on my desktop)
But not on my laptop...
2012-09-18 22:20:04 -07:00
Kevin Lange
9f282a7916 Fix alloc init bug, bump version.
We'll keep that graphic testing thing in there just in case.
2012-09-18 01:19:30 -07:00
Kevin Lange
57534cf009 Fix things up to prepare a working ramdisk. 2012-09-18 00:06:32 -07:00
Kevin Lange
a212a93942 Draw some pretty stuff and halt without a disk img
Don't push this to master!

[ci skip]
2012-09-17 22:58:49 -07:00
Kevin Lange
8ed06789ed New debug printing facilities.
- Can now register a userspace file descriptor as the output for kernel
  print statements through kprintf()
- Can set logging levels for debug print messages, which are separate
  from kernel log events and meant to be more readily visible. Log
  events are recorded in a buffer to be viewed later, though nothing
  actually using logging at the moment.
- Serial output is disabled by default now. You can enable it yourself
  by appending the logtoserial argument to the kernel on boot.
2012-09-03 22:35:11 -07:00
Kevin Lange
bba242dd62 Add a testing framework.
This is an automated system by which we boot qemu headless and use the
serial line to capture output from a testing application that is started
on bootup, running with the VGA terminal shell. This might be expanded
to boot to the graphical display within VNC and perform more advanced
tests with the Python shim using a VNC module for Python; we'll see.
2012-09-02 02:24:25 -07:00
Kevin Lange
f68ca25622 Boot-to-shell through kernel argument 'single' 2012-03-27 21:47:25 -05:00
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