Ben Gras [Tue, 1 May 2007 13:29:50 +0000 (13:29 +0000)]
Backports and a fix for the 3.1.3 branch.
. backports of various fixes already on the trunk
. pass label of driver as argv[0], allowing the pci
driver to free pci resources for it (solved differently
on the trunk code), allowing pci drivers to be restarted
Ben Gras [Thu, 12 Apr 2007 16:45:00 +0000 (16:45 +0000)]
. leave out hardware-fp code from library
. minor packman usage tweaks
. kernel feature for printing version number
. removed some verbose debug messages from vfs/mfs
Ben Gras [Fri, 30 Mar 2007 15:36:49 +0000 (15:36 +0000)]
replace library time handling functions
mktime, tzset, asctime, ctime, gmtime, localtime, strftime
with zoneinfo implementations in src/commands/zoneinfo, referenced
from src/lib/stdtime/Makefile.in.
Ben Gras [Wed, 21 Mar 2007 09:45:01 +0000 (09:45 +0000)]
after enqueue()ing a process, only pick_proc() a new one if the current
process is not PREEMPTIBLE (or it's not ready, or there isn't a current
process yet). This fixes a case where a process that isn't
PREEMPTIBLE actually gets preempted. (This solves a race condition
between CLOCK and SYSTEM.)
Ben Gras [Fri, 9 Mar 2007 16:03:19 +0000 (16:03 +0000)]
For /dev/mem, map in memory to be copied to memory's own address space
one page at a time, and use safecopies to copy it to the requesting
process.
This lets /dev/mem access the entire physical address space, as the minix
page tables only allow access by default to physical RAM, which breaks
e.g. the VESA X driver in some cases.
Ben Gras [Thu, 8 Mar 2007 15:39:14 +0000 (15:39 +0000)]
. let kernel use read_tsc() from sysutil library
. read_tsc() in sysutil library saves edx and eax now
. added read_tsc_64() by Antonio Mancina to load tsc into
a 64-bit data type directly
. deleted read_tsc.h in favour of a prototype in <minix/syslib.h>
Ben Gras [Wed, 28 Feb 2007 13:13:39 +0000 (13:13 +0000)]
Minor change to path lookup that fixes the bug that creating a file
as a first component of an absolute path failed (e.g. 'touch /file'),
due to leading slashes not being skipped in the processed path counter
in that case, causing create to fail.
Ben Gras [Fri, 23 Feb 2007 12:55:29 +0000 (12:55 +0000)]
If a process does sys_kill on SELF (such as in panic() of servers and drivers
if a PM exit fails, until they are compiled with the new panic() function that
is), don't reply to it as the endpoint has been cleared.
Ben Gras [Tue, 20 Feb 2007 17:09:19 +0000 (17:09 +0000)]
. pci driver now returns devices, even when they have been pci_reserve()d
. pci_reserve() returns an error on devices that have already been reserved,
instead of panic()ing; the pci_reserve() library call still panics,
pci_reserve_ok() returns an int.
. this allows at_wini to use the instance value as intended, as all devices
are seen, even reserved ones
. only devices actually used by at_wini are pci_reserve()d
. pci doesn't release devices based on argv[0], as at_wini both have the
same name and multiple instances won't work together properly
Ben Gras [Fri, 16 Feb 2007 15:54:28 +0000 (15:54 +0000)]
. made memory parsing function into a library call
(moved 'struct memory' to <minix/type.h> for this library call)
. removed some debugging messages from pci library
Ben Gras [Mon, 12 Feb 2007 13:35:33 +0000 (13:35 +0000)]
set 'w_testing' during w_identify(). this means 0-tolerance to
timeouts, and an ATA_IDENTIFY timeout will cause the ATAPI_IDENTIFY
to be skipped, making the cd probe a lot faster.
Ben Gras [Thu, 8 Feb 2007 13:51:35 +0000 (13:51 +0000)]
Make /dev/c1* device nodes on disk and on the boot ramdisk.
. include c1* nodes in std in MAKEDEV
. this requires a slightly larger shell
. this requires a larger blocksize on the boot ramdisk (to fit
/dev/ in direct blocks for mkfs with a proto file)
. also more inodes and kB's on the boot ramdisk