]> Zhao Yanbai Git Server - minix.git/log
minix.git
14 years ago- Make packman unmount the packages cd if it was mounted.
Thomas Veerman [Wed, 13 Jan 2010 15:52:55 +0000 (15:52 +0000)]
- Make packman unmount the packages cd if it was mounted.
- Manpages for packman and packit.

14 years agoFixed a bug in apic.c that broke lapic_stop_timer().
Kees van Reeuwijk [Wed, 13 Jan 2010 14:44:19 +0000 (14:44 +0000)]
Fixed a bug in apic.c that broke lapic_stop_timer().
Fixed bugs in liveupdate.c that rendered load_state_info() meaningless.
More informative error message in do_config() in service.c.

14 years agoPCI: add 64-bit BAR support
David van Moolenbroek [Wed, 13 Jan 2010 10:52:47 +0000 (10:52 +0000)]
PCI: add 64-bit BAR support

14 years agoMount updates:
David van Moolenbroek [Tue, 12 Jan 2010 23:08:50 +0000 (23:08 +0000)]
Mount updates:
- allow mounting with "none" block device
- allow unmounting by mountpoint
- make VFS aware of file system process labels
- allow m3_ca1 to use the full available message size
- use *printf in u/mount(1), as mount(2) uses it already
- fix reference leaks for some mount error cases in VFS

14 years agoAdd tests for sigsetjmp/siglongjmp
Erik van der Kouwe [Tue, 12 Jan 2010 09:53:39 +0000 (09:53 +0000)]
Add tests for sigsetjmp/siglongjmp

14 years agoLocal apic is dissabled by default
Tomas Hruby [Mon, 11 Jan 2010 17:21:19 +0000 (17:21 +0000)]
Local apic is dissabled by default

to enable it set no_apic=0 in the boot monitor

14 years agoFixed some missing return statements.
Kees van Reeuwijk [Mon, 11 Jan 2010 14:22:29 +0000 (14:22 +0000)]
Fixed some missing return statements.

14 years agoUpdate years in man-pages (thanks to Antoine Leca for pointing this out)
Erik van der Kouwe [Sat, 9 Jan 2010 08:18:26 +0000 (08:18 +0000)]
Update years in man-pages (thanks to Antoine Leca for pointing this out)

14 years agoImplementations of readv and writev
Erik van der Kouwe [Fri, 8 Jan 2010 13:40:34 +0000 (13:40 +0000)]
Implementations of readv and writev

14 years agoAdd scalbn family of functions
Erik van der Kouwe [Fri, 8 Jan 2010 07:27:54 +0000 (07:27 +0000)]
Add scalbn family of functions

14 years agoAdd fabsf function
Erik van der Kouwe [Fri, 8 Jan 2010 07:27:11 +0000 (07:27 +0000)]
Add fabsf function

14 years agoInitialization protocol for system services.
Cristiano Giuffrida [Fri, 8 Jan 2010 01:20:42 +0000 (01:20 +0000)]
Initialization protocol for system services.

SYSLIB CHANGES:
- SEF framework now supports a new SEF Init request type from RS. 3 different
callbacks are available (init_fresh, init_lu, init_restart) to specify
initialization code when a service starts fresh, starts after a live update,
or restarts.

SYSTEM SERVICE CHANGES:
- Initialization code for system services is now enclosed in a callback SEF will
automatically call at init time. The return code of the callback will
tell RS whether the initialization completed successfully.
- Each init callback can access information passed by RS to initialize. As of
now, each system service has access to the public entries of RS's system process
table to gather all the information required to initialize. This design
eliminates many existing or potential races at boot time and provides a uniform
initialization interface to system services. The same interface will be reused
for the upcoming publish/subscribe model to handle dynamic
registration / deregistration of system services.

VM CHANGES:
- Uniform privilege management for all system services. Every service uses the
same call mask format. For boot services, VM copies the call mask from init
data. For dynamic services, VM still receives the call mask via rs_set_priv
call that will be soon replaced by the upcoming publish/subscribe model.

