]> Zhao Yanbai Git Server - minix.git/log
minix.git
11 years agommc:Indenting and code cleanup. 60/60/2
Kees Jongenburger [Wed, 10 Oct 2012 13:26:03 +0000 (15:26 +0200)]
mmc:Indenting and code cleanup.

Change-Id: Ia1156c6b5e4dbc6c8af37d61b118258053f347ce

11 years agommc:Small fixup to run the driver on hardware. 59/59/2
Kees Jongenburger [Mon, 8 Oct 2012 14:02:32 +0000 (16:02 +0200)]
mmc:Small fixup to run the driver on hardware.

Change-Id: I8e8d048da7cdfce5c9f2091969b0db5240e3e89f

11 years agoRemove some usage of 64bit functions (minix/u64.h)
Prasanna Kumar T S M [Mon, 24 Sep 2012 19:05:01 +0000 (00:35 +0530)]
Remove some usage of 64bit functions (minix/u64.h)

. Removed the usage of 64 bit functions in top.c. Compiles successfully.
. Scaling 64 bit values to 32 bit is removed.
. Retain make64 instead of using | with shift.
. Add order cycling display

11 years agoblocktest: make fewer assumptions about driver
David van Moolenbroek [Fri, 12 Oct 2012 12:55:55 +0000 (12:55 +0000)]
blocktest: make fewer assumptions about driver

In particular, allow partial results to be returned in some cases,
and do not require that the driver fail on word-unaligned access.

11 years agommc: various small fixes
David van Moolenbroek [Fri, 12 Oct 2012 12:54:08 +0000 (12:54 +0000)]
mmc: various small fixes

- call blockdriver_announce() on startup;
- restart statelessly after a crash;
- resolve a clang warning.

11 years agoVM: munmap fix
David van Moolenbroek [Sat, 13 Oct 2012 17:07:47 +0000 (19:07 +0200)]
VM: munmap fix

11 years agoexpose some terminal definitions by default
Ben Gras [Fri, 12 Oct 2012 12:43:18 +0000 (14:43 +0200)]
expose some terminal definitions by default

11 years agomkfs.mfs: dynamically size image from proto
Mohamed Katri [Mon, 10 Sep 2012 02:13:50 +0000 (04:13 +0200)]
mkfs.mfs: dynamically size image from proto

11 years agoVM: make mapping types explicit
Ben Gras [Thu, 11 Oct 2012 13:15:49 +0000 (15:15 +0200)]
VM: make mapping types explicit

Introduce explicit abstractions for different mapping types,
handling the instantiation, forking, pagefaults and freeing of
anonymous memory, direct physical mappings, shared memory and
physically contiguous anonymous memory as separate types, making
region.c more generic.

Also some other genericification like merging the 3 munmap cases
into one.

COW and SMAP safemap code is still implicit in region.c.

11 years agoVM: munmap used by VM for itself is no longer used
Ben Gras [Thu, 11 Oct 2012 13:15:48 +0000 (15:15 +0200)]
VM: munmap used by VM for itself is no longer used

11 years agobootloader: usability improvements
David van Moolenbroek [Wed, 10 Oct 2012 22:09:19 +0000 (00:09 +0200)]
bootloader: usability improvements

- add "edit" menu option, to edit menu commands before executing them;
- add "menu" boot command, to return to the menu from the prompt;
- provide more line editing features when getting input;
- fix a few potential buffer overflows as a side effect.

11 years agotests: fix IPC test set fix
David van Moolenbroek [Wed, 10 Oct 2012 18:10:14 +0000 (20:10 +0200)]
tests: fix IPC test set fix

Partial rollback of git-df39752.

11 years agoMerge branch 'master' of git.minix3.org:minix
Tomas Hruby [Thu, 11 Oct 2012 09:47:24 +0000 (09:47 +0000)]
Merge branch 'master' of git.minix3.org:minix

11 years agoLIBC - getifaddrs() fix
Tomas Hruby [Thu, 11 Oct 2012 09:43:33 +0000 (09:43 +0000)]
LIBC - getifaddrs() fix

