Tomas Hruby
e87d29171f
SMP - Compiles for both single and multi processor again
...
- this patch adds various fixes as some of the previous patches break
compilations without CONFIG_SMP being set
2010-09-15 14:11:03 +00:00
Tomas Hruby
311f145bc7
SMP - Balancing run queues for SMP
...
- it preempts running processes though :( this is not the final
solution
2010-09-15 14:10:51 +00:00
Tomas Hruby
06b6e5624a
SMP - Changed prototype of sys_schedule()
...
- sys_schedule can change only selected values, -1 means that the
current value should be kept unchanged. For instance we mostly want
to change the scheduling quantum and priority but we want to keep
the process at the current cpu
- RS can hand off its processes to scheduler
- service can read the destination cpu from system.conf
- RS can pass the information farther
2010-09-15 14:10:42 +00:00
Tomas Hruby
1e273f640e
SMP - Scheduler can assign process to a cpu
...
- machine information contains the number of cpus and the bsp id
- a dummy SMP scheduler which keeps all system processes on BSP and
all other process on APs. The scheduler remembers how many processes
are assigned to each CPU and always picks the one with the least
processes for a new process.
2010-09-15 14:10:33 +00:00
David van Moolenbroek
354da24f5b
make getsysinfo() a system-land call
2010-09-14 21:50:05 +00:00
David van Moolenbroek
2c5c5c06ea
ProcFS server, by Alen Stojanov and David van Moolenbroek
2010-09-14 21:25:25 +00:00
David van Moolenbroek
3eb65448a6
VM: expose secondary cache size
2010-09-14 21:22:56 +00:00
David van Moolenbroek
7763fd67c7
PM: save process frame length
2010-09-14 21:21:54 +00:00
David van Moolenbroek
2e209097b6
IS: delete obsolete is.h
2010-09-09 08:47:39 +00:00
Thomas Veerman
0b00cf70b6
- Return ENOENT when trying to add files to removed (but open) directories.
...
- Add test58 to test this behavior.
2010-09-01 09:07:18 +00:00
Erik van der Kouwe
1f2054c89c
Shutdown changes for multiboot: CTRL-ALT-DEL resets, panic halts
2010-08-30 19:01:58 +00:00
Thomas Veerman
e8ddc0f46e
- Add support for file descriptor passing to PFS.
...
- For security reasons move some libc code to PFS.
- Fix a few bugs in PFS.
Contributed by Thomas Cort.
2010-08-30 13:46:44 +00:00
Thomas Veerman
13ef7f1f38
Prepare VFS to support back calls from PFS. For security reasons and to support
...
file descriptor passing, PFS does some back calls to VFS. For example, to
verify the validity of a path provided by a process and to tell VFS it must
copy file descriptors from one process to another.
2010-08-30 13:44:07 +00:00
Ben Gras
5d6c2aae0a
gcov support, based on work contributed by Anton Kuijsten.
2010-08-25 13:06:43 +00:00
David van Moolenbroek
959026c29a
RS: use PM's API instead of its internals
2010-08-24 07:20:41 +00:00
Erik van der Kouwe
3211be5d14
Avoid duplicate type definitions, especially wchar_t which was inconsstent and caused trouble in libarchive
2010-08-23 17:00:04 +00:00
Arun Thomas
de231a713e
Move MIN() and MAX() macros to sys/params.h
2010-08-21 13:10:41 +00:00
Arun Thomas
9a21d1a2fd
Macros for symbols used in both ASM and C
...
-The macros take care of prepending the leading underscore when
necessary.
2010-08-17 16:44:07 +00:00
Thomas Veerman
c8cfcab5db
- Make sure there's space left in the vmnt table for another mount point.
...
- Increase mount point limit.
2010-08-17 10:02:50 +00:00
David van Moolenbroek
46624d640e
hgfs comment fix: inode status, not statistics
2010-08-07 11:50:15 +00:00
Erik van der Kouwe
0fc71a1154
Increase NR_INODES in the FS servers to match NR_VNODES in VFS
2010-08-05 11:37:37 +00:00
Erik van der Kouwe
912b4e0cb7
Return ENOSPC when out of inodes
2010-08-05 11:37:06 +00:00
Thomas Veerman
dff0434eaf
Add support for the ext2 file system. Contributed by Evgeniy Ivanov.
2010-08-02 11:44:45 +00:00
Thomas Veerman
253b4b3fe5
- Add support for ST_NOTRUNC to struct statvfs.
...
- Let tests that test for long file names check for that flag, so that they can
verify the results properly.
2010-08-02 11:16:32 +00:00
David van Moolenbroek
da597227ac
put env_arg[cv] declaration in minix/sysutil.h
2010-07-29 21:16:23 +00:00
Erik van der Kouwe
6dec907191
Shorter reporting of contiguous identical blocks for the IS VM dump (F8) to avoid MFS frrom filling many screens
2010-07-27 18:46:08 +00:00
Erik van der Kouwe
d7c70a41e5
Allow vm to split blocks in memory map (needed for multiboot, contributed by Feiran "Fam" Zheng
2010-07-23 14:22:13 +00:00
Ben Gras
3badab8b70
vfs - split fp_fd field into fd + callnr fields
2010-07-22 14:55:28 +00:00
David van Moolenbroek
220eafe705
inet: a little more resilience against misbehaving drivers
2010-07-21 13:47:50 +00:00
Tomas Hruby
f6f20e1269
Overly restrictive assert
...
- not true if APIC is enabled
2010-07-21 13:46:29 +00:00
Cristiano Giuffrida
7978f9d2f3
Unbreak gcc compilation for pfs.
2010-07-21 13:39:46 +00:00
Cristiano Giuffrida
0824146978
Disable debug info on trunk.
2010-07-21 08:22:24 +00:00
Cristiano Giuffrida
91a83fe265
Crash recovery and live update support for VM.
2010-07-20 23:03:52 +00:00
Cristiano Giuffrida
0d984b36ef
Get rid of static spare pages after VM startup.
2010-07-20 21:59:27 +00:00
Cristiano Giuffrida
40b4e71db2
COW for physically contiguous blocks in VM
2010-07-20 18:57:25 +00:00
Cristiano Giuffrida
1b7d95df29
Generalize interface of some VM functions
2010-07-20 02:08:28 +00:00
Cristiano Giuffrida
af424b4e43
Don't always assume NOPINGREPLY as a failure in RS
2010-07-20 01:50:33 +00:00
Ben Gras
16d0609fad
vm: restore sanity checks in NONCONTIGUOUS case.
2010-07-19 18:20:14 +00:00
Ben Gras
068944de36
vm: add MEMPROTECT feature in vm.h.
2010-07-19 18:19:59 +00:00
Ben Gras
77267ca28b
vm: add missing USE() macros in utility.c.
2010-07-19 18:19:38 +00:00
Ben Gras
5e2c84b119
vm: allow readonly pages when sanity checking when they're supposed to be rw.
2010-07-19 18:19:16 +00:00
Erik van der Kouwe
98725c443e
Fix RS warning at start-up by inheriting scdeduling properties from init for unprivileged children of system processes
2010-07-16 14:56:05 +00:00
Tomas Hruby
7f47f4174d
Fixed comments in sched
...
- not only PM can send sched requests. RS too.
2010-07-16 09:40:12 +00:00
Erik van der Kouwe
739f2d7536
Fix comment
2010-07-15 14:47:08 +00:00
Thomas Veerman
5aff633a0b
Make RS and VFS aware of new UDS major. Contributed by Thomas Cort
2010-07-15 13:51:38 +00:00
Thomas Veerman
ea19830de1
Add UNIX Domain Sockets internals to PFS. Contributed by Thomas Cort
2010-07-15 13:39:57 +00:00
Cristiano Giuffrida
f8a8ea0a79
Dynamic configuration in system.conf for boot system services.
2010-07-13 21:11:44 +00:00
Cristiano Giuffrida
8cedace2f5
Scheduling parameters out of the kernel.
2010-07-13 15:30:17 +00:00
Cristiano Giuffrida
8427d774b6
RS live update support.
2010-07-09 18:29:04 +00:00
David van Moolenbroek
895850b8cf
move timers code to libsys
2010-07-09 12:58:18 +00:00
Ben Gras
8c925134f9
vm: NONCONTIGUOUS - try to make physical memory as maximally noncontiguous
2010-07-09 12:22:33 +00:00
Cristiano Giuffrida
1f8dbed029
RS crash recovery support.
2010-07-06 22:05:21 +00:00
Cristiano Giuffrida
3de6a807ce
Configure settings for system services dynamically with the new service edit command.
2010-07-05 19:37:08 +00:00
Ben Gras
fc8f0b9ee2
vm: better fix for clang 'unused expression' warning
2010-07-05 17:34:26 +00:00
Ben Gras
86139e8bf2
vm: last commit should not have included wiping out these calls
...
(this was done temporarily to make vm work with clang; vm crashes when
the 64-bit arithmetic functions are used when compiled with clang.)
2010-07-05 14:01:34 +00:00
Ben Gras
b4bea1bfcb
vm: fixes for clang warnings
2010-07-05 13:58:57 +00:00
Erik van der Kouwe
37325bd7c5
Make service ABI backwards compatible again
2010-07-03 05:02:59 +00:00
Thomas Veerman
34a2864e27
Fix a few compile time warnings
2010-07-02 12:41:19 +00:00
Kees van Reeuwijk
630f566d3f
Convert a few main() functions to a form that the clang compiler likes.
2010-07-01 22:23:25 +00:00
Cristiano Giuffrida
03f64ac97a
Self update support in RS.
2010-07-01 18:48:25 +00:00
Cristiano Giuffrida
9e4312453d
Improve memory pinning.
2010-07-01 08:54:25 +00:00
Erik van der Kouwe
23284ee7bd
User-space scheduling for system processes
2010-07-01 08:32:33 +00:00
Erik van der Kouwe
5c591816cb
Remove warning in inet; this situation is harmless and can be caused by a race
2010-07-01 06:14:38 +00:00
Cristiano Giuffrida
06700d05d1
Give RS a page table.
2010-06-28 21:53:37 +00:00
Cristiano Giuffrida
869a223d43
service clone command to clone system services on demand.
2010-06-28 21:38:29 +00:00
Ben Gras
6e47e2996f
sep ${.OBJDIR} fixes by Antoine Leica.
2010-06-27 23:47:23 +00:00
David van Moolenbroek
53866b1ebb
oops.
2010-06-27 17:20:17 +00:00
David van Moolenbroek
71435d15cf
HGFS: statvfs support
2010-06-27 17:19:50 +00:00
Arun Thomas
c0c8d25799
Rename mkfiles from minix.*.mk to bsd.*.mk
...
Makes things easier for pkgsrc
2010-06-25 18:29:09 +00:00
Erik van der Kouwe
c0dfa2f3f1
Get rid of asynsend backup copy in VFS
2010-06-25 14:57:54 +00:00
Cristiano Giuffrida
5c7d64b981
No malloc() in VM.
2010-06-25 12:48:56 +00:00
Ben Gras
33c9d427fd
mfs - added put_block() to statvfs loop.
2010-06-24 10:56:45 +00:00
Erik van der Kouwe
498d7d8a4c
Don't use kernel responses in servers
2010-06-24 07:37:26 +00:00
Ben Gras
491efeead9
mfs - revert part of previous commit; should not have been commited
2010-06-24 00:32:17 +00:00
Ben Gras
6cd2d1218e
mfs - statvfs call, by Buccapatnam Tirumala, Gautam.
2010-06-23 23:58:16 +00:00
Ben Gras
4b496e29bd
iso9660fs - statvfs call, by Buccapatnam Tirumala, Gautam.
2010-06-23 23:57:26 +00:00
Ben Gras
13b5dd4a82
statvfs/fstatvfs entries.
2010-06-23 23:56:36 +00:00
Ben Gras
fc01683584
include, vfs: statvfs, fstatvfs calls, contributed by Buccapatnam Tirumala, Gautam.
2010-06-23 23:53:50 +00:00
Cristiano Giuffrida
ad1f2f2d78
Fix misplaced comment.
2010-06-22 15:10:06 +00:00
Ben Gras
a89bcc465b
mfs: minor cleanup of readahead: they can be private to read.c.
2010-06-21 18:25:04 +00:00
Erik van der Kouwe
11193f5fa4
Don't allow PM to sys_kill itself, this causes a race with RS calling waitpid during shutdown
2010-06-18 13:49:07 +00:00
Tomas Hruby
8214e5e284
Removed racy COW optimization
...
- enabling writing in COW once phys block is reference only once is racy if VM
is preemptible. original memory location may get overwritten before COW copies
the memory
- problem when DEBUG_RACE is on and a big problem for SMP
2010-06-18 12:46:18 +00:00
Cristiano Giuffrida
ad5771aa28
Don't forget about pending signals coming from the kernel.
2010-06-18 12:04:20 +00:00
Arun Thomas
1b2c01db1b
Makefile updates:
...
Turn on optimization
Remove some redundancy in FLAGS
2010-06-11 16:05:36 +00:00
Ben Gras
19b790eb53
vfs: don't use a mountpoint if it's in use for anything else.
...
(this avoids data structure confusion if a mountpoint is reused as
a mountpoint until that's properly fixed.)
2010-06-11 11:41:56 +00:00
Arun Thomas
1bf6d23f34
Make exec() use entry point in a.out header
2010-06-10 14:59:10 +00:00
Arun Thomas
f0a158d8c1
More cleanup to remove MM and FS references
2010-06-10 14:04:46 +00:00
Arun Thomas
eec65ac664
Rename tell_fs to tell_vfs
2010-06-09 14:31:30 +00:00
Thomas Veerman
be6490f4b3
Turn off debug message.
2010-06-09 11:05:16 +00:00
Thomas Veerman
a0eaaa5c9f
Fix a bug in put_inode that causes corruption to the file system and another
...
bug that causes problems when files grow bigger than a certain threshold. Also
fix a few type and code inconsistencies.
2010-06-09 09:56:43 +00:00
Tomas Hruby
1207fcc6f0
int to endpoint_t conversions in mmap
2010-06-09 09:14:53 +00:00
Kees van Reeuwijk
826b9590f2
More endpoint_t correctness.
...
More const correctness.
Other code cleanup.
2010-06-08 14:09:18 +00:00
Arun Thomas
4c10a31440
Remove legacy MM, FS, and FS_PROC_NR macros
2010-06-08 13:58:01 +00:00
Erik van der Kouwe
7bd7946346
Remove redundant macro cproc_addr
2010-06-08 13:38:44 +00:00
Ben Gras
31adc0a3c4
vm: junkfree feature that fills freed pages with a recognizable pattern.
2010-06-08 00:59:48 +00:00
Arun Thomas
b641afc78a
VM: Remove legacy non-paging code paths
2010-06-05 14:39:40 +00:00
Cristiano Giuffrida
354d88f883
Put initialization code where it belongs.
2010-06-04 18:08:15 +00:00
Cristiano Giuffrida
332842295a
Always skip signals for PM itself when broadcasting.
2010-06-03 11:18:43 +00:00
Kees van Reeuwijk
ed0b81c25c
Removed some unused variables and functions.
2010-06-02 19:41:38 +00:00
Thomas Veerman
6bbcab3ec4
Clean up MFS a bit:
...
- Remove unused includes.
- Add include guards to headers.
- Use unsigned variables in case they're never going to hold a negative
value. This causes GCC's complaints to disappear and should make flexelint
a lot happier, too.
- Make functions private when they're used only within a module.
- Remove unused variables.
- Add casts where appropriate.
2010-06-01 12:35:33 +00:00