Commit Graph

34 Commits

Author SHA1 Message Date
Kevin Lange
c65e458c50 Stop building binaries out of loader/
This is what userspace/ is for; consequentally, all userspace
applications now depend on the full toolchain and will build using the C
library.
2012-01-28 16:19:57 -06:00
Markus Schober
405868ac8a First commit of readdir/ls support. 2012-01-27 04:04:04 -06:00
Kevin Lange
ac8354d805 Add some system calls, plus a fakish /bin/login 2012-01-26 22:46:18 -06:00
Kevin Lange
a0139691dd Fix the loader/ apps to use fds 2012-01-25 14:41:11 -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
ed31c2cbea Drop serial output from standard terminal 2012-01-23 12:36:59 -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
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
a4d17cb382 Graphics resolution independence (targetting VESA support); update README 2011-12-16 13:16:20 -06:00
Kevin Lange
37c3ab67ce [sys] Fix fork syscall return values 2011-12-15 15:31:18 -06:00
Kevin Lange
dca46fffc4 [sys] wait(pid) 2011-12-06 20:13:20 -06:00
Kevin Lange
fe9b54c35c [clear] Clear properly for an xterm 2011-11-26 16:18:34 -06:00
Kevin Lange
7d9fa21d19 [cat] More efficient, but still stupid, cat 2011-11-18 00:53:19 -06:00
Kevin Lange
a3e8265030 oh god oh god it hurts 2011-04-29 19:54:07 -05:00
Kevin Lange
f6592c109e [ld] Wooo 2011-04-29 13:16:54 -05:00
Kevin Lange
4b218387e7 [sys] Various. 2011-04-29 12:43:09 -05:00
Kevin Lange
6066da0c4c [echo] New lines in echo 2011-04-19 01:50:33 -05:00
Kevin Lange
9190f0c478 comment the crt0 2011-04-18 15:09:44 -05:00
Kevin Lange
c430668e8a [task] Drop debug output for fork stacks (that's all cleared up) 2011-04-18 15:04:27 -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
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
9e3d03da4f [cat] Some error handling 2011-04-16 20:54:02 -05:00
Kevin Lange
ad7d5d7acc [sys] read/write/open/close, also cat 2011-04-16 20:01:04 -05:00
Kevin Lange
332920fe2d [bin] Some minor updates to the test apps 2011-04-15 16:31:58 -05:00
Kevin Lange
8b84dfa688 [bin] Yes. 2011-04-15 13:18:01 -05:00
Kevin Lange
06c41369cc [sys] And now for the user side too 2011-04-11 16:51:31 -05:00
Kevin Lange
3b12812608 [sys] Move syscalls to a separate header 2011-04-11 16:45:15 -05:00
Kevin Lange
fe40c7bbf6 [elf] Fix argument passing 2011-04-08 16:02:30 -05:00
Kevin Lange
e273784242 [elf] Execute simple static ELF binaries. 2011-04-08 15:27:12 -05:00
Kevin Lange
386b28e6fc [test] Make that a Hello World. 2011-04-08 12:17:32 -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
a6c5d1c365 Loader workspace, documentation workspace. 2011-03-17 21:45:26 -05:00