Ben Gras
68d0c4defe
- code shared with exec() letting boot-time processes have
...
their own fully fledged virtual address space and freeing
their pre-allocated heap+stack area (necessary to let memory
driver map in arbitrary areas of memory for /dev/mem without
sys_vm_map)
- small optimization preallocating memory on exec
- finished VR_DIRECT physical mapping code
2008-12-08 16:43:20 +00:00
Ben Gras
9b33056d2b
make allocmem accept and return values in bytes, ramdisk expects this.
2008-11-19 15:40:17 +00:00
Ben Gras
51fdce1d36
minor fixes
2008-11-19 14:10:33 +00:00
Ben Gras
6c92081a5a
paged mode is default.
2008-11-19 13:19:37 +00:00
Ben Gras
7b3d952a77
lingering file
2008-11-19 12:38:31 +00:00
Ben Gras
c078ec0331
Basic VM and other minor improvements.
...
Not complete, probably not fully debugged or optimized.
2008-11-19 12:26:10 +00:00
David van Moolenbroek
f73b541952
Backport of fix from asynchvfs branch for PM-LOG-VFS-PM deadlock that resulted in VFS panics.
2008-06-24 13:53:03 +00:00
Philip Homburg
4696d74480
Select support for eth by Erik van der Kouwe.
2008-03-12 14:10:21 +00:00
Philip Homburg
9d62f56ea1
SYS_MAPDMAx -> SYS_MAPDMA.
2008-02-25 14:36:28 +00:00
Philip Homburg
f82a1c4df7
Fixed include files.
2008-02-25 14:35:54 +00:00
Philip Homburg
bc7e3c02a3
Asynchronous select implementation.
2008-02-22 15:46:59 +00:00
Philip Homburg
ff7eae2ad8
Private copy of kputc to support asynch communication with log device.
2008-02-22 15:43:33 +00:00
Philip Homburg
2ec762c60c
Asynchronous communication with character specials.
2008-02-22 15:41:07 +00:00
Philip Homburg
d9a9b727e2
Added dmap_async_driver and dmap_sel_filp fields. Support for asynch character
...
drivers (needs cleaning up).
2008-02-22 15:01:00 +00:00
Philip Homburg
9df94c5ee8
Use dev_t instead of Dev_t in structures.
2008-02-22 14:54:00 +00:00
Philip Homburg
097d8fee66
Use nonblocking send for reply. Support for asynchronous message passing
...
(needs cleaning up).
2008-02-22 14:53:02 +00:00
Philip Homburg
66c930ef8b
Higher NCALLS requires bigger table. New calls are in PM.
2008-02-22 14:51:38 +00:00
Philip Homburg
93ff4c327f
Added XDOPEN.
2008-02-22 14:50:41 +00:00
Philip Homburg
9388a27070
Support for O_REOPEN flag and pass the filp numbet to dev_open.
2008-02-22 14:49:02 +00:00
Philip Homburg
7387449b23
Support for suspending on character device open and on drivers that need to
...
be restarted.
2008-02-22 14:47:40 +00:00
Philip Homburg
ca91b3b5be
New fp_flags. Currently used to signal that is process should be suspended
...
a driver is restarted.
2008-02-22 14:32:23 +00:00
Philip Homburg
6ef71b8198
Pass suspend_reopen flag to dev_io.
2008-02-22 14:26:41 +00:00
Philip Homburg
047cc090e4
Added filp_state for driver recovery and filp_select_flags to store select
...
state for character specials that use asynch I/O.
2008-02-22 14:19:23 +00:00
Philip Homburg
1d7d5aa629
dev_close needs the filp number for asynch I/O, dev_io gets suspend_reopen
...
flag to suspend a process until the filedescriptor is re-opened. Added
dev_reopen, asyn_io, suspended_ep, reopen_reply, asynsend, diag_repl,
close_filp, close_reply, unpause, select_reply1, select_reply2.
2008-02-22 14:03:14 +00:00
Philip Homburg
e5df351245
Support for blocking open on char specials (due to asynch message passing),
...
asynch. close, added close_filp function.
2008-02-22 13:57:11 +00:00
Philip Homburg
1cffa69d2c
Support for I/O MMU: do not re-use a memory segment until the I/O MMU has
...
removed it from its map.
2008-02-21 16:33:34 +00:00
Philip Homburg
3f23bca404
Removed defines not needed by mfs (XPIPE, XLOCK, XPOPEN, XSELECT, DUP_MASK).
2008-02-21 16:22:36 +00:00
Philip Homburg
ca8291c815
Support for restricting limiting IPC to a set of endpoints. Not enabled by
...
default, pass -i to service. Do not reply to bogus request types. Reply using
sendnb.
2008-02-21 16:20:22 +00:00
Philip Homburg
d9858cfabf
Removed some debug output.
2008-02-21 16:08:08 +00:00
Ben Gras
2876d5c4ba
Optimization in searching for new zones to allocate contributed
...
by Jens de Smit.
2008-02-06 15:05:57 +00:00
Ben Gras
67d1b67805
exit prototype
2007-10-23 14:19:16 +00:00
Ben Gras
e8aec69c7b
tweak to panic functions of mfs and vfs.
...
. print newline
. when recursive panic detected, don't simply return, confusing
the caller, but print a diagnostic and exit
. don't call sys_exit as this may confuse PM; it should be OK
to call PM exit() nowadays.
2007-10-23 14:17:51 +00:00
Ben Gras
21ae963cf1
Fixes two wrong grant return checks and one 'grant leak'.
2007-10-17 10:46:20 +00:00
Ben Gras
b6e07e1835
close device if mount fails after device opened.
2007-09-26 15:06:41 +00:00
Ben Gras
38604e4e3a
Don't truncate read requests based on v_size; v_size can be stale in the
...
case of directories extended by subfilesystem. Rely on subfilesystem to
do read size truncating and return actual i/o size. This fixes bug 81 in
gforge, and unbreaks test 23.
2007-09-11 15:52:22 +00:00
Philip Homburg
ab3062c8c0
REQ_FSTATFS now operates on the root inode (the inode parameter has been
...
removed)
2007-08-17 11:20:59 +00:00
Philip Homburg
9c3f85d14f
Better interface for sys_times.
2007-08-16 13:16:26 +00:00
Philip Homburg
4b1cd8c0ec
Return EIO if a filedescriptor cannot be re-opened after a driver restart.
...
Select now returns such a filedescriptor as ready (instead of EBADF).
Reply before dev_up in FSSIGNON to avoid the problem that a DEV_OPEN
request is received by a driver that expects a reply from the FSSIGNON.
2007-08-15 12:53:52 +00:00
Philip Homburg
90fde6e97d
cleanup
2007-08-10 13:02:39 +00:00
Philip Homburg
06e1f0da61
Better recovery when req_readsuper fails.
2007-08-10 13:01:38 +00:00
Philip Homburg
57c6f099f2
Removed old debug code.
2007-08-08 15:27:07 +00:00
Philip Homburg
e2f06e7c89
Directory check before access check.
2007-08-08 15:26:47 +00:00
Philip Homburg
a116b3aa55
To return the right error, check first is an object is a directory (for
...
mkdir, rmdir/unlink, mknod), simply pipe code by using v_pipe_rd_pos and
v_pipe_wr_pos directly. Some cleanup work in open.c
2007-08-08 14:01:36 +00:00
Philip Homburg
c2bf536a55
Disable POSIX-required behavior wrt trailing slashes.
2007-08-08 11:40:47 +00:00
Philip Homburg
d232b2ef42
Removed invalid consistency check.
2007-08-07 14:27:19 +00:00
Philip Homburg
9c51f0b92a
O_EXCL check went missing.
2007-08-07 14:26:56 +00:00
Philip Homburg
d01d630727
include "../vfs/dmap.h".
2007-08-07 13:26:25 +00:00
Philip Homburg
1b883a3613
Removed references to stacktrace.
2007-08-07 13:21:55 +00:00
Philip Homburg
a318cd291f
Somehow request.c got garbled.
2007-08-07 13:12:27 +00:00
Philip Homburg
f46319037b
New VFS interface
2007-08-07 12:52:47 +00:00