RS CHANGES:
- The system process table has been reorganized and split into private entries
and public entries. Only the latter ones are exposed to system services.
- VM call masks are now entirely configured in rs/table.c
- RS has now its own slot in the system process table. Only kernel tasks and
user processes not included in the boot image are now left out from the system
process table.
- RS implements the initialization protocol for system services.
- For services in the boot image, RS blocks till initialization is complete and
panics when failure is reported back. Services are initialized in their order of
appearance in the boot image priv table and RS blocks to implements synchronous
initialization for every system service having the flag SF_SYNCH_BOOT set.
- For services started dynamically, the initialization protocol is implemented
as though it were the first ping for the service. In this case, if the
system service fails to report back (or reports failure), RS brings the service
down rather than trying to restart it.

14 years agoPrevent nanosleep from potentially overwriting sleep time
Erik van der Kouwe [Thu, 7 Jan 2010 19:25:18 +0000 (19:25 +0000)]
Prevent nanosleep from potentially overwriting sleep time
suggested by Rene Zatvo

14 years agoAdd ENOTSUP error code
Erik van der Kouwe [Thu, 7 Jan 2010 09:53:31 +0000 (09:53 +0000)]
Add ENOTSUP error code

14 years agoMake get/setsockopt handle SOREUSEADDR
Erik van der Kouwe [Thu, 7 Jan 2010 09:53:08 +0000 (09:53 +0000)]
Make get/setsockopt handle SOREUSEADDR

14 years agoAllow test43 to deal with broken symlinks
Erik van der Kouwe [Thu, 7 Jan 2010 09:52:23 +0000 (09:52 +0000)]
Allow test43 to deal with broken symlinks

14 years agoFix brackets in kernel/arch/i386/include/archconst.h
Erik van der Kouwe [Wed, 6 Jan 2010 08:46:33 +0000 (08:46 +0000)]
Fix brackets in kernel/arch/i386/include/archconst.h

14 years agoFix bracket with different color in netconf(8) man-page
Erik van der Kouwe [Wed, 6 Jan 2010 08:31:11 +0000 (08:31 +0000)]
Fix bracket with different color in netconf(8) man-page

14 years agoMan-page for netconf(8), contributed by Leith Brandeland
Erik van der Kouwe [Wed, 6 Jan 2010 08:24:06 +0000 (08:24 +0000)]
Man-page for netconf(8), contributed by Leith Brandeland

14 years agoFixed a typing bug.
Kees van Reeuwijk [Wed, 6 Jan 2010 08:23:14 +0000 (08:23 +0000)]
Fixed a typing bug.
More explicit type conversion from virual to physical bytes.
Bracket negative #defines for extra paranoia.
Added a forgotten 'void' to a function.

14 years agoFix netconf alignment now that there is a number 10"
Erik van der Kouwe [Wed, 6 Jan 2010 08:20:12 +0000 (08:20 +0000)]
Fix netconf alignment now that there is a number 10"
Note: should fix again when we reach 100 :)

14 years agoMove man-pages for zoneinfo, replace with links
Erik van der Kouwe [Wed, 6 Jan 2010 08:00:39 +0000 (08:00 +0000)]
Move man-pages for zoneinfo, replace with links

14 years agoOops, forgot to svn add this
Erik van der Kouwe [Wed, 6 Jan 2010 07:49:54 +0000 (07:49 +0000)]
Oops, forgot to svn add this

14 years agoMove man-pages for bzip2, replace with links.
Erik van der Kouwe [Wed, 6 Jan 2010 07:45:45 +0000 (07:45 +0000)]
Move man-pages for bzip2, replace with links.

14 years agoMan-page for ping, contributed by Leith Brandeland
Erik van der Kouwe [Wed, 6 Jan 2010 07:36:12 +0000 (07:36 +0000)]
Man-page for ping, contributed by Leith Brandeland

14 years agoGeneral cleanup:
David van Moolenbroek [Tue, 5 Jan 2010 19:39:27 +0000 (19:39 +0000)]
General cleanup:
- clean up kernel section of minix/com.h somewhat
- remove ALLOCMEM and VM_ALLOCMEM calls
- remove non-safecopy and minix-vmd support from Inet
- remove SYS_VIRVCOPY and SYS_PHYSVCOPY calls
- remove obsolete segment encoding in SYS_SAFECOPY*
- remove DEVCTL call, svrctl(FSDEVUNMAP), map_driverX
- remove declarations of unimplemented svrctl requests
- remove everything related to swapping to disk
- remove floppysetup.sh
- remove traces of rescue device
- update DESCRIBE.sh with new devices
- some other small changes

