Commit Graph

85 Commits

Author SHA1 Message Date
Kevin Lange
cffbb02240 Stuff and things 2012-02-15 20:50:31 -06:00
Markus Schober
45903b204b fixed a subtle bug in shm; added a bunch of utilities to test it 2012-02-10 22:31:38 -06:00
Kevin Lange
ea961ea0e3 Fix compilation warnings 2012-02-08 16:07:54 -06:00
Kevin Lange
65fa12f482 SIGNALS 2012-02-08 02:40:44 -06:00
Markus Schober
aec24c08f1 Attaching nearly works! 2012-02-07 02:29:28 -06:00
Kevin Lange
6590b285b5 Mouse improvements (stability, scaling) 2012-02-04 22:29:46 -06:00
Kevin Lange
89d9265c73 Actually deschedule processes when they are waiting 2012-01-31 19:27:38 -06:00
Kevin Lange
c9d5e735ed Getting ready for thread support 2012-01-28 17:06:07 -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
6b2ee875d4 Interrupts on/off is a semaphore 2012-01-10 19:54:05 -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
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
fb8f35719d [vid] Prepare for VESA implementation. 2011-12-16 14:00:48 -06:00
Kevin Lange
bf1011e2ba [vid] Support setting video resolution from kernel args 2011-12-16 13:39:34 -06:00
Kevin Lange
fac669e4c3 [mem] Add facilities to track memory usage (naïvely) 2011-12-15 21:47:46 -06:00
Kevin Lange
021585e9ef [misc] Massive improvements to process handling
- Free process resources when a process exits (reaped in next process
  cycle; should probably reap after a wait() or something)
- Free process struct after wait()
- Fix page allocation
- Fix fork() return value for child process (attempted to write to an
  invalid point in kernel-stack memory)

We shouldn't be triple faulting randomly anymore!

Continue investigating the fork() return value, as there was a bugged
return at some point during executon of a test run of thrash-process.
2011-12-15 17:21:28 -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
258e2bfbfe [log] More logging, make output of dmesg prettier 2011-12-14 19:43:14 -06:00
Kevin Lange
6d27ef0ffe [log] vsprintf, fix va logging 2011-12-14 19:19:51 -06:00
Kevin Lange
2fdf993af7 [ide] Minor updates 2011-12-13 00:48:04 -06:00
Kevin Lange
16989b65b0 [locks] Locks 2011-12-10 19:15:12 -06:00
Kevin Lange
145c4274d5 [misc] Also the include files... 2011-12-10 17:45:04 -06:00
Kevin Lange
15c01ce442 [misc] Fix working directory handling 2011-12-08 15:37:11 -06:00
Kevin Lange
2a1b0d3dcf [process] Massive commit: New process model 2011-12-08 15:25:48 -06:00
Kevin Lange
fb2759e01a [mem] Add some new page fault special things 2011-12-06 19:43:45 -06:00
Kevin Lange
010475b6ee [bochs] Add a function to force a redraw of the cursor 2011-11-26 17:18:20 -06:00
Kevin Lange
1b1cad3f4a [shell] Scroll through history 2011-11-26 16:14:35 -06:00
Kevin Lange
75329eed95 [misc] strstr, startswith 2011-11-26 15:25:59 -06:00
Kevin Lange
062e6fcd43 [shell] Tab completion, basic work on writing files 2011-11-24 18:59:23 -06:00
Kevin Lange
65e6b0e800 [shell] Redraw prompt on ^L 2011-11-23 21:22:25 -06:00
Kevin Lange
9fa8e10bce [ext2] Read from hard disk. Seems to work wonderfully. 2011-11-17 23:29:08 -06:00
Kevin Lange
20d89355dc [vfs] Working directories, I hope 2011-11-17 15:55:59 -06:00
Kevin Lange
eb98180d0e [pci] Add pci config read/write to system.h 2011-11-03 17:06:27 -05:00
Kevin Lange
49bea4b221 [shell] Do at least /some/ path canonicalization... 2011-11-01 18:51:15 -05:00
Kevin Lange
3b6e3745c1 Wallpapers 2011-10-31 17:41:16 -05:00
Kevin Lange
e604e4d655 [core] Some extra macros to make life easier 2011-10-31 01:17:26 -05:00
Kevin Lange
bce5d78bed [mouse] block cursor 2011-10-30 19:11:04 -05:00
Kevin Lange
64a4d880be Add mouse_install to headers... 2011-10-29 20:33:24 -05:00
Kevin Lange
a4e37ae963 [sys] Debugging tool 'STOP' 2011-10-26 19:11:05 -05:00
Kevin Lange
80656d9257 [ide] Missed the headerS 2011-10-25 23:33:14 -05:00
Kevin Lange
855eecbb41 [sys] Rearrange some things 2011-05-07 01:55:49 -05:00
Kevin Lange
f38360f5a7 Julia fractals, better direct keyboard handling. 2011-04-30 03:40:36 -05:00
Kevin Lange
a3e8265030 oh god oh god it hurts 2011-04-29 19:54:07 -05:00
Kevin Lange
3c299a19ed [sys] sbrk, fix stacks? 2011-04-17 18:28:40 -05:00
Kevin Lange
eb0c5d05e1 [sys] Holy crap. 2011-04-17 17:44:29 -05:00
Kevin Lange
254ceb51ab [sys] More system calls, more stability, kill bad processes 2011-04-17 13:26:31 -05:00
Kevin Lange
ad7d5d7acc [sys] read/write/open/close, also cat 2011-04-16 20:01:04 -05:00
Kevin Lange
d2ff4c474e [ansi] Support for more escape sequences. 2011-04-15 21:48:20 -05:00
Kevin Lange
7cf04ad13e [elf] Separate exec and system 2011-04-15 17:33:19 -05:00