]> Zhao Yanbai Git Server - minix.git/log
minix.git
12 years agoblocktest: switch from rand() to lrand48()
David van Moolenbroek [Mon, 10 Sep 2012 09:35:04 +0000 (11:35 +0200)]
blocktest: switch from rand() to lrand48()

Apparently, with NetBSD's libc, the exclusive OR of the lower eight
bits of 4096 consecutive rand() values is zero, breaking some tests.

12 years agoblocktest: fix segfault on vectored read
Arne Welzel [Mon, 10 Sep 2012 09:32:38 +0000 (11:32 +0200)]
blocktest: fix segfault on vectored read

12 years agotests: fix DS tests' README too
David van Moolenbroek [Sat, 8 Sep 2012 14:42:32 +0000 (16:42 +0200)]
tests: fix DS tests' README too

12 years agoblocktest: make script more newbie-friendly
David van Moolenbroek [Fri, 7 Sep 2012 14:25:03 +0000 (14:25 +0000)]
blocktest: make script more newbie-friendly

12 years agoFix uninitialized variable in sprofalyze
Erik van der Kouwe [Tue, 4 Sep 2012 09:56:18 +0000 (11:56 +0200)]
Fix uninitialized variable in sprofalyze

12 years agolibsys: let optset parse largeish positive values
David van Moolenbroek [Mon, 3 Sep 2012 11:51:56 +0000 (11:51 +0000)]
libsys: let optset parse largeish positive values

Note that strtoul() also parses negative numbers correctly.

12 years agotests: fix DS tests
David van Moolenbroek [Fri, 31 Aug 2012 18:02:22 +0000 (18:02 +0000)]
tests: fix DS tests

12 years agoTwo frees to appease Coverity
Erik van der Kouwe [Fri, 31 Aug 2012 18:12:57 +0000 (20:12 +0200)]
Two frees to appease Coverity

12 years agodevman: initialize libvtreefs hooks
Ben Gras [Fri, 31 Aug 2012 16:32:17 +0000 (18:32 +0200)]
devman: initialize libvtreefs hooks

. uninitialized cleanup hook was causing devman crashes
  on reboot, calling uninitialized cleanup hook whenever it
  didn't happen to be 0

12 years agolibblockdriver: minor whitespace fix
David van Moolenbroek [Fri, 31 Aug 2012 12:36:17 +0000 (12:36 +0000)]
libblockdriver: minor whitespace fix

12 years agosprofdiff: give some more info in case of bad input
Erik van der Kouwe [Fri, 31 Aug 2012 17:01:43 +0000 (17:01 +0000)]
sprofdiff: give some more info in case of bad input

12 years agovm: remove stack handling for signals
Ben Gras [Wed, 29 Aug 2012 15:31:38 +0000 (17:31 +0200)]
vm: remove stack handling for signals

. moved to the kernel as the handling was only
  reading it; the kernel may as well write it too

12 years agostat.h: abi-compatible way to make st_size off_t
Ben Gras [Tue, 28 Aug 2012 14:35:38 +0000 (16:35 +0200)]
stat.h: abi-compatible way to make st_size off_t

12 years agoARM support for system libraries
Arun Thomas [Tue, 28 Aug 2012 17:34:08 +0000 (13:34 -0400)]
ARM support for system libraries

12 years agomachine/ipcconst.h for arch-specific constants
Arun Thomas [Sun, 26 Aug 2012 16:44:27 +0000 (12:44 -0400)]
machine/ipcconst.h for arch-specific constants

12 years agovarious warning/errorwarning fixes for gcc47
Ben Gras [Sat, 25 Aug 2012 17:42:05 +0000 (19:42 +0200)]
various warning/errorwarning fixes for gcc47

 . warnings (sometimes promoted to errors) in servers/ and kernel/
 . -Os for ext2 boot module to make it small enough

