Jonas 'Sortie' Termansen
de70b1804d
Rewrote the x86 64-bit division stubs, which now actually work.
2011-12-04 19:02:35 +01:00
Jonas 'Sortie' Termansen
a2dd8be7aa
Fixed using wrong system call in libmaxsi/x64/signal.s
2011-12-04 18:24:06 +01:00
Jonas 'Sortie' Termansen
61f02431ee
Removed ConvertUInt{8,16} - ConvertUInt32 handles their input instead.
2011-12-04 15:49:29 +01:00
Jonas 'Sortie' Termansen
3b8bf9419d
Removed obsolete functions to read from the initrd.
...
Use the initrd filesystem instead.
2011-12-04 15:38:02 +01:00
Jonas 'Sortie' Termansen
635a49644a
Made usleep(2) a sortix extension.
2011-12-04 15:24:55 +01:00
Jonas 'Sortie' Termansen
7623ff8092
unistd.h now uses the __useconds_t from sortix/bits.h.
2011-12-04 15:11:39 +01:00
Jonas 'Sortie' Termansen
b0859c6d92
usleep'ing for 0 usecs simply causes a context-switch.
2011-12-02 22:37:17 +01:00
Jonas 'Sortie' Termansen
ae1c157445
Temporary hack to make x64 system calls use the right registers.
2011-12-01 14:54:47 +01:00
Jonas 'Sortie' Termansen
6562da4092
waitpid(2) now returns ECHILD on error.
2011-12-01 14:54:19 +01:00
Jonas 'Sortie' Termansen
c0c20860ed
Lots of improvements to 64-bit Sortix.
...
Fixed 64-bit-ness bug in BSR() and BSF().
Added 64-bit system call stubs in libmaxsi.
Added a Elf64 program loader.
Fixed uninitialized memory bug in the scheduler.
x64/boot.s now takes care of user-space memory permissions.
Fixed bug in x64/syscall.s
That's right. The system now boots in 64-bit mode.
It is horribly unstable, though.
2011-12-01 10:45:44 +01:00
Jonas 'Sortie' Termansen
0b1c2a77c9
x64 now compiles again and runs on real hardware.
...
A nasty bug was fixed that caused triple faults on systems with > 1 GiB RAM.
2011-11-29 01:31:54 +01:00
Jonas 'Sortie' Termansen
8c146f14c0
Added uptime(1).
2011-11-28 16:29:53 +01:00
Jonas 'Sortie' Termansen
6781308360
Rewrote the memory allocation functions.
...
free(3) can now unify unused neighbor blocks, reducing mem usage.
2011-11-27 22:53:05 +01:00
Jonas 'Sortie' Termansen
4f3a7230b0
Destroying the addressspace after exit prevents leak of at least 16 KiB.
2011-11-27 12:02:34 +01:00
Jonas 'Sortie' Termansen
bd1b1fe3bc
Added isatty(2), which is used by editor.
2011-11-26 21:00:40 +01:00
Jonas 'Sortie' Termansen
9152443816
Added memstat, a program for displaying memory usage.
2011-11-26 20:14:57 +01:00
Jonas 'Sortie' Termansen
d4231b2027
Added program_invocation_name(3), error(3), and perror(3) and used them.
2011-11-26 11:00:45 +01:00
Jonas 'Sortie' Termansen
b6a0fd0374
Removed deprecated VGA API and moved it to /dev/vga.
2011-11-25 13:38:31 +01:00
Jonas 'Sortie' Termansen
7aff476117
Fixed bug in the remove function of the sorted list class.
2011-11-24 10:41:13 +01:00
Jonas 'Sortie' Termansen
4890c306c4
printf(3) now writes to fd 1.
2011-11-24 10:26:36 +01:00
Jonas 'Sortie' Termansen
2b032b0414
Initial signal support. Please squash improvements into this commit.
2011-11-23 00:19:09 +01:00
Jonas 'Sortie' Termansen
e234e0a2d4
execve(2) now sets errno=EACCESS on non-buffer files.
2011-11-22 18:21:01 +01:00
Jonas 'Sortie' Termansen
9deb183786
The ELF loader now uses errno.
2011-11-22 18:06:40 +01:00
Jonas 'Sortie' Termansen
9f35df813e
Implemented errno(3), added support in both kernel and utils.
2011-11-22 17:26:47 +01:00
Jonas 'Sortie' Termansen
e8fb8d885b
execve(2) can now load programs from the filesystem.
...
Previously it was restricted to only the ramdisk.
2011-11-22 14:02:33 +01:00
Jonas 'Sortie' Termansen
55240fb3f5
Added devfs, with files /tty and /null and mounted it at /dev.
2011-11-21 21:49:13 +01:00
Jonas 'Sortie' Termansen
8b2b52b9f6
Added unlink(2) and rm(1).
2011-11-21 19:01:56 +01:00
Jonas 'Sortie' Termansen
211af74690
Fixed bug where SortedList::Search did not sort the list if needed.
2011-11-21 14:56:09 +01:00
Jonas 'Sortie' Termansen
d4590cefa1
Added chdir(2), getcwd(2), which mxsh and ls now uses.
2011-11-21 12:19:57 +01:00
Jonas 'Sortie' Termansen
313079483a
Missing files from the previous two commits. Ooops!
2011-11-21 00:19:55 +01:00
Jonas 'Sortie' Termansen
23fde42249
Added readdirents(2), which ls(1) now uses, and added dir devices.
...
The initfs and ramfs are now able to list their contents.
2011-11-21 00:02:53 +01:00
Jonas 'Sortie' Termansen
728bde3bee
Added strncmp(3).
2011-11-20 17:07:01 +01:00
Jonas 'Sortie' Termansen
190989646b
Added an filesystem able to browse the initrd.
2011-11-20 16:25:32 +01:00
Jonas 'Sortie' Termansen
3d7e565d23
strcat(3) now nul-terminates strings properly.
2011-11-19 10:32:08 +01:00
Jonas 'Sortie' Termansen
013e11ca5e
Added a RAM filesystem.
2011-11-19 00:57:17 +01:00
Jonas 'Sortie' Termansen
ae423eaeef
Added open(2).
...
Please note that mount points and file systems do not exist yet.
2011-11-19 00:57:17 +01:00
Jonas 'Sortie' Termansen
6447783c12
strcpy(3) now nul-terminates dest.
2011-11-19 00:52:42 +01:00
Jonas 'Sortie' Termansen
dd349a150a
Merge branch 'master' of gitorious.org:sortix/sortix
...
Conflicts:
libmaxsi/c/hsrc/unistd.h
libmaxsi/io.cpp
sortix/io.cpp
sortix/syscallnum.h
2011-11-17 22:28:20 +01:00
Jonas 'Sortie' Termansen
05196f49b2
Added dup(2).
2011-11-17 20:34:04 +01:00
Jonas 'Sortie' Termansen
5bde040295
Fixed randomness-related crash in snake.
2011-11-17 13:11:09 +01:00
Jonas 'Sortie' Termansen
e8cd27c353
Added close(2) and fixed bugs in pipe(2) and others.
2011-11-17 10:22:43 +01:00
Jonas 'Sortie' Termansen
a7de7b4905
Added pipe(2), write(2), and read(2).
2011-11-16 21:21:38 +01:00
Jonas 'Sortie' Termansen
c5605b6693
Pong and snake now use rand(3).
2011-11-10 12:28:35 +01:00
Jonas 'Sortie' Termansen
33c0a9586e
Added atoi(3).
2011-11-09 23:48:26 +01:00
Jonas 'Sortie' Termansen
ae599b6d67
Argv now works in main.
2011-11-09 23:18:26 +01:00
Jonas 'Sortie' Termansen
b27fa68c81
The shell now forks, uses exit, and wait.
2011-11-07 01:00:18 +01:00
Jonas 'Sortie' Termansen
024f1581ea
Added the wait() and waitpid() system call.
2011-11-07 00:59:48 +01:00
Jonas 'Sortie' Termansen
cfd7648ca9
Added the _exit() system call.
...
exit() will not call _exit() yet, we need support for wait() in the shell.
2011-11-05 20:19:36 +01:00
Jonas 'Sortie' Termansen
f9e10ab265
Added an API for user-space to list the initrd, and 'ls' does so now.
2011-11-03 18:26:43 +01:00
Jonas 'Sortie' Termansen
b742eafd7c
Removed the unused Maxsi::StdOut namespace.
2011-11-02 19:17:17 +01:00