ifpa must be set to something meaningful every time it returns 0.

11 years agominor fixes for safecopy & safemap tests
Ben Gras [Wed, 10 Oct 2012 16:35:08 +0000 (18:35 +0200)]
minor fixes for safecopy & safemap tests

11 years agoMMC driver. 58/58/3
Kees Jongenburger [Wed, 3 Oct 2012 08:55:40 +0000 (10:55 +0200)]
MMC driver.

Change-Id: I0d460d63070855df9b11eaf3d33eb7bb89c570f1

11 years agoImport MMC related bsd headers. 57/57/3
Kees Jongenburger [Wed, 3 Oct 2012 08:53:48 +0000 (10:53 +0200)]
Import MMC related bsd headers.

Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>

Change-Id: Ia183d522a6ef1528b045a6fc6cd2e8930c669c32

11 years agoARM support for kernel and vm
Arun Thomas [Mon, 8 Oct 2012 01:38:03 +0000 (21:38 -0400)]
ARM support for kernel and vm

11 years agoVFS: fix check_bsf() locking
Arne Welzel [Thu, 27 Sep 2012 20:23:49 +0000 (22:23 +0200)]
VFS: fix check_bsf() locking

The check_bsf() macro uses assert(mutex_trylock(&bsf_lock)) and
assumes bsf_lock is locked afterwards. This breaks when compiling
with NOASSERTS="yes". Also: macro to function transition.

11 years agoVFS: resolve unused parameter if NOASSERTS="yes"
Arne Welzel [Thu, 27 Sep 2012 20:22:06 +0000 (22:22 +0200)]
VFS: resolve unused parameter if NOASSERTS="yes"

If VFS is compiled with NOASSERTS="yes", ctty_opcl() does not
use the op parameter. Change to "non-assert()" sanity check.

11 years agodaily: makewhatis -f
pikpik [Thu, 27 Sep 2012 21:12:14 +0000 (23:12 +0200)]
daily: makewhatis -f

. use a little less memory and the processor will be
  freer during start-up.

11 years agounstack, sort: cleanup and improvement
Ben Gras [Wed, 26 Sep 2012 16:29:11 +0000 (18:29 +0200)]
unstack, sort: cleanup and improvement

lets unstack
(a) know about in-kernel ipc entry points and
(b) be able handle >2GB symbol offsets.

. sort: add -x for hex numerical sort
. unstack: gnm is obsolete
. unstack: datasizes is obsolete (use nm --size-sort instead)
. unstack: add ipc entry points read from procfs (hex)
. unstack: use sort -x to sort symbol order so the procfs ones are
  sorted independent of position and original ordering

11 years agoprocfs: make ipc vectors available
Ben Gras [Wed, 26 Sep 2012 15:14:14 +0000 (17:14 +0200)]
procfs: make ipc vectors available

11 years agomemory: use sys_safememset() for /dev/zero
Arne Welzel [Sat, 22 Sep 2012 21:21:43 +0000 (21:21 +0000)]
memory: use sys_safememset() for /dev/zero

11 years agolibsys: add sys_safememset()
Arne Welzel [Sat, 22 Sep 2012 20:02:14 +0000 (20:02 +0000)]
libsys: add sys_safememset()

11 years agokernel: add safememset() kernel call
Arne Welzel [Sat, 22 Sep 2012 20:01:05 +0000 (20:01 +0000)]
kernel: add safememset() kernel call

11 years agokernel: handle pagefaults in vm_memset()
Arne Welzel [Sat, 22 Sep 2012 19:58:05 +0000 (19:58 +0000)]
kernel: handle pagefaults in vm_memset()

11 years agoTTY: printer better diagnostics
Thomas Veerman [Mon, 24 Sep 2012 15:25:37 +0000 (15:25 +0000)]
TTY: printer better diagnostics

.tell when a line is not initialized
.don't print when a request has failed, we use error codes for that