12 years agoAmd64 cross-compilation fix.
Kees Jongenburger [Mon, 27 Aug 2012 15:31:03 +0000 (15:31 +0000)]
Amd64 cross-compilation fix.

* Remove usage of _MINIX and __i386__ in mkfs.c  to make
  conditional compilation orthogonal.

12 years agohide block_t behind _MINIX (for gcc)
Ben Gras [Fri, 24 Aug 2012 15:54:07 +0000 (17:54 +0200)]
hide block_t behind _MINIX (for gcc)

12 years agolibaudiodriver: properly deallocate memory
David van Moolenbroek [Fri, 17 Aug 2012 16:53:59 +0000 (16:53 +0000)]
libaudiodriver: properly deallocate memory

12 years agolibaudiodriver: call drv_init() again
David van Moolenbroek [Fri, 17 Aug 2012 16:05:02 +0000 (16:05 +0000)]
libaudiodriver: call drv_init() again

12 years agolibaudiodriver: resolve Coverity warnings
David van Moolenbroek [Fri, 17 Aug 2012 16:02:42 +0000 (16:02 +0000)]
libaudiodriver: resolve Coverity warnings

12 years agokernel: rely on alignment directive for stacks
Ben Gras [Sat, 18 Aug 2012 23:04:51 +0000 (01:04 +0200)]
kernel: rely on alignment directive for stacks

. unnecessary to do it manually with ELF
. also makes 1 extra alignment page unnecessary

12 years agoVM: Add PTF_READ page table flag
Arun Thomas [Thu, 16 Aug 2012 21:34:15 +0000 (23:34 +0200)]
VM: Add PTF_READ page table flag

12 years agoVM: allow for 16KB chunk alignment
Arun Thomas [Thu, 16 Aug 2012 21:33:27 +0000 (23:33 +0200)]
VM: allow for 16KB chunk alignment

12 years agoRS: Make PCI code optional
Arun Thomas [Thu, 16 Aug 2012 21:32:33 +0000 (23:32 +0200)]
RS: Make PCI code optional

12 years agoReorganize arch consts and types
Arun Thomas [Thu, 16 Aug 2012 15:07:24 +0000 (17:07 +0200)]
Reorganize arch consts and types

-DEFAULT_HZ const moved to archconst.h
-cpu_info struct moved to archtypes.h

12 years agorename struct mem_range to minix_mem_range
Ben Gras [Wed, 15 Aug 2012 13:16:57 +0000 (15:16 +0200)]
rename struct mem_range to minix_mem_range

. avoid a name clash with gdb

12 years agoKernel: resolve Coverity warnings
David van Moolenbroek [Wed, 15 Aug 2012 11:12:11 +0000 (11:12 +0000)]
Kernel: resolve Coverity warnings

12 years agoKernel: use okendpt() to resolve stored endpoints
David van Moolenbroek [Wed, 15 Aug 2012 08:50:30 +0000 (08:50 +0000)]
Kernel: use okendpt() to resolve stored endpoints

This adds an integrity check at very little cost, and should stop
Coverity from flagging array overruns on the result.

12 years agoKernel: resolve -Wall warnings for SMP
David van Moolenbroek [Tue, 14 Aug 2012 16:38:03 +0000 (16:38 +0000)]
Kernel: resolve -Wall warnings for SMP

12 years agoKernel: clean up include statements a bit
David van Moolenbroek [Tue, 14 Aug 2012 16:29:05 +0000 (16:29 +0000)]
Kernel: clean up include statements a bit

Coverity was flagging a recursive include between kernel.h and
cpulocals.h. As cpulocals.h also included proc.h, we can move that
include statement into kernel.h, and clean up the source files'
include statements accordingly.

12 years agoext2: resolve Coverity warnings
David van Moolenbroek [Mon, 13 Aug 2012 16:37:26 +0000 (16:37 +0000)]
ext2: resolve Coverity warnings

12 years agodp8390: resolve Coverity warnings (encore)
David van Moolenbroek [Mon, 13 Aug 2012 16:33:58 +0000 (16:33 +0000)]
dp8390: resolve Coverity warnings (encore)

