]>
Zhao Yanbai Git Server - minix.git/log
David van Moolenbroek [Sat, 8 Sep 2012 15:25:00 +0000 (17:25 +0200)]
tests: fix IPC test set
- use one single library instead of loose library files
- we don't have ftime() anymore
- shmat(non-NULL) is currently broken, fix shmt test set to bypass this
- some other small issues
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.
Arne Welzel [Mon, 10 Sep 2012 09:32:38 +0000 (11:32 +0200)]
blocktest: fix segfault on vectored read
David van Moolenbroek [Sat, 8 Sep 2012 14:42:32 +0000 (16:42 +0200)]
tests: fix DS tests' README too
David van Moolenbroek [Fri, 7 Sep 2012 14:25:03 +0000 (14:25 +0000)]
blocktest: make script more newbie-friendly
Erik van der Kouwe [Tue, 4 Sep 2012 09:56:18 +0000 (11:56 +0200)]
Fix uninitialized variable in sprofalyze
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.
David van Moolenbroek [Fri, 31 Aug 2012 18:02:22 +0000 (18:02 +0000)]
tests: fix DS tests
Erik van der Kouwe [Fri, 31 Aug 2012 18:12:57 +0000 (20:12 +0200)]
Two frees to appease Coverity
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
David van Moolenbroek [Fri, 31 Aug 2012 12:36:17 +0000 (12:36 +0000)]
libblockdriver: minor whitespace fix
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
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
Ben Gras [Tue, 28 Aug 2012 14:35:38 +0000 (16:35 +0200)]
stat.h: abi-compatible way to make st_size off_t
Arun Thomas [Tue, 28 Aug 2012 17:34:08 +0000 (13:34 -0400)]
ARM support for system libraries
Arun Thomas [Sun, 26 Aug 2012 16:44:27 +0000 (12:44 -0400)]
machine/ipcconst.h for arch-specific constants
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
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.
Ben Gras [Fri, 24 Aug 2012 15:54:07 +0000 (17:54 +0200)]
hide block_t behind _MINIX (for gcc)
David van Moolenbroek [Fri, 17 Aug 2012 16:53:59 +0000 (16:53 +0000)]
libaudiodriver: properly deallocate memory
David van Moolenbroek [Fri, 17 Aug 2012 16:05:02 +0000 (16:05 +0000)]
libaudiodriver: call drv_init() again
David van Moolenbroek [Fri, 17 Aug 2012 16:02:42 +0000 (16:02 +0000)]
libaudiodriver: resolve Coverity warnings
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
Arun Thomas [Thu, 16 Aug 2012 21:34:15 +0000 (23:34 +0200)]
VM: Add PTF_READ page table flag
Arun Thomas [Thu, 16 Aug 2012 21:33:27 +0000 (23:33 +0200)]
VM: allow for 16KB chunk alignment
Arun Thomas [Thu, 16 Aug 2012 21:32:33 +0000 (23:32 +0200)]
RS: Make PCI code optional
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
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
David van Moolenbroek [Wed, 15 Aug 2012 11:12:11 +0000 (11:12 +0000)]
Kernel: resolve Coverity warnings
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.
David van Moolenbroek [Tue, 14 Aug 2012 16:38:03 +0000 (16:38 +0000)]
Kernel: resolve -Wall warnings for SMP
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.
David van Moolenbroek [Mon, 13 Aug 2012 16:37:26 +0000 (16:37 +0000)]
ext2: resolve Coverity warnings
David van Moolenbroek [Mon, 13 Aug 2012 16:33:58 +0000 (16:33 +0000)]
dp8390: resolve Coverity warnings (encore)
David van Moolenbroek [Mon, 13 Aug 2012 16:32:59 +0000 (16:32 +0000)]
TTY: resolve Coverity warnings
David van Moolenbroek [Mon, 13 Aug 2012 16:23:48 +0000 (16:23 +0000)]
random: resolve Coverity warnings
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
Arun Thomas [Sat, 11 Aug 2012 15:45:35 +0000 (17:45 +0200)]
Rename sys_vmctl_get_cr3_i386
Arun Thomas [Sat, 11 Aug 2012 15:45:06 +0000 (17:45 +0200)]
pm: update for ARM
Arun Thomas [Sat, 11 Aug 2012 15:44:21 +0000 (17:44 +0200)]
common/libc: build for ARM
Arun Thomas [Sat, 11 Aug 2012 15:43:30 +0000 (17:43 +0200)]
csu: build for ARM
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.
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.
Arun Thomas [Fri, 10 Aug 2012 20:41:28 +0000 (22:41 +0200)]
libc/mallocdebug: Make arch-generic
Arun Thomas [Fri, 10 Aug 2012 20:36:02 +0000 (22:36 +0200)]
brksize: Remove non-ELF code
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
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
Arun Thomas [Fri, 10 Aug 2012 20:12:13 +0000 (22:12 +0200)]
drivers.h: fix machine includes
Arun Thomas [Fri, 10 Aug 2012 20:09:43 +0000 (22:09 +0200)]
Fix prototypes for getdents, read, readlink
Arun Thomas [Fri, 10 Aug 2012 17:02:30 +0000 (19:02 +0200)]
Clean up arch Makefiles for libminc
Arun Thomas [Fri, 10 Aug 2012 16:05:05 +0000 (18:05 +0200)]
ARM headers
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
Arun Thomas [Fri, 10 Aug 2012 12:47:56 +0000 (14:47 +0200)]
Restore and use C version of oneC_sum
David van Moolenbroek [Tue, 7 Aug 2012 11:10:36 +0000 (13:10 +0200)]
libnetsock: resolve Coverity warnings
David van Moolenbroek [Tue, 7 Aug 2012 11:10:16 +0000 (13:10 +0200)]
libsys: resolve Coverity warnings
David van Moolenbroek [Tue, 7 Aug 2012 11:10:05 +0000 (13:10 +0200)]
libsys: remove unused stacktrace variant
David van Moolenbroek [Tue, 7 Aug 2012 11:09:20 +0000 (13:09 +0200)]
PM: resolve Coverity warnings
David van Moolenbroek [Tue, 7 Aug 2012 11:09:09 +0000 (13:09 +0200)]
IS: resolve Coverity warnings
David van Moolenbroek [Tue, 7 Aug 2012 11:08:52 +0000 (13:08 +0200)]
IPC: resolve Coverity warnings
David van Moolenbroek [Tue, 7 Aug 2012 11:08:26 +0000 (13:08 +0200)]
procfs: resolve Coverity warnings
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.
Arun Thomas [Tue, 7 Aug 2012 15:01:25 +0000 (17:01 +0200)]
libc: ARM generateasm
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
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.
David van Moolenbroek [Fri, 3 Aug 2012 16:55:23 +0000 (16:55 +0000)]
lance: 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.
David van Moolenbroek [Fri, 3 Aug 2012 16:14:37 +0000 (16:14 +0000)]
floppy: resolve Coverity warnings
David van Moolenbroek [Fri, 3 Aug 2012 16:10:24 +0000 (16:10 +0000)]
e1000: resolve Coverity warnings
David van Moolenbroek [Fri, 3 Aug 2012 15:48:54 +0000 (15:48 +0000)]
dpeth: resolve Coverity warnings
David van Moolenbroek [Thu, 2 Aug 2012 16:54:47 +0000 (16:54 +0000)]
dp8390: resolve Coverity warnings
David van Moolenbroek [Thu, 2 Aug 2012 16:53:01 +0000 (16:53 +0000)]
dec21140A : resolve Coverity warnings
Arun Thomas [Mon, 6 Aug 2012 11:00:21 +0000 (13:00 +0200)]
Remove ACK EM_WSIZE/EM_PSIZE macro usage
Arun Thomas [Mon, 6 Aug 2012 10:55:50 +0000 (12:55 +0200)]
Replace MACHINE/CHIP macros with compiler macros
Arun Thomas [Tue, 3 Jul 2012 22:21:37 +0000 (00:21 +0200)]
NetBSD ARM headers
David van Moolenbroek [Thu, 2 Aug 2012 13:03:23 +0000 (13:03 +0000)]
MFS: fix block estimation computation
Tomas Hruby [Fri, 3 Aug 2012 07:20:34 +0000 (00:20 -0700)]
LWIP - fix, removed segments
- compiles again
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.
David van Moolenbroek [Mon, 30 Jul 2012 14:00:22 +0000 (14:00 +0000)]
libvtreefs: resolve Coverity warnings
David van Moolenbroek [Mon, 30 Jul 2012 13:59:43 +0000 (13:59 +0000)]
rtl8139: resolve Coverity warnings
David van Moolenbroek [Mon, 30 Jul 2012 12:09:13 +0000 (12:09 +0000)]
rtl8169: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 16:30:58 +0000 (16:30 +0000)]
libsffs: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 15:02:12 +0000 (15:02 +0000)]
libchardriver: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 14:55:10 +0000 (14:55 +0000)]
libbdev: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 14:52:23 +0000 (14:52 +0000)]
filter: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 14:51:52 +0000 (14:51 +0000)]
atl2: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 14:49:55 +0000 (14:49 +0000)]
at_wini: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 14:46:05 +0000 (14:46 +0000)]
ahci: resolve Coverity warnings
David van Moolenbroek [Fri, 27 Jul 2012 14:44:12 +0000 (14:44 +0000)]
btrace(8): resolve Coverity warnings
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.
Thomas Veerman [Thu, 26 Jul 2012 15:22:16 +0000 (15:22 +0000)]
VFS: check path components for NAME_MAX length
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
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
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
Thomas Veerman [Thu, 26 Jul 2012 15:17:25 +0000 (15:17 +0000)]
procfs: use safe string copy
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
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
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
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
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()
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