Commit Graph

128 Commits

Author SHA1 Message Date
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
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
Kevin Lange
a62649aafe [main] Kernel argument parsing (of a limited sort); qemu vid mode defaults 2011-03-26 13:30:08 -05:00
Kevin Lange
cdd9aaab7c [main] As ugly as this is, it works... 2011-03-25 01:50:50 -04:00
Kevin Lange
53024c3b49 [vga] Enable/disable cursor movement, for clock mostly 2011-03-25 01:13:44 -04:00
Kevin Lange
be3c4d2d04 [cmos] Add CMOS module 2011-03-25 01:09:23 -04:00
Kevin Lange
562a5d219f [main] save some cycles on the physical hardware 2011-03-24 20:34:37 -05:00
Kevin Lange
fffa6d99ae One task runs the clock, one task runs the shell. 2011-03-24 20:18:14 -05:00
Kevin Lange
80804862a4 [main] Huzzahs are in order. 2011-03-24 20:03:52 -05:00
Kevin Lange
35b6175121 [main] Pretty colors... 2011-03-24 18:55:07 -05:00
Kevin Lange
e26c53dfc0 [docs] Commenting... 2011-03-04 18:18:14 -06:00
Kevin Lange
0b3ecfd4e4 Less-broken context switching, maybe? Also, run the terminal, type 'exit' 2011-03-03 23:12:26 -06:00
Kevin Lange
24ff0b84f2 Merge branch 'master' of github.com:klange/osdev 2011-03-03 01:39:46 -06:00
Kevin Lange
58dc0bb922 [task] Minor stuff 2011-03-03 01:39:26 -06:00
Kevin Lange
a2bea1ab48 [debg] Remove debug text from various places 2011-03-02 00:54:15 -06:00
Kevin Lange
3ee67c75e3 [task] um, cooperative multi-tasking? that's good, right? 2011-03-01 20:14:55 -06:00
Kevin Lange
ee04a7271d [task] Holy crap, tasking. That took forever and it's still broken. 2011-03-01 17:48:39 -06:00
Kevin Lange
4f8cd57996 [vari] Fix a typo, move some stuff 2011-02-27 21:08:55 -06:00
Kevin Lange
ebd3efb47b Revert "[boot] A third stage? Really?"
This reverts commit c23080c46c.
2011-02-21 19:36:18 -06:00
Kevin Lange
c23080c46c [boot] A third stage? Really? 2011-02-21 19:09:57 -06:00
Kevin Lange
e64ce6ba38 [boot] Boot modes in kernel startup... 2011-02-19 19:27:46 -06:00
Kevin Lange
0da56e6e51 [meta] Restructure directory tree and output files. 2011-02-12 16:47:20 -06:00