12 years agoTTY: resolve Coverity warnings
David van Moolenbroek [Mon, 13 Aug 2012 16:32:59 +0000 (16:32 +0000)]
TTY: resolve Coverity warnings

12 years agorandom: resolve Coverity warnings
David van Moolenbroek [Mon, 13 Aug 2012 16:23:48 +0000 (16:23 +0000)]
random: resolve Coverity warnings

12 years agoMake memory driver arch-neutral
Arun Thomas [Mon, 13 Aug 2012 15:21:47 +0000 (17:21 +0200)]
Make memory driver arch-neutral

-Use PAGE_SIZE instead of I386_PAGE_SIZE
-No need to grant ioport access for ARM

12 years agoRename sys_vmctl_get_cr3_i386
Arun Thomas [Sat, 11 Aug 2012 15:45:35 +0000 (17:45 +0200)]
Rename sys_vmctl_get_cr3_i386

12 years agopm: update for ARM
Arun Thomas [Sat, 11 Aug 2012 15:45:06 +0000 (17:45 +0200)]
pm: update for ARM

12 years agocommon/libc: build for ARM
Arun Thomas [Sat, 11 Aug 2012 15:44:21 +0000 (17:44 +0200)]
common/libc: build for ARM

12 years agocsu: build for ARM
Arun Thomas [Sat, 11 Aug 2012 15:43:30 +0000 (17:43 +0200)]
csu: build for ARM

12 years agolibexec: add load_offset feature, used for ld.so
Ben Gras [Fri, 10 Aug 2012 16:27:23 +0000 (18:27 +0200)]
libexec: add load_offset feature, used for ld.so

. ld.so is linked at 0 but it can relocate itself; we
  wish to load ld.so higher though to trap NULL dereferences.
  if we know we have to execute ld.so, vfs tells libexec to put it
  higher.

12 years agosprofdiff for comparing sprofile results
Erik van der Kouwe [Sat, 11 Aug 2012 22:09:42 +0000 (22:09 +0000)]
sprofdiff for comparing sprofile results

This patch adds the sprofdiff tool, which compares two sets of profiling
output files. It sorts processes and symbols by difference in average
number of samples, placing those that took more time on the left first
and those that took more time on the right last. If multiple runs are
combined, a standard deviation is computed and this is used to compute
the significance level, which gives an indication of which differences
are likely to be due to chance.

This tool is run not on the raw profiling files, but on the output of
sprofalyze -d (a new option). Though having to use two tools and an
intermediate file seems a bit awkward, the advantage is that the
original source tree is not needed to resolve the symbols. For
comparisons, this is very useful. Also, the intermediate file is in a
text format that can easily be processed by scripts, which may be useful
for other purposes as well.

12 years agolibc/mallocdebug: Make arch-generic
Arun Thomas [Fri, 10 Aug 2012 20:41:28 +0000 (22:41 +0200)]
libc/mallocdebug: Make arch-generic

12 years agobrksize: Remove non-ELF code
Arun Thomas [Fri, 10 Aug 2012 20:36:02 +0000 (22:36 +0200)]
brksize: Remove non-ELF code

12 years agoFix minimal ISO installation
pikpik [Fri, 10 Aug 2012 02:10:29 +0000 (02:10 +0000)]
Fix minimal ISO installation
 - Minimal ISO's have little in /usr/src
 - Copy boot.cfg from /etc instead

12 years agoRemoved legacy floppy boot support
pikpik [Fri, 10 Aug 2012 01:54:04 +0000 (01:54 +0000)]
Removed legacy floppy boot support
 - fdbootparams and fdboot are removed
 - fdboot manual references are removed

12 years agodrivers.h: fix machine includes
Arun Thomas [Fri, 10 Aug 2012 20:12:13 +0000 (22:12 +0200)]
drivers.h: fix machine includes

