Jonas 'Sortie' Termansen
0515111314
The initial ramdisk is now mapped onto a special location.
...
This fixes issues where it did not fit into the first few MiB,
or that GRUB loaded it someplace weird.
The kernel heap is now also protected against growing into the
ramdisk and the kernel stack.
2011-12-22 14:13:18 +01:00
Jonas 'Sortie' Termansen
a623b1b07e
Fixed registering memstat(2) multiple times.
2011-12-22 12:59:48 +01:00
Jonas 'Sortie' Termansen
c8c08e7b90
Moved the make-color-red code into DoWelcome in kernel.cpp.
2011-12-22 12:56:29 +01:00
Steve Dougherty
567786d26b
Added calc, an integer-based reverse polish notation calculator.
2011-12-17 11:40:16 +01:00
Jonas 'Sortie' Termansen
203f2a2bb1
Better default octal detection in strtol(3).
2011-12-16 22:24:29 +01:00
Jonas 'Sortie' Termansen
73bcafc004
strtol(3) now returns 0 if the string was + or -.
2011-12-16 21:44:32 +01:00
Jonas 'Sortie' Termansen
f1a49dbad3
Hex numbers now work properly in strtol(3).
2011-12-16 21:15:26 +01:00
Jonas 'Sortie' Termansen
ae6696ed7a
Added -fno-exceptions to the cross compiler flags.
2011-12-16 18:46:56 +01:00
Jonas 'Sortie' Termansen
da2bfac34f
Fixed bug in strtol*.
2011-12-16 18:28:22 +01:00
Jonas 'Sortie' Termansen
bf6a4c1861
Added strto{u,}{l,}l(3).
2011-12-16 16:49:27 +01:00
Jonas 'Sortie' Termansen
0f5864602f
Fixed bad filename written in elf.cpp.
2011-12-16 15:35:45 +01:00
Jonas 'Sortie' Termansen
7cd28f097c
Program loader now sets the correct program segment type.
2011-12-16 15:33:12 +01:00
Jonas 'Sortie' Termansen
acf1eebc98
Added user-space memory allocation.
2011-12-16 13:24:49 +01:00
Jonas 'Sortie' Termansen
fecaf6b43f
System calls in libmaxsi now use the constants from syscallnum.h.
2011-12-09 12:41:06 +01:00
Jonas 'Sortie' Termansen
8be3624ca3
Added auto-completion to snake for debugging purposes.
2011-12-06 14:18:15 +01:00
Jonas 'Sortie' Termansen
fefeb92e89
Begun development of Sortix 0.6.
2011-12-06 01:28:23 +01:00
Jonas 'Sortie' Termansen
9b3efeed5a
Updated version number to 0.5.
2011-12-05 23:22:27 +01:00
Jonas 'Sortie' Termansen
aae0ed3092
The cursor is disabled when displaying the VGA under JSVM.
2011-12-05 22:13:51 +01:00
Jonas 'Sortie' Termansen
2c728fc1f1
VGA now sort-of works under serial-connections.
2011-12-05 21:44:14 +01:00
Jonas 'Sortie' Termansen
9e5b9e3767
Hacks to make the JSVM serial driver work better.
2011-12-05 21:14:50 +01:00
Jonas 'Sortie' Termansen
cdb873271d
Increased hard-coded maximum JSVM initrd size to 2 MiB 512 KiB.
2011-12-05 19:43:27 +01:00
Jonas 'Sortie' Termansen
7e55f325fc
Don't check the initrd on JSVM.
2011-12-05 19:36:15 +01:00
Jonas 'Sortie' Termansen
0bb91ee161
printf(3) now supports signed integers and ptrdiff_t.
2011-12-05 13:59:26 +01:00
Jonas 'Sortie' Termansen
a9609502ed
Removed references to mksound from mxmpp.
2011-12-04 21:33:23 +01:00
Jonas 'Sortie' Termansen
889646d033
Removed excess space.
2011-12-04 21:31:53 +01:00
Jonas 'Sortie' Termansen
854d9b171a
uptime(2) now reports usecs instead of msecs.
2011-12-04 21:27:21 +01:00
Jonas 'Sortie' Termansen
597e700618
Removed outdated comment about sleep(2) and signals.
2011-12-04 21:08:26 +01:00
Jonas 'Sortie' Termansen
5bc05c4e0e
Moved around comments in heap.cpp.
2011-12-04 20:59:42 +01:00
Jonas 'Sortie' Termansen
fcc6147c5c
Prevent the kernel from calling system calls.
2011-12-04 20:56:29 +01:00
Jonas 'Sortie' Termansen
60d23eac19
printf now understands %l and %j.
2011-12-04 20:53:43 +01:00
Jonas 'Sortie' Termansen
84b93044c8
Sortix now defaults to build the same arch as the host machine.
2011-12-04 20:21:36 +01:00
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
0f0696dc74
make clean also cleans bench/ now.
2011-12-04 15:06:30 +01:00
Jonas 'Sortie' Termansen
d9205a59df
The games now use the error(3) function.
2011-12-04 15:04:06 +01:00
Jonas 'Sortie' Termansen
fda16f93ac
Added a everything-all-archs target that builds both x86 and x64.
2011-12-02 22:59:33 +01:00
Jonas 'Sortie' Termansen
ac81da7609
Only build benchmarks when given BENCH=1 to make.
2011-12-02 22:48:30 +01:00
Jonas 'Sortie' Termansen
63cde07004
Added a benchmark for counting context-switches per second.
2011-12-02 22:39:18 +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
5862441351
Added a system calls per second benchmark.
2011-12-02 12:27:58 +01:00
Jonas 'Sortie' Termansen
f8129a17b2
Changed the build system for 64-bit quite a bit.
...
The kernel is now compiled 100% as 64-bit code and converted to ELF32.
2011-12-01 23:06:34 +01:00
Jonas 'Sortie' Termansen
8e8bb15a1b
Improved corruption panic message in initrd.cpp
2011-12-01 23:03:00 +01:00
Jonas 'Sortie' Termansen
b0884584a1
Added a very simple checksum field to the init ramdisk.
...
This uncovers a bug where the bootloader may corrupt the initrd on x64.
This is probably related to our kernel64 hack..
2011-12-01 21:44:11 +01:00
Jonas 'Sortie' Termansen
2faafd3f99
Stack is now aligned in 64-bit Sortix threads.
2011-12-01 21:43:35 +01:00
Jonas 'Sortie' Termansen
7304c8f528
Fixed uninitialized memory bug in the keyboard driver.
...
This often prevented the letter 'c' from working in x64.
2011-12-01 17:30:14 +01:00
Jonas 'Sortie' Termansen
f5b46a89ed
uname(1) now reports whether the system is 32-bit or 64-bit.
2011-12-01 15:30:17 +01:00