Kevin Lange
2978d31461
Unrecognized command
2013-11-27 22:47:05 -08:00
Kevin Lange
283ac3c824
Add some tokenizing
2013-11-27 22:41:27 -08:00
Kevin Lange
8c469883bc
Wrap serial console in a TTY
2013-11-27 22:24:58 -08:00
Kevin Lange
3c9a717429
Tasklet cleanups, make kttydebug useful
2013-11-27 21:21:39 -08:00
Kevin Lange
e95c9eb40b
Fix procfs when no cmdline is present
2013-11-27 21:21:09 -08:00
Kevin Lange
5a422a58c7
Bump version number
2013-11-27 19:15:36 -08:00
Kevin Lange
10f4cc6811
Tasklets; fix dead sleep; kernel serial console
...
- Tasklets are essentially kernel threads. Still working on passing
arguments to them, but they essentially just run functions and have
special names like [[kttydebug]]. Eventually, I want disk scheduling
and various (non-interrupt-driven) drivers running on these, but I'm
still not sure how stable they are.
- Fix the scheduler so it supports not having anything to run. This took
some tracking of what's running, and then inserting some liberal
sleeps. Doesn't appear to break anything. Makes the system work when
you try to sleep with only one process "running", so that's good.
- Start working on reimplementing the old kernel shell, but this time as
a tasklet running in the background over serial. Probably going to try
to add all the same features as before (tab completion, history, rich
editing), but it may take some time to get it all in there. This
console is mostly focused on helping with debugging EXT2 and other
future stuff.
2013-11-27 19:11:58 -08:00
Kevin Lange
8dfd4ff20a
Make serial devices more useful
...
They now use interrupts and thus can be blocked on without sitting in a
busy loop. Not sure if they still work perfectly, need to debug. Works
fine with the console "serial" stuff in qemu.
Todo: Investigate further.
2013-11-27 19:10:38 -08:00
Kevin Lange
922fdd5f38
None of this actually works, but whatever
2013-08-19 19:38:15 -07:00
Kevin Lange
7351fa308b
Various fixes to help get bash working
2013-08-04 00:04:22 -07:00
Kevin Lange
948813d0be
Fix buffer clearing and dumping when switching modes
2013-07-27 22:21:04 -07:00
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