12 years agoFix prototypes for getdents, read, readlink
Arun Thomas [Fri, 10 Aug 2012 20:09:43 +0000 (22:09 +0200)]
Fix prototypes for getdents, read, readlink

12 years agoClean up arch Makefiles for libminc
Arun Thomas [Fri, 10 Aug 2012 17:02:30 +0000 (19:02 +0200)]
Clean up arch Makefiles for libminc

12 years agoARM headers
Arun Thomas [Fri, 10 Aug 2012 16:05:05 +0000 (18:05 +0200)]
ARM headers

12 years agoWrite raw sprofile traces to preserve all information as well as save space
Erik van der Kouwe [Fri, 10 Aug 2012 18:49:40 +0000 (18:49 +0000)]
Write raw sprofile traces to preserve all information as well as save space

12 years agoRestore and use C version of oneC_sum
Arun Thomas [Fri, 10 Aug 2012 12:47:56 +0000 (14:47 +0200)]
Restore and use C version of oneC_sum

12 years agolibnetsock: resolve Coverity warnings
David van Moolenbroek [Tue, 7 Aug 2012 11:10:36 +0000 (13:10 +0200)]
libnetsock: resolve Coverity warnings

12 years agolibsys: resolve Coverity warnings
David van Moolenbroek [Tue, 7 Aug 2012 11:10:16 +0000 (13:10 +0200)]
libsys: resolve Coverity warnings

12 years agolibsys: remove unused stacktrace variant
David van Moolenbroek [Tue, 7 Aug 2012 11:10:05 +0000 (13:10 +0200)]
libsys: remove unused stacktrace variant

12 years agoPM: resolve Coverity warnings
David van Moolenbroek [Tue, 7 Aug 2012 11:09:20 +0000 (13:09 +0200)]
PM: resolve Coverity warnings

12 years agoIS: resolve Coverity warnings
David van Moolenbroek [Tue, 7 Aug 2012 11:09:09 +0000 (13:09 +0200)]
IS: resolve Coverity warnings

12 years agoIPC: resolve Coverity warnings
David van Moolenbroek [Tue, 7 Aug 2012 11:08:52 +0000 (13:08 +0200)]
IPC: resolve Coverity warnings

12 years agoprocfs: resolve Coverity warnings
David van Moolenbroek [Tue, 7 Aug 2012 11:08:26 +0000 (13:08 +0200)]
procfs: resolve Coverity warnings

12 years agovm: ignore RS pin (pre-allocate) requests for now
Ben Gras [Wed, 8 Aug 2012 13:47:45 +0000 (15:47 +0200)]
vm: ignore RS pin (pre-allocate) requests for now

. done by RS to reduce/remove dependency on VM for recovery
. RS has the default stack size of 64MB since the nosegments
  change, using a huge amount of unused memory to pre-allocate
. ignore these requests until actually required (i.e. being able
  to survive VM crashes)

Thanks to pikpik for investigating why RS was so huge.

12 years agolibc: ARM generateasm
Arun Thomas [Tue, 7 Aug 2012 15:01:25 +0000 (17:01 +0200)]
libc: ARM generateasm

12 years agoRe-write sprofalyze in C for better performance, more options and to fix problems...
Erik van der Kouwe [Sat, 4 Aug 2012 11:16:54 +0000 (11:16 +0000)]
Re-write sprofalyze in C for better performance, more options and to fix problems with the gap the kernel now has

12 years agopci: resolve Coverity warnings
David van Moolenbroek [Fri, 3 Aug 2012 17:00:17 +0000 (17:00 +0000)]
pci: resolve Coverity warnings

Or rather, slightly improve the code based on a false positive.

12 years agolance: resolve Coverity warnings
David van Moolenbroek [Fri, 3 Aug 2012 16:55:23 +0000 (16:55 +0000)]
lance: resolve Coverity warnings

