Kevin Lange
720a62d6aa
ICANON support (still a bit rough)
...
This is a massive hack and I admit it.
2013-07-27 22:01:08 -07:00
Kevin Lange
40f0c41932
Preliminary termios support
...
This is some initial work on support real PTYs.
Canonical mode is not supported at the moment.
2013-07-27 00:18:29 -07:00
Kevin Lange
6ad55d68d2
(debugging) export files to sdb with a sysfunc
2013-07-22 22:41:14 -07:00
Kevin Lange
ee90317940
bump version for new development line
2013-07-22 20:50:49 -07:00
Kevin Lange
9dbb0f4422
0.5.0-rel tag
2013-07-14 22:38:24 -07:00
Kevin Lange
046d972694
docs
2013-07-11 18:17:26 -07:00
Kevin Lange
147f73b305
Temporarily use a tmpfs for local's home dir
2013-06-28 00:16:56 -07:00
Kevin Lange
4c2801beeb
Even more strict ext2fs write disabling
2013-06-12 22:24:02 -07:00
Kevin Lange
1dde9dfcb5
Fix argv storage for init
2013-06-06 18:29:22 -07:00
Kevin Lange
0f344f2900
Rewrite fork/clone.
...
This is still a bit ugly, needs cleanup.
Fixes that weird GCC issue.
2013-06-06 18:04:13 -07:00
Kevin Lange
e70ebf8857
Big fat cleanup and GCC fix batch
2013-06-05 23:10:36 -07:00
Kevin Lange
ff8fd63e62
Fix bad assignment in tmpfs (thx clang)
2013-05-22 16:26:37 -07:00
Kevin Lange
0a064bf3da
Remove an unused thing
2013-05-22 01:47:43 -07:00
Kevin Lange
ae08c74115
I'll stop the world and melt with you
...
(but I won't stop the world to load binaries)
2013-05-22 01:34:56 -07:00
Kevin Lange
ad19c5eb01
change comment in randomdev
2013-05-21 15:34:18 -06:00
Kevin Lange
4868960364
Build ALL the things!
2013-05-12 00:38:56 -07:00
Kevin Lange
c8aa5462a8
Cleaner syscall handling
2013-05-08 22:11:02 -07:00
Kevin Lange
1e664bef2b
Integrate signals into libc
2013-05-05 15:00:24 -07:00
Kevin Lange
edccf2927b
Unbreak ramdisks
2013-04-27 22:04:20 -07:00
Kevin Lange
71bafd0174
Fix kernel heap allocation
2013-04-27 22:04:03 -07:00
Kevin Lange
fde9c6d652
New ioctl commands and userspace improvements
2013-04-27 01:16:36 -07:00
Kevin Lange
5d71eeb013
Kernel stacks are big enough for those...
2013-04-27 01:13:47 -07:00
Kevin Lange
672274d5ae
More initial stack space [maybe temporary]
2013-04-26 01:04:21 -07:00
Kevin Lange
fdc442714a
Disable EXT2 with a #define
2013-04-25 23:06:51 -07:00
Kevin Lange
0e76870d00
Remove some unused header defines
2013-04-24 20:24:33 -07:00
Kevin Lange
c1ac928af6
Fix mappings so SHM is table aligned
2013-04-24 20:20:34 -07:00
Kevin Lange
16da56ea9b
General support for open() flags
...
Includes truncation support in tmpfs, and changes the signure of the VFS
open() method. Also tweaked some comment style in the VFS.
2013-04-24 00:19:08 -07:00
Kevin Lange
8c16a86206
Directory support in tmpfs
2013-04-23 23:21:16 -07:00
Kevin Lange
409052e568
Free that temp block...
2013-04-23 23:05:57 -07:00
Kevin Lange
a2a890e1a8
Fresh new VFS syscalls: unlink, chmod, umask
2013-04-23 01:14:33 -07:00
Kevin Lange
6f096454cd
Some additions to the VFS
2013-04-22 22:36:47 -07:00
Kevin Lange
7c8d34d1b6
Disable EXT2 writes; add experimental tmpfs
...
This is still a work in progress. ext2 writes are quite broken, so they
have been completely disabled, but there's a new tmpfs mounted to /tmp
that you can try to poke at. I'm still fixing up quirks in the VFS that
make it incompatible with a bunch of stuff, but I did manage to write
some files with vim, and swap files appear to be working at least
somewhat. It's all still broken as fuck.
2013-04-21 23:17:26 -07:00
Kevin Lange
9901767cbe
Retry failed reads
2013-04-21 20:46:48 -07:00
Kevin Lange
ade59a11bc
XXX ABI BREAKING CHANGE - New load/heap/stack/shm
...
Address for program loading, kernel heap, userspace SHM regions, and
stacks have been changed.
Delete:
toolchain/build
toolchain/local
.userspace_check
Run:
python userspace/build.py clean
make clean-disk
make clean
./build.sh
2013-04-21 17:35:03 -07:00
Kevin Lange
2de26fafe1
Lazy FPU/SSE, more correct-er
2013-04-16 00:03:23 -07:00
Kevin Lange
41030465a8
Save/restore sse (poorly)
2013-04-15 23:23:56 -07:00
Kevin Lange
3871cfcf31
Fix up the serial console so it works again
2013-04-15 01:26:03 -07:00
Kevin Lange
cd677b44c3
Fix up some terminal bits, add F keys
2013-04-13 20:21:40 -07:00
Kevin Lange
bc51b20380
Generic ringbuffer ds for kernel
2013-04-02 23:02:43 -07:00
Kevin Lange
7303be0eee
Also verify those aren't null
2013-04-02 18:06:06 -07:00
Kevin Lange
3ddb877b32
[grok.org.uk advisory] validate more syscall pointers
2013-04-02 15:23:40 -07:00
Kevin Lange
7c4cd8dd51
fix nulldev, add zerodev
2013-03-31 13:01:05 -07:00
Kevin Lange
a55a652e0e
new fs node device pointer
2013-03-25 21:48:16 -07:00
Kevin Lange
bac4d54bed
Revert version to 0.4.99
2013-03-25 21:48:03 -07:00
Kevin Lange
afac5cd955
fix derp in dev FSes, add /dev/random
2013-03-22 22:38:10 -07:00
Kevin Lange
bc2e4741c7
Random bits and pieces
2013-03-22 15:11:19 -07:00
Kevin Lange
674f047bde
fix stat for missing file
2013-03-22 12:14:04 -07:00
Kevin Lange
fa79c89e54
Some fixes and cleanup
2013-03-22 11:58:22 -07:00
Kevin Lange
afd0c59de1
Fix warning in syscalls.c
2013-03-21 00:03:05 -07:00
Kevin Lange
ef459bdaad
More rough stubs and fixes
2013-03-20 21:24:55 -07:00
Kevin Lange
21aeb34ea4
Rough ioctl with support for winsize
2013-03-18 23:57:40 -07:00
Kevin Lange
6f94ce2296
procfs extensions and ps command
2013-03-18 21:52:45 -07:00
Kevin Lange
ff429a7d07
Fix termios.h in newlib
2013-03-18 13:23:25 -07:00
Kevin Lange
71342f842d
procfs, and more pty cleanup
2013-03-18 00:52:12 -07:00
Kevin Lange
e02cf79e2a
Rough PTY support (needs work)
2013-03-17 16:34:23 -07:00
Kevin Lange
cef1d359a1
Blocking serial reads
2013-03-17 16:34:01 -07:00
Kevin Lange
e223c57af8
Reserve some entries for process scheduling
2013-03-17 16:33:28 -07:00
Kevin Lange
71931b3cf3
Improvements to lists
2013-03-17 16:32:44 -07:00
Kevin Lange
eb92cccecd
Cleanup
2013-03-15 00:52:09 -07:00
Kevin Lange
8dd2686b40
Really hack VFS implementation
2013-03-15 00:20:55 -07:00
Kevin Lange
22f04f137b
Relatively compliant uname() implementation
...
Also, sleep() as a function (implemented by way of nanosleep) and new
absolute and relative sleep system calls added to newlib.
[ci skip] I damn well know this is going to break CI.
2013-03-13 21:55:25 -07:00
Kevin Lange
09ec69340c
New version tree
2013-03-03 17:11:41 -08:00
Kevin Lange
c4545dcc51
bump version in light of toolchain updates
2013-01-25 21:39:12 -08:00
Kevin Lange
acb362e191
Update copyright in kernel/main.c
2013-01-04 20:42:18 -08:00
Kevin Lange
3b06b5c464
bump version to 0.4.2
2012-12-10 20:38:59 -08:00
Kevin Lange
3a977369af
Timed process sleeping (and bug fixes)
2012-12-10 20:28:31 -08:00
Kevin Lange
0e3c9f1241
Fix leap year calculation
2012-12-09 17:08:03 -08:00
Kevin Lange
e83f88bacb
Add time support to vfs
2012-12-09 16:59:55 -08:00
Kevin Lange
3cdb7b8748
make most of ext2fs use debug_print
2012-12-09 16:19:25 -08:00
Kevin Lange
a1099c1566
Bump kernel version
2012-12-08 00:25:01 -08:00
Kevin Lange
cd929b1ceb
Fix some minor input issues
2012-12-08 00:24:43 -08:00
Kevin Lange
3ca94a0528
fix unsigned/signed compare
2012-12-07 19:29:54 -08:00
Kevin Lange
a5b00112af
Add tick counts
2012-12-07 19:06:43 -08:00
Kevin Lange
a9d895a923
unify logging
2012-12-07 18:33:07 -08:00
Kevin Lange
f5b5b8821d
Clean up some minor bits and pieces.
2012-12-04 20:09:06 -08:00
Kevin Lange
a201ea07b1
Clean up kernel/devices/kbd
...
Remove a bunch of unused macros and variables.
2012-12-04 15:41:01 -08:00
Kevin Lange
c90bf5cbc9
Remove a bitmask.
...
Adds a byte to the process struct, but avoids GCC-specific extensions of
using a single byte for a bitmask. May or may not have any effect
anywhere, but will make ./analyze happier.
2012-12-04 15:16:53 -08:00
Kevin Lange
ce1a0ed15d
bump to 0.4.0
2012-12-03 00:10:31 -08:00
Kevin Lange
6cb9664b69
Fix some VESA woes
2012-12-02 23:28:29 -08:00
Kevin Lange
3b316b0603
add some indication of video driver status
2012-12-02 22:41:40 -08:00
Kevin Lange
3a45200d3d
lol wat
2012-12-02 22:16:59 -08:00
Kevin Lange
50ea1462c3
Fix IDE on new qemu, virtualbox
2012-12-02 21:43:54 -08:00
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
193158079d
Bunch of kernel cleanup
2012-11-30 18:26:47 -08:00
Kevin Lange
ed5b9543fb
Big commit: Serial console
...
* fix some terminal bugs (some, not all)
* add a serial device to the VFS
* fix up serial so it works better
* add a serial-console application
* fix a bug in some other stuff relating to allocations
* change size of the terminal described by toaru.terminfo
* adds a new system call
2012-11-28 23:05:19 -08:00
Kevin Lange
6e909acd07
Save/restore FPU state on task switch
2012-10-21 20:17:47 -07:00
Kevin Lange
5fc2a56c05
Meh.
...
I'm trying to get PATA access to work on real hardware (and in
VirtualBox, specifically), but it's not working out well. Unless there's
a major breakthrough tomorrow, I'm going to set it aside for a while.
2012-10-17 22:23:10 -07:00
Kevin Lange
4da4ab63c0
[debug] warn if vid mem can't be located
2012-10-16 23:31:55 -07:00
Kevin Lange
05728b0e2f
Fix large files on modern ext2 configurations
2012-10-16 22:30:57 -07:00
Kevin Lange
5e39fe9bfa
Fix something I failed to clear out.
2012-10-14 20:27:04 -07:00
Kevin Lange
7d5eb42400
Userspace keyboard handling
...
Kernel driver sends raw scancodes, compositor or terminal handle the
rest. Support for F* keys will be added soon, in the mean time userspace
applications can know about the status of modifiers (control, shift,
alt, and super).
Compositor actions have been changed to Alt+Left Click for move and
Alt+Middle Click for resize. I'll work on adding more mouse events once
I get them to be faster (they're annoyingly slow at the moment... I want
more accuracy and less latency).
2012-10-14 19:53:16 -07:00
Kevin Lange
9d84988778
Bump version number to 0.3.7
...
Getting close to the big 0.4.0, but I really want to fix my ATA drivers
and possibly get some CD/ISO stuff in before then.
[ci skip]
2012-10-13 22:06:51 -07:00
Kevin Lange
217f66e23e
Mouse-driven window resizing
2012-10-13 20:19:43 -07:00
Kevin Lange
deaa6ad513
Rough support for environment variables
...
- libc functions not implemented yet
- see `env` for an example of reading variables
- see `esh` for an example of how to set and maintain variables for
sending to other applications
Both of the above will be the basis for the libc implementation.
2012-10-07 20:46:35 -07:00
Kevin Lange
77ed41c225
kernel vga term, commas in arguments, ide fixes
2012-10-03 22:03:21 -07:00
Kevin Lange
742a6e7448
Fix up style in system.c, fix some bugs, too
2012-10-03 22:01:45 -07:00
Kevin Lange
2eb953f1f1
Massive fixes to the EXT2 driver.
...
* Works with different block sizes
* Works with different inode sizes
* Tested on a real EXT2 file system made with mkfs.ext2
* MBR reading is available
* You can specify a partition with hdd=0 or hdd=1 etc.
* If you make a "real" disk image, you can get GRUB installed in
its MBR, toss in a suitable config file, and boot right off the
disk rather than having to use QEMU to boot the kernel or using
some silly CDROM ramdisk nonsense.
2012-09-29 00:39:01 -07:00
Kevin Lange
8c20e96fb6
reboot syscall will sync disks
2012-09-29 00:38:45 -07: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
777b442a1e
Finish rename of bochs driver to lfb driver.
...
* Removed some deprecated header stuff.
* Renamed functions / global variables.
2012-09-17 22:46:43 -07:00
Kevin Lange
5ce042f2d8
Deprecate VESA support.
...
This is in favor of bootloader-assisted mode switching. Grub has a
wonderful option we will exploit to set the video mode.
My laptop supports a couple of 32-bit video modes, which is nice,
because I'm not support 24-bit modes.
I'm not sure whether the super-sketchy video memory locator will work
in the real world, but we'll find out sometime soon.
2012-09-17 22:22:25 -07:00
Kevin Lange
4c67b5da84
Completely rewrote compositing engine
...
The compositor itself still needs work, but the compositing engine
within now does full blitting and is faster than the old method.
Transparency is now supported properly, though telling the compositor to
use it on a window will degrade performance. One terminal is usually
okay, and everything runs faster than it did before; two terminals is
pushing it; three will make you very sad. The stacking logic has also
been updated. Presumably, alpha blitting for transparent windows could
be done with SIMD instructions and be extremely fast.
All graphics libraries have also been updated to (hopefully) work
properly with alpha bits.
2012-09-13 22:12:47 -07:00
Kevin Lange
cea692b577
And now with more login.
...
* Also cleaning up some kernel logging options here.
* You can log in as local or root with passwords local and toor
* Graphical sessions are still buggy, so don't kill that terminal.
2012-09-12 23:19:07 -07:00
Kevin Lange
ba358a51ff
Bump kernel version
...
* Panel now displays actual kernel version using the uname hack
2012-09-12 20:08:30 -07:00
Kevin Lange
03181de68b
One line fix to a big bug in the ext2 driver
...
[ci skip]
2012-09-11 00:26:39 -07:00
Kevin Lange
af6be648d4
A lot of refactoring
2012-09-07 20:17:00 -07:00
Kevin Lange
5914a09735
Neglected to remove an include...
2012-09-04 20:58:19 -07:00
Kevin Lange
07955c83c6
Fix dozens of build warnings and other oddities.
...
* Finally bring syscall.h up to speed and include all syscalls in the
syscall module of the C library.
* Remove the third-party obfuscated C demos (we have nyancat, good
enough)
* Fix userspace apps to build without complaining about undeclared
strtok_r by disable __STRICT_ANSI__
* Fix .eh_frame by including the proper stuff with libgcc.
2012-09-04 20:27:49 -07:00
Kevin Lange
0cdecac8e0
Disable size overrides in rme
...
(Fixes a warning that was caused by a "fix" to a undefined reference to
a missing 64-bit floating-point division function)
2012-09-04 14:45:09 -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
c7cec92f35
Deprecate ',' in kernel args and fix run-fullscreen
2012-08-15 22:44:20 -07:00
Kevin Lange
444207cbd2
SIGCAT and fix alignment
2012-08-13 14:47:22 -07:00
Kevin Lange
baaa8bc6c8
Stylistic whitespace update to syscall.c
2012-07-06 21:16:19 -07:00
Kevin Lange
989b43ee68
Fix malloc in libc?
2012-06-01 02:02:02 +09:00
Kevin Lange
84ccf49990
Delayed writes [use sysfunc 3
to sync disc]
...
Please note that 'reboot' will not call sync yet, so make sure you do it
yourself.
2012-05-31 20:52:47 +09:00
Kevin Lange
0242e8aa11
[hopefully] Fix the EXT2 write support
2012-05-31 20:37:38 +09:00
Kevin Lange
5457de3906
System Debugging Functions syscall
2012-05-16 20:51:37 -04:00
Kevin Lange
5a1a45bc09
Faster mouse response
...
- Discard lots of packets
- Don't yield?
2012-04-12 23:21:38 -05:00
Kevin Lange
915ebc1dac
Increment version to 0.2.1
2012-04-11 00:16:24 -05:00
Kevin Lange
85b958b2cd
This is what happens when we don't maintain legacy stuff.
2012-04-10 23:49:22 -05:00
Kevin Lange
ac7720f396
Reenable support for a VGA text-mode terminal.
2012-04-10 23:35:12 -05:00
Kevin Lange
8096d89c16
[temp] Stop freeing file nodes (XXX)
2012-04-03 13:17:26 -05:00
Kevin Lange
35eb731ccb
Bump version to 0.2.0, change branch to -dev
2012-03-27 21:52:38 -05:00
Kevin Lange
f68ca25622
Boot-to-shell through kernel argument 'single'
2012-03-27 21:47:25 -05:00
Kevin Lange
958262e69d
Fix argv[0] bug
2012-03-27 21:36:39 -05:00
Kevin Lange
0ce4e02cba
Actually release directories again so we don't run out of RAM
2012-03-27 19:38:04 -05:00
Kevin Lange
639881f931
Make things faster, better, stronger, etc.
2012-03-27 19:09:11 -05:00
Kevin Lange
9fd73be686
Trying a few fixes... We're still doing some things very, very wrong.
2012-03-27 16:52:46 -05:00
Kevin Lange
fb6e5d59e3
Completely rewrite rendering model for compositor.
...
We know longer accept DAMAGE and REDRAW commands. Instead, we just loop
and redraw everything anyway (efficiently, mind you). Pipes still have
issues when closed and various other different things.
2012-03-27 13:58:21 -05:00
Kevin Lange
29e031e6f6
[docs] Clean up some fixed XXXs and TODOs
2012-03-15 13:15:57 -05:00
Kevin Lange
816ddc8f3e
Lots of process cleanup implemented; improved cursor rendering
2012-03-14 22:03:55 -05:00
Kevin Lange
ffbe7b7b38
A bunch of stuff.
2012-03-14 15:04:12 -05:00
Kevin Lange
03ee7ed9a9
Fix a kernel elf loader bug that was breaking getopt()
2012-03-13 17:43:35 -05:00
Kevin Lange
2791e7fd35
We've been doing some really stupid shit here...
2012-03-10 18:20:34 -06:00
Kevin Lange
66ba18fc33
Ug.
2012-03-10 15:03:59 -06:00
Kevin Lange
aa6e7ca62b
Actually, I'm just a complete moron, lolz
2012-03-10 13:36:16 -06:00
Kevin Lange
cf6437c477
We were also leaking on sigkills
2012-03-10 13:34:15 -06:00
Kevin Lange
4b132c195b
Thar's the problem.
2012-03-10 12:47:33 -06:00
Kevin Lange
e586a9361d
No, I was an idiot.
2012-03-10 12:42:23 -06:00
Kevin Lange
1c288e1c8b
We never freed nodes from the scheduler queue :(
2012-03-10 12:39:35 -06:00
Kevin Lange
1b2d0e2c75
Bump version number to 0.1.0 for EOH
2012-03-07 19:35:30 -06:00
Kevin Lange
8fb8edba3a
I have no idea idea what I'm doing.
2012-03-01 21:13:52 -06:00
Kevin Lange
2b0d6f6759
Some very simplistic window management
2012-02-25 23:52:09 -06:00
Kevin Lange
db8a75071d
We have a terminal. In a window. Seriously.
2012-02-23 00:36:49 -06:00
Kevin Lange
2da22312a5
Merge branch 'master' of github.com:klange/osdev
2012-02-20 23:32:10 -06:00
Kevin Lange
de7a984938
Fix a bunch of bugs in signal handling and scheduling
2012-02-20 23:31:00 -06:00
Kevin Lange
e335a2970a
[glogin] Working on the graphical login application
2012-02-19 21:29:40 -06:00
Kevin Lange
e1beca4127
CPU detection moved to userspace app
2012-02-19 19:39:18 -06:00
Kevin Lange
e5ed5cdca0
Disable line buffering in pipes. Totally not our job.
2012-02-17 15:01:09 -06:00
Kevin Lange
7c41cd7080
Fix compile warnings
2012-02-17 01:27:56 -06:00
Kevin Lange
220e9cbc57
Hopefully fix some latent signal bugs
2012-02-17 01:21:11 -06:00
Kevin Lange
678ed81c65
Extensive stability fixes. I think I finally squashed those stack bugs.
2012-02-16 22:43:41 -06:00
Kevin Lange
531d70f933
Ugly fix to bootup stack fault bug
2012-02-16 15:51:26 -06:00
Kevin Lange
8fb69d44cd
I have no frickin' clue what's causing these startup crashes. Requires further investigation.
2012-02-16 15:09:56 -06:00
Kevin Lange
a1d821de9b
Various fixes
2012-02-16 14:38:50 -06:00
Kevin Lange
a72f9bc7cf
Fix stack bug.
2012-02-16 14:31:40 -06:00
Markus Schober
6dc90b1ac2
shm_obtain takes a (size_t *) and modifies the value based on the true
...
size of the block returned.
2012-02-16 03:34:42 -06:00
Kevin Lange
c67d2796ef
Finish threading (might still be some bugs)
2012-02-16 01:06:44 -06:00
Markus Schober
4453aba2de
can haz threads?
2012-02-15 22:56:16 -06:00
Kevin Lange
cffbb02240
Stuff and things
2012-02-15 20:50:31 -06:00
Kevin Lange
de0bbe739b
Fix a bunch of system calls...
2012-02-12 18:47:01 -06:00
Kevin Lange
9b1e227c0f
Fix a dozen different things.
2012-02-12 16:45:23 -06:00
Kevin Lange
cc7354d298
Fix bad process switch handling on empty queues
2012-02-11 18:27:28 -06:00
Kevin Lange
89c7ef9620
Add signal header...
2012-02-11 18:02:22 -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
58c176dfa0
Syscalls to share file descriptors over a shared memory region
2012-02-08 20:59:34 -06:00
Kevin Lange
180342822a
Merge branch 'master' of github.com:klange/osdev
2012-02-08 20:09:33 -06:00
Kevin Lange
79fcaf5136
Stability fixes.
2012-02-08 20:09:28 -06:00
Markus Schober
27d0deed5b
[shm] fork() and execve() don't wreak havoc on shm
2012-02-08 19:59:34 -06:00
Kevin Lange
aa73f6fc6e
Fix a task 0 exit bug
2012-02-08 19:30:35 -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
a190f9995c
shm negotiate comments
2012-02-06 15:37:40 -06:00
Kevin Lange
fdaf53b0c4
[shm] Working on negotiation functions
2012-02-05 19:56:21 -06:00
Kevin Lange
1a5057e1fa
[minor] typo
2012-02-05 18:14:29 -06:00
Kevin Lange
aba36f4dce
Reserving syscall numbers for shared memory
2012-02-05 18:12:50 -06:00
Kevin Lange
c4e33117c0
mkdir and creat testing
2012-02-05 16:04:41 -06:00
Kevin Lange
6590b285b5
Mouse improvements (stability, scaling)
2012-02-04 22:29:46 -06:00
Kevin Lange
3bade472f2
Change comment regarding version names
2012-02-03 22:41:55 -06:00
Kevin Lange
2e8144493d
Bootsplash testing (launches terminal afterwards)
2012-02-03 18:16:47 -06:00
Kevin Lange
78e96435ad
[util] Script to run fullscreen
2012-02-03 12:23:49 -06:00
Kevin Lange
aac1d78e35
Drop packets from the mouse if the client isn't reading fast enough
2012-02-02 20:37:50 -06:00
Kevin Lange
4366a20a8f
Pipe and packet-based mouse device
2012-02-02 16:16:29 -06:00
Kevin Lange
6f773cf407
Fix a cast warning
2012-01-31 20:12:19 -06:00
Kevin Lange
89d9265c73
Actually deschedule processes when they are waiting
2012-01-31 19:27:38 -06:00
Kevin Lange
71298a5c83
Relatively broken local echo support
2012-01-31 00:16:09 -06:00
Kevin Lange
a8cc561cce
Try to write good documentation for the vfs module
2012-01-30 16:48:54 -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
c9d5e735ed
Getting ready for thread support
2012-01-28 17:06:07 -06:00
Kevin Lange
a47fe02224
Directory switching
2012-01-27 13:10:58 -06:00
Markus Schober
405868ac8a
First commit of readdir/ls support.
2012-01-27 04:04:04 -06:00
Kevin Lange
9061f91e74
stat(), fstat(), /bin/stat
2012-01-27 03:12:29 -06:00
Kevin Lange
71f5a8e3e4
New MOTD, bump version number (0.0.2-testing uiharu)
2012-01-27 00:25:28 -06:00
Kevin Lange
d112f6fedb
Reboot [and fix user/group permissions in fork()]
2012-01-26 23:11:43 -06:00
Kevin Lange
ac8354d805
Add some system calls, plus a fakish /bin/login
2012-01-26 22:46:18 -06:00
Tianyi Wang
35ce150bb0
Fixes where the block number of inode is incorrectly changed.
2012-01-25 23:30:41 -06:00
Kevin Lange
c7afd7b941
HACF should return non-zero.
2012-01-25 20:08:22 -06:00
Tianyi Wang
cbb739e14b
[fix merge conflict]
2012-01-25 19:30:45 -06:00
Tianyi Wang
023865913c
fs stuffs
2012-01-25 19:25:59 -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
d9c0c8efb6
Pipes, dup2, and an almost-kinda-working terminal
2012-01-24 19:06:07 -06:00
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
e05515844d
Null device
2012-01-23 23:01:23 -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
ed31c2cbea
Drop serial output from standard terminal
2012-01-23 12:36:59 -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
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
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
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
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
Kevin Lange
8c548c0db0
Restructure directory tree for kernel modules
2011-12-14 22:15:47 -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
3b6512a6ae
[log] Fix logging, and log some init functions
2011-12-14 19:06:11 -06:00
Kevin Lange
748a8e8d28
[log] Simple logging facility
2011-12-14 17:47:30 -06:00
Kevin Lange
cbc60a89cf
[proc] Documentation, in my code?
2011-12-14 02:37:43 -06:00
Kevin Lange
9834979e38
[task] Comments
2011-12-14 02:29:23 -06:00
Kevin Lange
4373e904ac
[misc] Actually enter user mode properly so our TSS gets used
2011-12-13 16:06:45 -06:00
Kevin Lange
2fdf993af7
[ide] Minor updates
2011-12-13 00:48:04 -06:00
Kevin Lange
61bdd8f11d
[misc] Various, meaningless edits
2011-12-12 02:17:14 -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
3670757dc9
[misc] Make those all uniform, remove redundant ones
2011-12-10 17:42:41 -06:00
Kevin Lange
385fdae86c
[misc] Add vim hints to the top of all modules
2011-12-10 17:34:10 -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
3f513579e1
initial work on new process model
2011-12-07 20:59:08 -06:00
Kevin Lange
9f165800b7
[tree] Add some new functions
2011-12-07 20:58:47 -06:00
Kevin Lange
3d916ea911
[kbd/mouse] Clean up
2011-12-07 20:58:25 -06:00
Kevin Lange
c4fe97af6d
[kbd] Cleanup
2011-12-07 15:01:31 -06:00
Kevin Lange
04a5f4a833
[sys] Pass on values for failed executions
2011-12-06 20:36:25 -06:00
Kevin Lange
dca46fffc4
[sys] wait(pid)
2011-12-06 20:13:20 -06:00
Kevin Lange
8d0ebc5042
Fix forking?
2011-12-06 19:46:22 -06:00
Kevin Lange
fb2759e01a
[mem] Add some new page fault special things
2011-12-06 19:43:45 -06:00
Kevin Lange
abcbefece3
[ext2] *Should* be a working inode writer
2011-12-06 18:04:42 -06:00
Kevin Lange
cf6b4081b2
[ext2] remove STOP from inode allocator
2011-12-05 00:27:25 -06:00
Kevin Lange
a9555e28ce
[ext2] Bitmap allocation, we can (almost) allocate inodes
2011-12-05 00:21:56 -06:00
Kevin Lange
a9661400e2
[fs] Use the path canonicalization function for opening and cd'ing
2011-11-29 20:19:30 -06:00
Kevin Lange
7ecd1bd440
[shell] Various testing functions
2011-11-29 13:33:25 -06:00
Kevin Lange
80db0f331d
[vfs] Proper path canonicalization available
2011-11-29 13:28:36 -06:00
Kevin Lange
05860ee7c7
[list] Fix remove and pop
2011-11-29 13:07:59 -06:00
Kevin Lange
30326e5dd3
[ext2] Fix bad allocations for block objects
2011-11-29 13:06:41 -06:00
Kevin Lange
dd6aaf1a9d
[main] Fix vim hints
2011-11-29 13:06:17 -06:00
Kevin Lange
1f1009106a
[tree] Some comments couldn't hurt
2011-11-29 07:10:35 -06:00
Kevin Lange
8f07b1a417
[mem/task] Fix broken handling of page faults
...
The method I was using resulted in a loop of halts attempting
to remove process 0 from the thread queue if the kernel itself
was doing the faulting. This should fix that. Once there are
no more processes available, we bail out and call STOP.
2011-11-29 07:02:05 -06:00
Kevin Lange
9bd14b5a24
[tree] Fix branch removal
2011-11-29 07:01:36 -06:00
Kevin Lange
63ae277053
[tree/list] Some additional functions
2011-11-29 06:52:26 -06:00
Kevin Lange
47a6832606
[tree] Simple tree implementation for processes
2011-11-29 02:49:19 -06:00
Kevin Lange
f5d1d411cf
[list] Lists only got bigger...
2011-11-29 01:55:11 -06:00
Kevin Lange
05b59d366f
[list] Fix some bugs in that. It never works on the first push anyway, right?
2011-11-28 23:45:33 -06:00
Kevin Lange
ea7ddfe61d
[list] Simple doubly-linked list implementation
2011-11-28 23:28:55 -06:00
Kevin Lange
bb606f948d
[shell] Line editing.
2011-11-26 17:18:35 -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
94fe43a45e
[vfs] Fix an allocation bug
2011-11-26 17:18:00 -06:00
Kevin Lange
1b1cad3f4a
[shell] Scroll through history
2011-11-26 16:14:35 -06:00
Kevin Lange
0be609c334
[shell] Simple command history
2011-11-26 15:52:24 -06:00
Kevin Lange
d8c15cb0b1
[shell] Fix tab completion, I was an idiot
2011-11-26 15:26:12 -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
149225e097
[fs] Code cleanup
2011-11-24 12:33:20 -06:00
Kevin Lange
2efc98d5a6
[fs] Unify all read calls, add a write_block function
2011-11-24 12:28:21 -06:00
Kevin Lange
b8b48cfc65
[fs] Print some debug information on mount
2011-11-23 22:27:18 -06:00
Kevin Lange
450a8784e2
[misc] Prepare for the inevitable support for file writes
2011-11-23 21:38:51 -06:00
Kevin Lange
65e6b0e800
[shell] Redraw prompt on ^L
2011-11-23 21:22:25 -06:00
Kevin Lange
63f57855bf
[shell] Complete rewrite (sort of)
2011-11-23 21:18:48 -06:00
Kevin Lange
d8e7198473
[shell] Highlight executables in green. Add info command.
2011-11-23 13:45:08 -06:00
Kevin Lange
8aee786497
[sys] This seems to help fork() a small bit
2011-11-18 22:14:00 -06:00
Kevin Lange
4052a8f63a
[ext2/disk] Increase cache size
...
Also move cache entries to a malloc'd block so we allocate them
dynamically after mounting.
2011-11-18 22:13:10 -06:00
Kevin Lange
26a717db14
[bochs] Change output for wallpaper loading
2011-11-18 15:16:04 -06:00