Commit Graph

121 Commits

Author SHA1 Message Date
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
e5330b1df0 Started work on the full ELF loader and C++ support 2012-01-18 20:12:04 -06:00
Kevin Lange
870d93c235 Add a pseudo-daemonizing clock app 2012-01-10 23:22:27 -06:00
Kevin Lange
5fa42a5d34 Fix a kgets() thread-switcing bug 2012-01-10 20:14:07 -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
d0be767eb8 [minor] Remove unused macro from freetype_test 2011-12-16 13:27:08 -06:00
Kevin Lange
a4d17cb382 Graphics resolution independence (targetting VESA support); update README 2011-12-16 13:16:20 -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
20fab345a8 [user] Simple little test app that triggers a stack overflow 2011-12-14 20:06:09 -06:00
Kevin Lange
d7d52555c9 [user] Redundant -O 2011-12-12 04:11:07 -06:00
Kevin Lange
c54de06083 [esh] Support &, search path 2011-12-07 15:08:40 -06:00
Kevin Lange
fa09f76582 [esh] Handle bad execs 2011-12-06 20:36:40 -06:00
Kevin Lange
dca46fffc4 [sys] wait(pid) 2011-12-06 20:13:20 -06:00
Kevin Lange
d52e73e71e [esh] Esh, the experimental shell 2011-12-06 19:46:35 -06:00
Kevin Lange
8f6d345039 [userspace] Nyancat!
Also works on a standard xterm:
    gcc -o nyancat nyancat.c
    ./nyancat
(Be sure to set your terminal to at least 128 wide and 64 tall)
2011-11-29 23:41:02 -06:00
Kevin Lange
f3a52d272a Move all of the ramdisk support into the hard disk 2011-11-18 14:45:19 -06:00
Kevin Lange
3726a9a043 [user] We can enable optimizations and strip for smaller binaries 2011-10-28 01:21:59 -05:00
Kevin Lange
e3f5cb0e47 [user] Update userspace makefile 2011-10-28 01:09:55 -05:00
Kevin Lange
e54a6be038 Move userspace directory to 'userspace' 2011-10-27 20:12:31 -05:00