12 years agofxp: resolve Coverity warnings
David van Moolenbroek [Fri, 3 Aug 2012 16:49:06 +0000 (16:49 +0000)]
fxp: resolve Coverity warnings

This removes some unused and unsupported features, and leaves in support
for another currently unused feature that might be used in the future.

12 years agofloppy: resolve Coverity warnings
David van Moolenbroek [Fri, 3 Aug 2012 16:14:37 +0000 (16:14 +0000)]
floppy: resolve Coverity warnings

12 years agoe1000: resolve Coverity warnings
David van Moolenbroek [Fri, 3 Aug 2012 16:10:24 +0000 (16:10 +0000)]
e1000: resolve Coverity warnings

12 years agodpeth: resolve Coverity warnings
David van Moolenbroek [Fri, 3 Aug 2012 15:48:54 +0000 (15:48 +0000)]
dpeth: resolve Coverity warnings

12 years agodp8390: resolve Coverity warnings
David van Moolenbroek [Thu, 2 Aug 2012 16:54:47 +0000 (16:54 +0000)]
dp8390: resolve Coverity warnings

12 years agodec21140A: resolve Coverity warnings
David van Moolenbroek [Thu, 2 Aug 2012 16:53:01 +0000 (16:53 +0000)]
dec21140A: resolve Coverity warnings

12 years agoRemove ACK EM_WSIZE/EM_PSIZE macro usage
Arun Thomas [Mon, 6 Aug 2012 11:00:21 +0000 (13:00 +0200)]
Remove ACK EM_WSIZE/EM_PSIZE macro usage

12 years agoReplace MACHINE/CHIP macros with compiler macros
Arun Thomas [Mon, 6 Aug 2012 10:55:50 +0000 (12:55 +0200)]
Replace MACHINE/CHIP macros with compiler macros

12 years agoNetBSD ARM headers
Arun Thomas [Tue, 3 Jul 2012 22:21:37 +0000 (00:21 +0200)]
NetBSD ARM headers

12 years agoMFS: fix block estimation computation
David van Moolenbroek [Thu, 2 Aug 2012 13:03:23 +0000 (13:03 +0000)]
MFS: fix block estimation computation

12 years agoLWIP - fix, removed segments
Tomas Hruby [Fri, 3 Aug 2012 07:20:34 +0000 (00:20 -0700)]
LWIP - fix, removed segments

- compiles again

12 years agoext2: remove -Werror from CFLAGS
David van Moolenbroek [Wed, 1 Aug 2012 12:39:14 +0000 (12:39 +0000)]
ext2: remove -Werror from CFLAGS

This breaks the Coverity build at the moment.

12 years agolibvtreefs: resolve Coverity warnings
David van Moolenbroek [Mon, 30 Jul 2012 14:00:22 +0000 (14:00 +0000)]
libvtreefs: resolve Coverity warnings

12 years agortl8139: resolve Coverity warnings
David van Moolenbroek [Mon, 30 Jul 2012 13:59:43 +0000 (13:59 +0000)]
rtl8139: resolve Coverity warnings

12 years agortl8169: resolve Coverity warnings
David van Moolenbroek [Mon, 30 Jul 2012 12:09:13 +0000 (12:09 +0000)]
rtl8169: resolve Coverity warnings

12 years agolibsffs: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 16:30:58 +0000 (16:30 +0000)]
libsffs: resolve Coverity warnings

12 years agolibchardriver: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 15:02:12 +0000 (15:02 +0000)]
libchardriver: resolve Coverity warnings

12 years agolibbdev: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 14:55:10 +0000 (14:55 +0000)]
libbdev: resolve Coverity warnings

12 years agofilter: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 14:52:23 +0000 (14:52 +0000)]
filter: resolve Coverity warnings

12 years agoatl2: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 14:51:52 +0000 (14:51 +0000)]
atl2: resolve Coverity warnings

12 years agoat_wini: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 14:49:55 +0000 (14:49 +0000)]
at_wini: resolve Coverity warnings

