Commit Graph

502 Commits

Author SHA1 Message Date
Kevin Lange
6c042aba53 Pipes 2012-01-24 18:40:25 -06:00
Kevin Lange
9147549bd5 oops 2012-01-24 17:58:19 -06:00
Kevin Lange
9ba44c73bc [pipe] Pipe (ring buffer) device? 2012-01-24 17:56:35 -06:00
Kevin Lange
fb200db703 Herp 2012-01-24 12:10:57 -06:00
Kevin Lange
6203bc0063 Fix default output colors 2012-01-24 11:56:42 -06:00
Kevin Lange
b4856c563c Italic, Underline, X-Out support 2012-01-24 11:53:03 -06:00
Kevin Lange
4817d74c1c Add Oblique DejaVu fonts 2012-01-24 11:50:55 -06:00
Kevin Lange
dc353cd954 Update cursor style 2012-01-24 11:15:15 -06:00
Kevin Lange
436435589a Adjusted font settings, bold support 2012-01-24 11:01:31 -06:00
Kevin Lange
e05515844d Null device 2012-01-23 23:01:23 -06:00
Kevin Lange
9be2f43935 [term] Change sample output a bit 2012-01-23 22:37:09 -06:00
Kevin Lange
ce51204fe4 Use DejaVu with same sizings and hintings as my xterm 2012-01-23 22:26:13 -06:00
Kevin Lange
c256642d09 Include Deja Vu Sans Mono font (with license) 2012-01-23 22:25:55 -06:00
Kevin Lange
c2af881b89 Merge branch 'master' of github.com:klange/osdev 2012-01-23 19:09:27 -06:00
Kevin Lange
0b6cc503af [isrs] Increment the IRQ semaphore before...
... handling any interrupt service routines.

This was causing crashes while running /userspace/ apps without any
syscalls being triggered, presumably due to switching at awkward times.
2012-01-23 19:04:10 -06:00
Kevin Lange
ee1ade379f [cat] handle load failure without seg faulting 2012-01-23 14:24:23 -06:00
Kevin Lange
ed31c2cbea Drop serial output from standard terminal 2012-01-23 12:36:59 -06:00
Kevin Lange
7e716019ec Freetype, why are you so slow? 2012-01-23 00:13:50 -06:00
Kevin Lange
2174cfb59e Rough test: Userspace port of the terminal.
Need to replace the bitfont with freetype, get the thing attached to a
pipe, start getting other stuff to run under it, and then we can remove
the kernel's graphical terminal.
2012-01-22 23:36:49 -06:00
Kevin Lange
e3dc6b002d [bochs] (still broken) fix fb detection for qemu 1.0 2012-01-19 17:44:50 -06:00
Kevin Lange
e5330b1df0 Started work on the full ELF loader and C++ support 2012-01-18 20:12:04 -06:00
Kevin Lange
0440b775d8 [typo] 2012-01-18 20:08:43 -06:00
Kevin Lange
7de2ca9bd1 Per-user tmp files 2012-01-18 19:52:11 -06:00
Kevin Lange
870d93c235 Add a pseudo-daemonizing clock app 2012-01-10 23:22:27 -06:00
Kevin Lange
4a22517298 Fix some minor ANSI support things 2012-01-10 23:22:12 -06:00
Kevin Lange
5fa42a5d34 Fix a kgets() thread-switcing bug 2012-01-10 20:14:07 -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
ef5f2ebd1a Fix minor tab completion bug 2012-01-10 18:42:46 -06:00
Kevin Lange
edebb12573 [misc] Boot logging to screen 2011-12-26 19:23:58 -06:00
Kevin Lange
3023d58a7f [video] Really need to fix this 24-bit-color stuff... 2011-12-25 22:37:13 -06:00
Kevin Lange
72b7589623 [docs] Finally make some minor updates to the manual 2011-12-25 21:45:02 -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
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
d0be767eb8 [minor] Remove unused macro from freetype_test 2011-12-16 13:27:08 -06:00
Kevin Lange
da6824cc16 Try this? 2011-12-16 13:17:14 -06:00
Kevin Lange
a4d17cb382 Graphics resolution independence (targetting VESA support); update README 2011-12-16 13:16:20 -06:00
Kevin Lange
b2606ff706 [version] Kernel version and codename, shell uname cmd 2011-12-16 02:15:44 -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
e844fe53ad [list] Fix merge bug 2011-12-15 21:13:47 -06:00
Kevin Lange
ddc71135af [proc] Fix some latent management bugs 2011-12-15 21:08:48 -06:00
Kevin Lange
b8d8140530 QEMU may default to 128MB, that's bad, we need at least 256 2011-12-15 20:34:57 -06:00
Kevin Lange
324cba6f57 [printf] Add one more little catch, just in case... 2011-12-15 17:46:57 -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
37c3ab67ce [sys] Fix fork syscall return values 2011-12-15 15:31:18 -06:00
Kevin Lange
dae4083454 [panic] Updated panic messages 2011-12-15 01:46:22 -06:00
Kevin Lange
67343548a7 Only mount hard disk if requested 2011-12-14 22:30:46 -06:00