11 years agogetty: return speed option
Thomas Veerman [Mon, 24 Sep 2012 13:37:20 +0000 (13:37 +0000)]
getty: return speed option

11 years agoSYSENTER/SYSCALL support
Ben Gras [Sun, 10 Jun 2012 17:50:17 +0000 (17:50 +0000)]
SYSENTER/SYSCALL support

. add cpufeature detection of both
. use it for both ipc and kernelcall traps, using a register
  for call number
. SYSENTER/SYSCALL does not save any context, therefore userland
  has to save it
. to accomodate multiple kernel entry/exit types, the entry
  type is recorded in the process struct. hitherto all types
  were interrupt (soft int, exception, hard int); now SYSENTER/SYSCALL
  is new, with the difference that context is not fully restored
  from proc struct when running the process again. this can't be
  done as some information is missing.
. complication: cases in which the kernel has to fully change
  process context (i.e. sigreturn). in that case the exit type
  is changed from SYSENTER/SYSEXIT to soft-int (i.e. iret) and
  context is fully restored from the proc struct. this does mean
  the PC and SP must change, as the sysenter/sysexit userland code
  will otherwise try to restore its own context. this is true in the
  sigreturn case.
. override all usage by setting libc_ipc=1

12 years agophys_memset improvements
Arne Welzel [Fri, 21 Sep 2012 12:15:44 +0000 (14:15 +0200)]
phys_memset improvements

. verify length argument
. use rep stosl / stosb

12 years agoremove unused <tools.h>
Ben Gras [Thu, 20 Sep 2012 10:24:22 +0000 (12:24 +0200)]
remove unused <tools.h>

12 years agovm: fix failed alloc condition
Ben Gras [Wed, 19 Sep 2012 20:23:56 +0000 (22:23 +0200)]
vm: fix failed alloc condition

12 years agotop task uid clear
Ben Gras [Wed, 19 Sep 2012 17:38:19 +0000 (19:38 +0200)]
top task uid clear

12 years agotests: don't chmod 777 everything upon cleanup
Thomas Veerman [Wed, 19 Sep 2012 14:58:32 +0000 (14:58 +0000)]
tests: don't chmod 777 everything upon cleanup

rm -rf works just fine no matter what mode bits are set (modulo
file ownership and current user id). Test 43 creates a symlink
to / and the chmod operation would change file permissions outside
of the test directory.

12 years agocoverity appeasement - redundant check
Ben Gras [Wed, 19 Sep 2012 15:18:02 +0000 (17:18 +0200)]
coverity appeasement - redundant check

12 years agovfs: pm_dumpcore: always clean up process
Ben Gras [Wed, 19 Sep 2012 14:57:27 +0000 (16:57 +0200)]
vfs: pm_dumpcore: always clean up process

. whenever this function is called, pm will expect
  the process to be cleaned up
. so don't abort the process entirely on error
. fixes a later 'forking on top of in-use child' vfs panic

12 years agovm: change NO_MEM to a more impossible value
Ben Gras [Wed, 19 Sep 2012 13:29:53 +0000 (15:29 +0200)]
vm: change NO_MEM to a more impossible value

fixes an assert() firing when starting X. thanks to the report by pikpik.

. NO_MEM was 0, which is actually an existing piece
  of physical memory. it can't be allocated because it's reserved
  for bios data (by the kernel), but it can be mapped in (e.g.
  by X), causing sanity check disaster.
. NONCONTIGUOUS is also obsolete as all allocations are single-page
  now, i.e. NONCONTIGUOUS is really the default and only mode.

12 years agoworldstone: add -s for statistical profiling
Ben Gras [Wed, 5 Sep 2012 21:42:41 +0000 (23:42 +0200)]
worldstone: add -s for statistical profiling

12 years agocoverity appeasement
Ben Gras [Wed, 19 Sep 2012 11:07:18 +0000 (13:07 +0200)]
coverity appeasement

12 years agovm, kernel, top: report memory usage of vm, kernel
Ben Gras [Tue, 18 Sep 2012 20:19:22 +0000 (22:19 +0200)]
vm, kernel, top: report memory usage of vm, kernel