12 years agoahci: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 14:46:05 +0000 (14:46 +0000)]
ahci: resolve Coverity warnings

12 years agobtrace(8): resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 14:44:12 +0000 (14:44 +0000)]
btrace(8): resolve Coverity warnings

12 years agoVFS: fix locking bug in clone_opcl
Thomas Veerman [Thu, 26 Jul 2012 12:28:03 +0000 (12:28 +0000)]
VFS: fix locking bug in clone_opcl

When VFS runs out of vnodes after closing a vnode in opcl, common_open
will try to unlock a vnode through unlock_filp that has already been
unlocked in clone_opcl. By first obtaining and locking a new vnode this
situation is prevented; if there are no free vnodes, common_open will
unlock a still locked vnode.

12 years agoVFS: check path components for NAME_MAX length
Thomas Veerman [Thu, 26 Jul 2012 15:22:16 +0000 (15:22 +0000)]
VFS: check path components for NAME_MAX length

12 years agoext2: use new secondary cache method
Thomas Veerman [Thu, 26 Jul 2012 15:20:16 +0000 (15:20 +0000)]
ext2: use new secondary cache method

This gets rid of the ! emitted by VM when using ext2

12 years agoEXT2: various fixes
Thomas Veerman [Thu, 26 Jul 2012 15:19:08 +0000 (15:19 +0000)]
EXT2: various fixes

.enable all compile time warnings and make them errors
.refactor functions with unused parameters
.fix null pointer dereference before checking for null
.proper variable initialization
.use safe string copy functions
.fix massive memory corruption bug in fs_getdents

12 years agoPM: a few Coverity inspired fixes
Thomas Veerman [Thu, 26 Jul 2012 15:18:21 +0000 (15:18 +0000)]
PM: a few Coverity inspired fixes

.initialize variable to prevent negative array indexing
.remove dead code

12 years agoprocfs: use safe string copy
Thomas Veerman [Thu, 26 Jul 2012 15:17:25 +0000 (15:17 +0000)]
procfs: use safe string copy

12 years agoisofs: fixes for coverity defects
Thomas Veerman [Thu, 26 Jul 2012 15:16:50 +0000 (15:16 +0000)]
isofs: fixes for coverity defects

.use safe string copy functions
.CD-ROM are always mounted read-only

12 years agoMFS: fixes for defects reported by Coverity
Thomas Veerman [Thu, 26 Jul 2012 15:16:11 +0000 (15:16 +0000)]
MFS: fixes for defects reported by Coverity

.use safe string copy
.fix (potential) int overflow in function return

12 years agoMFS: getdents fixes
Thomas Veerman [Thu, 26 Jul 2012 12:42:55 +0000 (12:42 +0000)]
MFS: getdents fixes

.Use a bigger buffer to hold results
.Do not try to store more data than user buffer can hold

12 years agokernel: facility for user-visible memory
Ben Gras [Wed, 18 Jul 2012 16:53:20 +0000 (18:53 +0200)]
kernel: facility for user-visible memory

. map all objects named usermapped_*.o with globally visible
  pages; usermapped_glo_*.o with the VM 'global' bit on, i.e.
  permanently in tlb (very scarce resource!)
. added kinfo, machine, kmessages and loadinfo for a start
. modified log, tty to make use of the shared messages struct

12 years agokernel: few more objects required in unpaged mode
Ben Gras [Sat, 28 Jul 2012 20:26:52 +0000 (22:26 +0200)]
kernel: few more objects required in unpaged mode

. for 64-bit printf()

12 years agokernel: clean up objects
Ben Gras [Sat, 28 Jul 2012 20:21:53 +0000 (22:21 +0200)]
kernel: clean up objects

. objects left over from libraries are left around

12 years agokernel: give kernel tasks their process name back
David van Moolenbroek [Thu, 26 Jul 2012 14:35:08 +0000 (14:35 +0000)]
kernel: give kernel tasks their process name back