14 years agoVM: make munmap(2) round length up, not down (reported by Althaf K Backer)
David van Moolenbroek [Tue, 5 Jan 2010 09:40:07 +0000 (09:40 +0000)]
VM: make munmap(2) round length up, not down (reported by Althaf K Backer)

14 years agoadd ptrace(2) TO_NOEXEC flag
David van Moolenbroek [Tue, 5 Jan 2010 09:30:28 +0000 (09:30 +0000)]
add ptrace(2) TO_NOEXEC flag

14 years agostart a.out2com script with 'sh' (Bug#365.1, reported by Antoine Leca)
David van Moolenbroek [Tue, 5 Jan 2010 09:21:55 +0000 (09:21 +0000)]
start a.out2com script with 'sh' (Bug#365.1, reported by Antoine Leca)

14 years agotypo (Bug#376, reported by Kees van Reeuwijk)
David van Moolenbroek [Mon, 4 Jan 2010 12:29:51 +0000 (12:29 +0000)]
typo (Bug#376, reported by Kees van Reeuwijk)

14 years agomore kernel header typos
David van Moolenbroek [Fri, 1 Jan 2010 20:18:05 +0000 (20:18 +0000)]
more kernel header typos

14 years agoAdd man entry for new errno code
Erik van der Kouwe [Thu, 31 Dec 2009 12:09:31 +0000 (12:09 +0000)]
Add man entry for new errno code

14 years agoAdded EILSEQ, based on newsgroup post by Leith
Erik van der Kouwe [Thu, 31 Dec 2009 11:48:08 +0000 (11:48 +0000)]
Added EILSEQ, based on newsgroup post by Leith

14 years agoDriver for Attansic L2 FastEthernet (atl2)
David van Moolenbroek [Wed, 30 Dec 2009 22:42:44 +0000 (22:42 +0000)]
Driver for Attansic L2 FastEthernet (atl2)

14 years agoMan-page name order fixes
Erik van der Kouwe [Wed, 30 Dec 2009 20:35:05 +0000 (20:35 +0000)]
Man-page name order fixes

14 years agoAdd timeout to test42
Erik van der Kouwe [Wed, 30 Dec 2009 20:22:21 +0000 (20:22 +0000)]
Add timeout to test42

14 years agoKernel: fix do_stime.c header comment (2)
David van Moolenbroek [Wed, 30 Dec 2009 14:56:54 +0000 (14:56 +0000)]
Kernel: fix do_stime.c header comment (2)

14 years agoKernel: fix do_stime.c header comment
David van Moolenbroek [Wed, 30 Dec 2009 14:56:35 +0000 (14:56 +0000)]
Kernel: fix do_stime.c header comment

14 years agomdb(1) fixes:
David van Moolenbroek [Tue, 29 Dec 2009 21:38:26 +0000 (21:38 +0000)]
mdb(1) fixes:
- allow core file offsets with high bit set
- repair and enable gcc-compiled binary support
- fix bug leading to random command execution
- remove obsolete ptrace.2 manpage

14 years agosuppress kernel/VM memory debugging information
David van Moolenbroek [Tue, 29 Dec 2009 21:35:12 +0000 (21:35 +0000)]
suppress kernel/VM memory debugging information

14 years agounbreak, deprivilege dumpcore(1)
David van Moolenbroek [Tue, 29 Dec 2009 21:34:06 +0000 (21:34 +0000)]
unbreak, deprivilege dumpcore(1)

14 years agoptrace(2) modifications:
David van Moolenbroek [Tue, 29 Dec 2009 21:32:15 +0000 (21:32 +0000)]
ptrace(2) modifications:
- add T_GETRANGE/T_SETRANGE to get/set ranges of values
- change EIO error code to EFAULT
- move common-I&D text-to-data translation to umap_local

14 years agounbreak "make dos" in boot (Bug#365, patch by Antoine Leca)
David van Moolenbroek [Thu, 24 Dec 2009 23:49:23 +0000 (23:49 +0000)]
unbreak "make dos" in boot (Bug#365, patch by Antoine Leca)

14 years agoFix MFS ftruncate crash (Bug#370, reported by Aki Goto)
David van Moolenbroek [Thu, 24 Dec 2009 23:43:16 +0000 (23:43 +0000)]
Fix MFS ftruncate crash (Bug#370, reported by Aki Goto)

14 years agoFloating point support functions
Erik van der Kouwe [Thu, 24 Dec 2009 20:22:41 +0000 (20:22 +0000)]
Floating point support functions

14 years agounbreak building CDs
David van Moolenbroek [Wed, 23 Dec 2009 23:59:32 +0000 (23:59 +0000)]
unbreak building CDs

14 years agoCorrect ping(1) usage string (Bug#372, reported by Leith Brandeland
David van Moolenbroek [Wed, 23 Dec 2009 23:42:07 +0000 (23:42 +0000)]
Correct ping(1) usage string (Bug#372, reported by Leith Brandeland

14 years agoMove setuid() hack where it belongs.
Cristiano Giuffrida [Wed, 23 Dec 2009 16:26:28 +0000 (16:26 +0000)]
Move setuid() hack where it belongs.

14 years agoShare exec images in RS.
Cristiano Giuffrida [Wed, 23 Dec 2009 14:05:20 +0000 (14:05 +0000)]
Share exec images in RS.

RS CHANGES:
- RS retains information on both labels and process names now. Labels for boot
processes are configured in the boot image priv table. Process names are
inherited from the in-kernel boot image table.
- When RS_REUSE is specified in do_up, RS looks for an existing slot having the
same process name as the one we are about to start. If one is found with
an in-memory copy of its executable image, the image is then shared between
the two processes, rather than copying it again. This behavior can be specified
by using 'service -r' when starting a system service from the command line.

14 years agoConsole function keys and color support:
David van Moolenbroek [Tue, 22 Dec 2009 23:30:50 +0000 (23:30 +0000)]
Console function keys and color support:
- if "debug_fkeys" boot monitor variable is set to 0:
  - pass Fn, Shift+Fn, Ctrl+Fn, Shift+Ctrl+Fn to applications
  - don't start IS
- update termcap files with function key, color, end key support

14 years agoanother warning regression fix
David van Moolenbroek [Tue, 22 Dec 2009 00:05:09 +0000 (00:05 +0000)]
another warning regression fix

14 years agono! no new warnings
David van Moolenbroek [Mon, 21 Dec 2009 23:39:08 +0000 (23:39 +0000)]
no! no new warnings

14 years agoFilter driver updates:
David van Moolenbroek [Mon, 21 Dec 2009 23:30:01 +0000 (23:30 +0000)]
Filter driver updates:
- optionally vectorize I/O requests to work around hardware bugs
- extend default buffer size to cover MFS's default maximum request size
- use mmap directly, rather than alloc_contig
- add 'nil' checksum type for comparison with layout
- minor style corrections

14 years agoTTY fixes:
David van Moolenbroek [Mon, 21 Dec 2009 23:19:01 +0000 (23:19 +0000)]
TTY fixes:
- reenable code to restore screen/cursor at shutdown
- add proper signal checking logic
- lock to first console during shutdown

14 years agoBasic System Event Framework (SEF) with ping and live update.
Cristiano Giuffrida [Mon, 21 Dec 2009 14:12:21 +0000 (14:12 +0000)]
Basic System Event Framework (SEF) with ping and live update.

SYSLIB CHANGES:
- SEF must be used by every system process and is thereby part of the system
library.
- The framework provides a receive() interface (sef_receive) for system
processes to automatically catch known system even messages and process them.
- SEF provides a default behavior for each type of system event, but allows
system processes to register callbacks to override the default behavior.
- Custom (local to the process) or predefined (provided by SEF) callback
implementations can be registered to SEF.
- SEF currently includes support for 2 types of system events:
  1. SEF Ping. The event occurs every time RS sends a ping to figure out
  whether a system process is still alive. The default callback implementation
  provided by SEF is to notify RS back to let it know the process is alive
  and kicking.
  2. SEF Live update. The event occurs every time RS sends a prepare to update
  message to let a system process know an update is available and to prepare
  for it. The live update support is very basic for now. SEF only deals with
  verifying if the prepare state can be supported by the process, dumping the
  state for debugging purposes, and providing an event-driven programming
  model to the process to react to state changes check-in when ready to update.
- SEF should be extended in the future to integrate support for more types of
system events. Ideally, all the cross-cutting concerns should be integrated into
SEF to avoid duplicating code and ease extensibility. Examples include:
  * PM notify messages primarily used at shutdown.
  * SYSTEM notify messages primarily used for signals.
  * CLOCK notify messages used for system alarms.
  * Debug messages. IS could still be in charge of fkey handling but would
  forward the debug message to the target process (e.g. PM, if the user
  requested debug information about PM). SEF would then catch the message and
  do nothing unless the process has registered an appropriate callback to
  deal with the event. This simplifies the programming model to print debug
  information, avoids duplicating code, and reduces the effort to print
  debug information.

SYSTEM PROCESSES CHANGES:
- Every system process registers SEF callbacks it needs to override the default
system behavior and calls sef_startup() right after being started.
- sef_startup() does almost nothing now, but will be extended in the future to
support callbacks of its own to let RS control and synchronize with every
system process at initialization time.
- Every system process calls sef_receive() now rather than receive() directly,
to let SEF handle predefined system events.

RS CHANGES:
- RS supports a basic single-component live update protocol now, as follows:
  * When an update command is issued (via "service update *"), RS notifies the
  target system process to prepare for a specific update state.
  * If the process doesn't respond back in time, the update is aborted.
  * When the process responds back, RS kills it and marks it for refreshing.
  * The process is then automatically restarted as for a buggy process and can
  start running again.
  * Live update is currently prototyped as a controlled failure.

14 years agoFix typo
Thomas Veerman [Mon, 21 Dec 2009 13:59:04 +0000 (13:59 +0000)]
Fix typo

14 years agoSupport for larger disks.
David van Moolenbroek [Mon, 21 Dec 2009 11:20:30 +0000 (11:20 +0000)]
Support for larger disks.
- MFS, df(1), fsck(1), badblocks(8), de(1x) now compute the
  superblock's s_firstdatazone value if the on-disk value is zero
- mkfs(1) sets s_firstdatazone in the superblock to zero if the
  on-disk field is too small to store the actual value
- more agressive mkfs(1) inode number heuristic, copied from r5261

14 years agoFix typo and a bug causing vnode references to become too low.
Thomas Veerman [Mon, 21 Dec 2009 09:36:34 +0000 (09:36 +0000)]
Fix typo and a bug causing vnode references to become too low.

14 years agoFix compilation errors caused by more files not added in previous commit
Thomas Veerman [Sun, 20 Dec 2009 21:31:03 +0000 (21:31 +0000)]
Fix compilation errors caused by more files not added in previous commit

14 years agoAdd PFS (missing in previous commit)
Thomas Veerman [Sun, 20 Dec 2009 20:41:50 +0000 (20:41 +0000)]
Add PFS (missing in previous commit)

14 years ago- Introduce support for sticky bit.
Thomas Veerman [Sun, 20 Dec 2009 20:27:14 +0000 (20:27 +0000)]
- Introduce support for sticky bit.
- Revise VFS-FS protocol and update VFS/MFS/ISOFS accordingly.
- Clean up MFS by removing old, dead code (backwards compatibility is broken by
  the new VFS-FS protocol, anyway) and rewrite other parts. Also, make sure all
  functions have proper banners and prototypes.
- VFS should always provide a (syntactically) valid path to the FS; no need for
  the FS to do sanity checks when leaving/entering mount points.
- Fix several bugs in MFS:
  - Several path lookup bugs in MFS.
  - A link can be too big for the path buffer.
  - A mountpoint can become inaccessible when the creation of a new inode
    fails, because the inode already exists and is a mountpoint.
- Introduce support for supplemental groups.
- Add test 46 to test supplemental group functionality (and removed obsolete
  suppl. tests from test 2).
- Clean up VFS (not everything is done yet).
- ISOFS now opens device read-only. This makes the -r flag in the mount command
  unnecessary (but will still report to be mounted read-write).
- Introduce PipeFS. PipeFS is a new FS that handles all anonymous and
  named pipes. However, named pipes still reside on the (M)FS, as they are part
  of the file system on disk. To make this work VFS now has a concept of
  'mapped' inodes, which causes read, write, truncate and stat requests to be
  redirected to the mapped FS, and all other requests to the original FS.

14 years agoRemove some GCC library warnings
Erik van der Kouwe [Thu, 17 Dec 2009 08:43:31 +0000 (08:43 +0000)]
Remove some GCC library warnings

14 years agoDrivers and servers are simply known as services.
Cristiano Giuffrida [Thu, 17 Dec 2009 01:53:26 +0000 (01:53 +0000)]
Drivers and servers are simply known as services.

/etc CHANGES:
- /etc/drivers.conf has been renamed to /etc/system.conf. Every entry in
the file is now marked as "service" rather than driver.
- user "service" has been added to password file /etc/passwd.
- docs/UPDATING updated accordingly, as well as every other mention to the old
drivers.conf in the system.

RS CHANGES:
- No more distinction between servers and drivers.
- RS_START has been renamed to RS_UP and the old legacy RS_UP and RS_UP_COPY
dropped.
- RS asks PCI to set / remove ACL entries only for services whose ACL properties
have been set. This change eliminates unnecessary warnings.
- Temporarily minimize the risk of potential races at boot time or when starting
a new service. Upcoming changes will eliminate races completely.
- General cleanup.

14 years agoFix bug in IPC deadlock detection code.
Cristiano Giuffrida [Wed, 16 Dec 2009 23:32:08 +0000 (23:32 +0000)]
Fix bug in IPC deadlock detection code.

The old deadlock code was misplaced and unable to deal with asynchronous
IPC primitives (notify and senda) effectively. As an example, the following
sequence of messages allowed the deadlock detection code to
trigger a false positive:
1. A.notify(B)
2. A.receive(B)
3. B.receive(A)
1. B.notify(A)
The solution is to run the deadlock detection routine only when a process is
about to block in mini_send() or mini_receive().

14 years agotypo
David van Moolenbroek [Wed, 16 Dec 2009 12:17:02 +0000 (12:17 +0000)]
typo

14 years agofix remaining warnings in 'make world'
David van Moolenbroek [Mon, 14 Dec 2009 20:25:52 +0000 (20:25 +0000)]
fix remaining warnings in 'make world'

14 years agoawk: check presence of parameters
David van Moolenbroek [Mon, 14 Dec 2009 20:24:33 +0000 (20:24 +0000)]
awk: check presence of parameters

14 years agotest42: disable attach-to-PM test
David van Moolenbroek [Sun, 13 Dec 2009 21:45:23 +0000 (21:45 +0000)]
test42: disable attach-to-PM test

14 years agoRewrite of boot process
Cristiano Giuffrida [Fri, 11 Dec 2009 00:08:19 +0000 (00:08 +0000)]
Rewrite of boot process

KERNEL CHANGES:
- The kernel only knows about privileges of kernel tasks and the root system
process (now RS).
- Kernel tasks and the root system process are the only processes that are made
schedulable by the kernel at startup. All the other processes in the boot image
don't get their privileges set at startup and are inhibited from running by the
RTS_NO_PRIV flag.
- Removed the assumption on the ordering of processes in the boot image table.
System processes can now appear in any order in the boot image table.
- Privilege ids can now be assigned both statically or dynamically. The kernel
assigns static privilege ids to kernel tasks and the root system process. Each
id is directly derived from the process number.
- User processes now all share the static privilege id of the root user
process (now INIT).
- sys_privctl split: we have more calls now to let RS set privileges for system
processes. SYS_PRIV_ALLOW / SYS_PRIV_DISALLOW are only used to flip the
RTS_NO_PRIV flag and allow / disallow a process from running. SYS_PRIV_SET_SYS /
SYS_PRIV_SET_USER are used to set privileges for a system / user process.
- boot image table flags split: PROC_FULLVM is the only flag that has been
moved out of the privilege flags and is still maintained in the boot image
table. All the other privilege flags are out of the kernel now.

RS CHANGES:
- RS is the only user-space process who gets to run right after in-kernel
startup.
- RS uses the boot image table from the kernel and three additional boot image
info table (priv table, sys table, dev table) to complete the initialization
of the system.
- RS checks that the entries in the priv table match the entries in the boot
image table to make sure that every process in the boot image gets schedulable.
- RS only uses static privilege ids to set privileges for system services in
the boot image.
- RS includes basic memory management support to allocate the boot image buffer
dynamically during initialization. The buffer shall contain the executable
image of all the system services we would like to restart after a crash.
- First step towards decoupling between resource provisioning and resource
requirements in RS: RS must know what resources it needs to restart a process
and what resources it has currently available. This is useful to tradeoff
reliability and resource consumption. When required resources are missing, the
process cannot be restarted. In that case, in the future, a system flag will
tell RS what to do. For example, if CORE_PROC is set, RS should trigger a
system-wide panic because the system can no longer function correctly without
a core system process.

PM CHANGES:
- The process tree built at initialization time is changed to have INIT as root
with pid 0, RS child of INIT and all the system services children of RS. This
is required to make RS in control of all the system services.
- PM no longer registers labels for system services in the boot image. This is
now part of RS's initialization process.

14 years agoAdjust number of tests
Erik van der Kouwe [Wed, 9 Dec 2009 19:30:39 +0000 (19:30 +0000)]
Adjust number of tests

14 years agoImplementation of strto(u)ll, documentation and tests for strto(u)l(l)
Erik van der Kouwe [Wed, 9 Dec 2009 19:01:38 +0000 (19:01 +0000)]
Implementation of strto(u)ll, documentation and tests for strto(u)l(l)

14 years agoAdd Ben's test 44
Erik van der Kouwe [Wed, 9 Dec 2009 13:42:33 +0000 (13:42 +0000)]
Add Ben's test 44

14 years agoUse subdirectory t43 for tests
Erik van der Kouwe [Wed, 9 Dec 2009 07:59:08 +0000 (07:59 +0000)]
Use subdirectory t43 for tests

14 years agoRemoved non-existant test 44 from Makefile
Erik van der Kouwe [Wed, 9 Dec 2009 07:52:17 +0000 (07:52 +0000)]
Removed non-existant test 44 from Makefile

14 years agoMake VM fix up memory for kernel that crosses region boundaries
Ben Gras [Tue, 8 Dec 2009 13:35:52 +0000 (13:35 +0000)]
Make VM fix up memory for kernel that crosses region boundaries
too.

Add a test to make this happen (triggers a vm panic before this commit).

14 years agoImplementation of getrlimit and getdtablesize
Erik van der Kouwe [Mon, 7 Dec 2009 19:56:40 +0000 (19:56 +0000)]
Implementation of getrlimit and getdtablesize

14 years agoIntel Pro/1000 driver written by Niek Linnenbank.
Ben Gras [Mon, 7 Dec 2009 18:33:41 +0000 (18:33 +0000)]
Intel Pro/1000 driver written by Niek Linnenbank.

14 years ago - map in as much memory as is necessary in 4MB chunks to
Ben Gras [Mon, 7 Dec 2009 12:10:44 +0000 (12:10 +0000)]
 - map in as much memory as is necessary in 4MB chunks to
   let boot processes run with segments
 - allow segment-only processes to fork() by copying them
   and giving them an identity page table

14 years agoCooments to warn not to use certains instructions
Tomas Hruby [Mon, 7 Dec 2009 12:01:05 +0000 (12:01 +0000)]
Cooments to warn not to use certains instructions

- gas2ack cannot handle all variants of some instructions. Until this issues is
  addressed, this patch places a big warning where appropriate. This code is not
  supposed to change frequently.

14 years agoGive test 43 root privileges to prevent errors when run as non-root
Erik van der Kouwe [Fri, 4 Dec 2009 18:58:57 +0000 (18:58 +0000)]
Give test 43 root privileges to prevent errors when run as non-root

14 years agoFixed tests to use the right path when run as root
Erik van der Kouwe [Fri, 4 Dec 2009 17:51:06 +0000 (17:51 +0000)]
Fixed tests to use the right path when run as root

14 years agoFix line which was too long
Erik van der Kouwe [Fri, 4 Dec 2009 17:49:20 +0000 (17:49 +0000)]
Fix line which was too long

14 years agoAdd realpath function
Erik van der Kouwe [Fri, 4 Dec 2009 07:52:22 +0000 (07:52 +0000)]
Add realpath function

14 years agoCleanup getsockopt and add SO_TYPE
Erik van der Kouwe [Fri, 4 Dec 2009 07:26:56 +0000 (07:26 +0000)]
Cleanup getsockopt and add SO_TYPE

14 years agoA debug print with no meaning removed from VM.
Tomas Hruby [Thu, 3 Dec 2009 10:53:56 +0000 (10:53 +0000)]
A debug print with no meaning removed from VM.

14 years agoFPU: fix field names, compiler warning, long lines
David van Moolenbroek [Wed, 2 Dec 2009 23:12:46 +0000 (23:12 +0000)]
FPU: fix field names, compiler warning, long lines

14 years agoPart of the FPU changes; forgot to add these files in FPU commit.
Ben Gras [Wed, 2 Dec 2009 16:35:05 +0000 (16:35 +0000)]
Part of the FPU changes; forgot to add these files in FPU commit.

14 years agortl8169 driver contributed by Jaswinder Singh Rajput.
Ben Gras [Wed, 2 Dec 2009 15:59:42 +0000 (15:59 +0000)]
rtl8169 driver contributed by Jaswinder Singh Rajput.

14 years agoprevious commit premature and not part of FPU changes.
Ben Gras [Wed, 2 Dec 2009 15:53:20 +0000 (15:53 +0000)]
previous commit premature and not part of FPU changes.

14 years agoSpecify types for integer MAX constants
Erik van der Kouwe [Wed, 2 Dec 2009 15:35:09 +0000 (15:35 +0000)]
Specify types for integer MAX constants

14 years agoany blocksize.
Ben Gras [Wed, 2 Dec 2009 15:33:14 +0000 (15:33 +0000)]
any blocksize.

14 years agoFPU context switching support by Evgeniy Ivanov.
Ben Gras [Wed, 2 Dec 2009 13:01:48 +0000 (13:01 +0000)]
FPU context switching support by Evgeniy Ivanov.

14 years agoAdd 'getidle' CPU utilization measurement infrastructure
David van Moolenbroek [Wed, 2 Dec 2009 11:52:26 +0000 (11:52 +0000)]
Add 'getidle' CPU utilization measurement infrastructure

14 years agoFilter driver by Wu Bingzheng et al
David van Moolenbroek [Wed, 2 Dec 2009 10:08:58 +0000 (10:08 +0000)]
Filter driver by Wu Bingzheng et al

14 years agoAllow servers to run with fewer privileges:
David van Moolenbroek [Wed, 2 Dec 2009 10:06:58 +0000 (10:06 +0000)]
Allow servers to run with fewer privileges:
- allow non-root processes to get their own endpoint
- make alloc_contig() call sys_umap() only when requested

14 years agolibdriver changes:
David van Moolenbroek [Wed, 2 Dec 2009 09:57:48 +0000 (09:57 +0000)]
libdriver changes:
- remove obsolete non-safecopy support
- merge libdriver and libdriver_asyn
- change standard reply model from sendnb to senda

14 years agoRS changes:
David van Moolenbroek [Wed, 2 Dec 2009 09:54:50 +0000 (09:54 +0000)]
RS changes:
- add new "control" config directive, to let drivers restart drivers
  (by Jorrit Herder)
- fix bug causing system processes to be started twice sometimes

14 years agofix for race condition - IRQ can happen between clearing the endpoint
Ben Gras [Tue, 1 Dec 2009 16:46:27 +0000 (16:46 +0000)]
fix for race condition - IRQ can happen between clearing the endpoint
of the handling process and before removing the hook. The handler function
will panic then.

14 years agoAlternative VirtualBox/Lance driver workaround
David van Moolenbroek [Sat, 28 Nov 2009 13:28:55 +0000 (13:28 +0000)]
Alternative VirtualBox/Lance driver workaround

14 years agoRS fixes:
David van Moolenbroek [Sat, 28 Nov 2009 13:23:45 +0000 (13:23 +0000)]
RS fixes:
- fix resource leak (PCI ACLs) when child fails right after exec
- fix resource leak (memory) when child exec fails at all
- fix race condition setting VM call privileges for new child
- make dev_execve() return a proper result, and check this result
- remove RS_EXECFAILED, as it should behave exactly like RS_EXITING
- add more clarifying comments about starting servers