12 years agoVM: remove dead code
Ben Gras [Tue, 18 Sep 2012 16:40:13 +0000 (18:40 +0200)]
VM: remove dead code

12 years agosome coverity fixes.
Ben Gras [Tue, 18 Sep 2012 13:10:59 +0000 (15:10 +0200)]
some coverity fixes.

12 years agoVM: restore >4k secondary cache functionality
Ben Gras [Tue, 18 Sep 2012 11:17:52 +0000 (13:17 +0200)]
VM: restore >4k secondary cache functionality

. by storing length in the yielded blocks node again

12 years agoVM: full munmap
Ben Gras [Tue, 18 Sep 2012 11:17:52 +0000 (13:17 +0200)]
VM: full munmap

complete munmap implementation; single-page references made
a general munmap() implementation possible to write cleanly.

. memory: let the MIOCRAMSIZE ioctl set the imgrd device
  size (but only to 0)
. let the ramdisk command set sizes to 0
. use this command to set /dev/imgrd to 0 after mounting /usr
  in /etc/rc, so the boot time ramdisk is freed (about 4MB
  currently)

12 years agoVM: abstract datastructures a bit
Ben Gras [Tue, 18 Sep 2012 11:17:51 +0000 (13:17 +0200)]
VM: abstract datastructures a bit

. a little less duplication in region.c

12 years agoVM: simplify slab allocator
Ben Gras [Tue, 18 Sep 2012 11:17:50 +0000 (13:17 +0200)]
VM: simplify slab allocator

. only keep a list of non-empty, non-full pages with slab objects
. simplifies alloc/free operations and reduces list management overhead

12 years agoVM: only single page chunks
Ben Gras [Tue, 18 Sep 2012 11:17:49 +0000 (13:17 +0200)]
VM: only single page chunks

 . only reference single pages in process data structures
   to simplify page faults, copy-on-write, etc.
 . this breaks the secondary cache for objects that are
   not one-page-sized; restored in a next commit

12 years agoVM: static data structure for mem allocation
Ben Gras [Tue, 18 Sep 2012 11:17:48 +0000 (13:17 +0200)]
VM: static data structure for mem allocation

 . allocate physical memory using a fixed, pre-allocated bitmap so there
   are no call cycles and it's avilable earlier

12 years agoVM: remove unused dma memory support functions from vm
Ben Gras [Tue, 18 Sep 2012 11:17:47 +0000 (13:17 +0200)]
VM: remove unused dma memory support functions from vm

. unused calls / data structures

12 years agoVM: forget about 'holes'
Ben Gras [Tue, 18 Sep 2012 11:17:46 +0000 (13:17 +0200)]
VM: forget about 'holes'

  . unused data structures and code

12 years agoVM: some sanitycheck fixes
Ben Gras [Tue, 18 Sep 2012 11:17:45 +0000 (13:17 +0200)]
VM: some sanitycheck fixes

minor fixes to restore SANITYCHECKS

12 years agolibc/libminc malloc reorganization
Ben Gras [Tue, 18 Sep 2012 11:17:44 +0000 (13:17 +0200)]
libc/libminc malloc reorganization

  . rename minix malloc sources to minix-* so Makefile
    references aren't ambiguous
  . throw out malloc source file copies in libminc
  . make libminc use phkmalloc instead of minix malloc (slightly faster)

12 years agoVFS: fix GCC compilation error
Thomas Veerman [Mon, 17 Sep 2012 15:29:38 +0000 (15:29 +0000)]
VFS: fix GCC compilation error

12 years agoINET: fix crash recovery script
Thomas Veerman [Thu, 13 Sep 2012 11:51:36 +0000 (11:51 +0000)]
INET: fix crash recovery script

12 years agoPM: don't deliver signals to VM
Thomas Veerman [Tue, 4 Sep 2012 12:12:32 +0000 (12:12 +0000)]
PM: don't deliver signals to VM

12 years agoVFS: panic when unmount_all fails
Thomas Veerman [Tue, 4 Sep 2012 12:11:54 +0000 (12:11 +0000)]
VFS: panic when unmount_all fails

12 years agoVFS: make all IPC asynchronous
Thomas Veerman [Tue, 28 Aug 2012 14:06:51 +0000 (14:06 +0000)]
VFS: make all IPC asynchronous

By decoupling synchronous drivers from VFS, we are a big step closer to
supporting driver crashes under all circumstances. That is, VFS can't
become stuck on IPC with a synchronous driver (e.g., INET) and can
recover from crashing block drivers during open/close/ioctl or during
communication with an FS.

In order to maintain serialized communication with a synchronous driver,
the communication is wrapped by a mutex on a per driver basis (not major
numbers as there can be multiple majors with identical endpoints). Majors
that share a driver endpoint point to a single mutex object.

In order to support crashes from block drivers, the file reopen tactic
had to be changed; first reopen files associated with the crashed
driver, then send the new driver endpoint to FSes. This solves a
deadlock between the FS and the block driver;
  - VFS would send REQ_NEW_DRIVER to an FS, but he FS only receives it
    after retrying the current request to the newly started driver.
  - The block driver would refuse the retried request until all files
    had been reopened.
  - VFS would reopen files only after getting a reply from the initial
    REQ_NEW_DRIVER.

When a character special driver crashes, all associated files have to
be marked invalid and closed (or reopened if flagged as such). However,
they can only be closed if a thread holds exclusive access to it. To
obtain exclusive access, the worker thread (which handles the new driver
endpoint event from DS) schedules a new job to garbage collect invalid
files. This way, we can signal the worker thread that was talking to the
crashed driver and will release exclusive access to a file associated
with the crashed driver and prevent the garbage collecting worker thread
from dead locking on that file.

Also, when a character special driver crashes, RS will unmap the driver
and remap it upon restart. During unmapping, associated files are marked
invalid instead of waiting for an endpoint up event from DS, as that
event might come later than new read/write/select requests and thus
cause confusion in the freshly started driver.

When locking a filp, the usage counters are no longer checked. The usage
counter can legally go down to zero during filp invalidation while there
are locks pending.

DS events are handled by a separate worker thread instead of the main
thread as reopening files could lead to another crash and a stuck thread.
An additional worker thread is then necessary to unlock it.

Finally, with everything asynchronous a race condition in do_select
surfaced. A select entry was only marked in use after succesfully sending
initial select requests to drivers and having to wait. When multiple
select() calls were handled there was opportunity that these entries
were overwritten. This had as effect that some select results were
ignored (and select() remained blocking instead if returning) or do_select
tried to access filps that were not present (because thrown away by
secondary select()). This bug manifested itself with sendrecs, but was
very hard to reproduce. However, it became awfully easy to trigger with
asynsends only.

12 years agokeymap(5) manpage - update location
Zachary Storer [Thu, 13 Sep 2012 21:19:15 +0000 (23:19 +0200)]
keymap(5) manpage - update location

12 years agotop: clarify ordering in blocked mode
Ben Gras [Tue, 11 Sep 2012 13:39:00 +0000 (15:39 +0200)]
top: clarify ordering in blocked mode

12 years agotop: add memory order, order cycling key
Ben Gras [Tue, 11 Sep 2012 00:17:25 +0000 (02:17 +0200)]
top: add memory order, order cycling key

12 years agoIPC server: do not loop to find syscall handler
Sébastien Boisvert [Sat, 8 Sep 2012 15:46:06 +0000 (17:46 +0200)]
IPC server: do not loop to find syscall handler

Instead of using a loop to find a matching ipc (inter process
communication) system call type, the offset in the call table can be
simply calculated in constant time.

Also, when the interprocess communication server receives an ipc
system call from a process, ipc should tell VM to watch the process
only once. This patch fixes that also.

(Patch and commit message slightly edited by committer.)

12 years agotests: fix IPC test set
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

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