mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
Start working on memory-mapped files.
First of all, change sys$mmap to take a struct SC_mmap_params since our sycsall calling convention can't handle more than 3 arguments. This exposed a bug in Syscall::invoke() needing to use clobber lists. It was a bit confusing to debug. :^)
This commit is contained in:
parent
41a751c90c
commit
fdbd9f1e27
14 changed files with 82 additions and 26 deletions
|
@ -17,21 +17,17 @@ extern "C" void __malloc_init();
|
|||
|
||||
extern "C" int _start()
|
||||
{
|
||||
__malloc_init();
|
||||
|
||||
errno = 0;
|
||||
|
||||
memset(__default_streams, 0, sizeof(__default_streams));
|
||||
|
||||
__default_streams[0].fd = 0;
|
||||
stdin = &__default_streams[0];
|
||||
|
||||
__default_streams[1].fd = 1;
|
||||
stdout = &__default_streams[1];
|
||||
|
||||
__default_streams[2].fd = 2;
|
||||
stderr = &__default_streams[2];
|
||||
|
||||
__malloc_init();
|
||||
|
||||
StringImpl::initializeGlobals();
|
||||
|
||||
int status = 254;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue