]> Zhao Yanbai Git Server - minix.git/log
minix.git
11 years agodec21140A: remove ACK option in Makefile 02/702/2
Antoine Leca [Sat, 23 Feb 2013 22:40:55 +0000 (23:40 +0100)]
dec21140A: remove ACK option in Makefile

11 years ago<a.out.h>, MINIX style: remove as obsolete 07/707/2
Antoine Leca [Thu, 4 Apr 2013 10:21:23 +0000 (12:21 +0200)]
<a.out.h>, MINIX style: remove as obsolete

Change-Id: Icc8b7210d60a93ac9cc4610d676dcba270756410

11 years agoRemove unmaintained "ack" size nm mdb 06/706/2
Antoine Leca [Fri, 25 Jan 2013 13:15:14 +0000 (13:15 +0000)]
Remove unmaintained "ack" size nm mdb

Change-Id: Iba84fd51f16577e6123148d4505c7687ea1c071d

11 years agolibm Makefile: typo (from NetBSD) 01/701/2
Antoine Leca [Fri, 25 Jan 2013 13:20:35 +0000 (13:20 +0000)]
libm Makefile: typo (from NetBSD)

11 years agokernel: implement reboot for am335x/dm37xx 00/700/2
Thomas Cort [Sat, 3 Aug 2013 12:40:59 +0000 (08:40 -0400)]
kernel: implement reboot for am335x/dm37xx

Change-Id: Ied288326b9af8f31223b2dd76a064e32c9a03c45

11 years agopm: notify readclock of reboot(RBT_POWEROFF) 99/699/2
Thomas Cort [Fri, 2 Aug 2013 14:10:59 +0000 (10:10 -0400)]
pm: notify readclock of reboot(RBT_POWEROFF)

Some ARM chips handle power-off with RTC alarms. PM notifies
readclock (the driver for RTCs) about the impending power-off.
If the power-off mechanism is an RTC alarm, readclock will
set the alarm. If not, there is no effect.

Change-Id: Iee00066def2a0f742cdf0dbde8e32b376edf1b78

11 years agokernel: add support for am335x PMIC-base power-off 98/698/2
Thomas Cort [Fri, 2 Aug 2013 14:10:55 +0000 (10:10 -0400)]
kernel: add support for am335x PMIC-base power-off

AM335X SoCs support power-off via a power management
chip (PMIC). An alarm in the real time clock is used
to trigger the PMIC to cut the power.

To ensure the alarm goes off when the system is in
a safe state, the RTC is frozen when the alarm is
set. At the last moment, the kernel unfreezes the RTC
to let the alarm go off.

This patch adds a mini driver for unfreezing the RTC
as well as code to handle RBT_POWEROFF on Minix/arm.

Change-Id: I7d48e75791e3a81bdd2f7704997193a269409fe8

11 years agotps65217: driver for the TPS65217 PMIC 97/697/2
Thomas Cort [Fri, 2 Aug 2013 14:10:48 +0000 (10:10 -0400)]
tps65217: driver for the TPS65217 PMIC

Change-Id: Ic2259c15645816627d757c9c45560cb4c5c0156c

11 years agolibminc: add reboot() 96/696/2
Thomas Cort [Fri, 2 Aug 2013 14:10:39 +0000 (10:10 -0400)]
libminc: add reboot()

Change-Id: Ia604e3d57dbcdc25c96c1aa0a263384982311d09

11 years agoreadclock: add support for am335x RTC 95/695/1
Thomas Cort [Fri, 2 Aug 2013 14:10:30 +0000 (10:10 -0400)]
readclock: add support for am335x RTC

Add support for getting/setting the am335x SoC's internal real
time clock. Also, allow the power off alarm to be set.

Make readclock an "always on" driver. This is needed for setting
power-off alarms whenever the power button is pressed on the BBB.

Replace the readclock.sh script & single run driver with a
readclock program that takes the same arguments and forwards
the requests on to the always up readclock driver.

Change-Id: Ifd6c2acd80ae4b5e79d83df510df445c24e24a71

11 years agoVFS: fix access bits in device reopen calls 94/694/1
David van Moolenbroek [Sun, 4 Aug 2013 12:39:02 +0000 (14:39 +0200)]
VFS: fix access bits in device reopen calls

11 years agoremoved some 64-bit functions 91/691/3
Gregg Hernandez [Tue, 16 Jul 2013 17:56:57 +0000 (11:56 -0600)]
removed some 64-bit functions

Change-Id: Idbafdbf13714f984f03770bd3b39521cb1014cdb

11 years agoLan8710 driver initial version, after first review 87/687/6
Michal Maka [Wed, 24 Jul 2013 13:07:28 +0000 (15:07 +0200)]
Lan8710 driver initial version, after first review

Change-Id: If00cf1e098da5875eb040f8765273a6fa5e43e33

11 years agofxp: Add code for PCI_REV 0x83 92/692/1
James T. Sprinkle [Sun, 4 Aug 2013 20:31:52 +0000 (20:31 +0000)]
fxp: Add code for PCI_REV 0x83

Change-Id: I44456c72ebc041ed31327d7c4a8cb77dacaee990

11 years agotda19988: driver for the TDA19988 HDMI Transmitter 89/689/1
Thomas Cort [Mon, 29 Jul 2013 16:21:33 +0000 (12:21 -0400)]
tda19988: driver for the TDA19988 HDMI Transmitter

Change-Id: Ia7750df3dd4ec4bd68624c800a0241c70eea7ca4

11 years agoi2c: increase BUFLEN/CMDLEN to 128, add page flag. 88/688/2
Thomas Cort [Fri, 26 Jul 2013 23:44:52 +0000 (19:44 -0400)]
i2c: increase BUFLEN/CMDLEN to 128, add page flag.

128 byte reads are much more common than 32 byte reads. The message
passing + setup/teardown for a read is much more expensive, in terms
of time, than the reading itself. A slightly bigger struct is well
worth the time savings. This reduces read times for /dev/eeprom
from 57 seconds per 4KB to 14 seconds.

Additionally, make sending the page address in the eeprom driver
and utility optional. This can save a little time when reading
within the same page and allows support for smaller devices that
don't support pages (example: chips containing EDID).

Change-Id: Ie48087caee40c11fa241d1555fce9309ddd27b43

11 years agoImporting NetBSD "Kyua" test framework 81/681/4
Lionel Sambuc [Tue, 26 Feb 2013 08:24:42 +0000 (09:24 +0100)]
Importing NetBSD "Kyua" test framework

To do so, a few dependencies have been imported:

 * external/bsd/lutok
 * external/mit/lua
 * external/public-domain/sqlite
 * external/public-domain/xz

The Kyua framework is the new generation of ATF (Automated Test
Framework), it is composed of:

 * external/bsd/atf
 * external/bsd/kyua-atf-compat
 * external/bsd/kyua-cli
 * external/bsd/kyua-tester
 * tests

Kyua/ATF being written in C++, it depends on libstdc++ which is
provided by GCC. As this is not part of the sources, Kyua is only
compiled when the native GCC utils are installed.

To install Kyua do the following:

 * In a cross-build enviromnent, add the following to the build.sh
   commandline: -V MKBINUTILS=yes -V MKGCCCMDS=yes

WARNING:
  At this point the import is still experimental, and not supported
  on native builds (a.k.a make build).

Change-Id: I26aee23c5bbd2d64adcb7c1beb98fe0d479d7ada

11 years agoRevert "drivers/fbd/action.c: removed some 64-bit functions" 86/686/2
Lionel Sambuc [Tue, 23 Jul 2013 15:49:11 +0000 (17:49 +0200)]
Revert "drivers/fbd/action.c: removed some 64-bit functions"

This reverts commit 85e7d849c804ae9df50e29dc9c81057a83e16726.

This introduce a bug in position computing for disk bigger than 4GB.

Change-Id: I281e60e9644d995cc4643006b50c05693f939b44

11 years agoReplace 64bit funcions with operators in at_wini.c 83/683/1
Lukasz Hryniuk [Mon, 15 Jul 2013 19:12:28 +0000 (21:12 +0200)]
Replace 64bit funcions with operators in at_wini.c

Change-Id: I5d4f85a55f9f9d4c2a26daca6957be8f57ba9164

11 years agodrivers/fbd/action.c: removed some 64-bit functions 82/682/1
Gregg Hernandez [Tue, 16 Jul 2013 17:56:57 +0000 (11:56 -0600)]
drivers/fbd/action.c: removed some 64-bit functions

Change-Id: I6a041f7dabad3e849d868c94c4fbd0edb7fc88b7

11 years agoeepromread: simple program to view eeprom contents 80/680/2
Thomas Cort [Mon, 15 Jul 2013 14:29:37 +0000 (10:29 -0400)]
eepromread: simple program to view eeprom contents

This program uses the i2c /dev interface to read the
contents of EEPROMs and display it to the user in
HEX and ASCII. It also has a mode that can display
data in label:value pairs. That mode is used for
board detection in the rc script to start the right
i2c drivers for the board.

Change-Id: I0bf5b13ffab5a89533c762d6881a145cf7f14914

11 years agocat24c256: driver for the cat24c256 i2c eeprom 79/679/2
Thomas Cort [Mon, 15 Jul 2013 14:29:31 +0000 (10:29 -0400)]
cat24c256: driver for the cat24c256 i2c eeprom

Change-Id: I682d136c80fc868d3f0a5edb0cf6c33c0f3a28ea

11 years agolibi2cdriver: library for i2c device drivers 78/678/2
Thomas Cort [Mon, 15 Jul 2013 14:29:24 +0000 (10:29 -0400)]
libi2cdriver: library for i2c device drivers

Change-Id: Ib6d5617e4b62e0bc5b25e6fa92b44baf536b1961

11 years agoImporting usr.sbin/i2cscan 77/677/1
Thomas Cort [Mon, 15 Jul 2013 14:29:16 +0000 (10:29 -0400)]
Importing usr.sbin/i2cscan

Change-Id: I7b776d6e5f3fe4f7a1af353b995ef9e2e752c7ea

11 years agoi2c: initial bus drivers for am335x and dm37xx 76/676/1
Thomas Cort [Mon, 15 Jul 2013 14:29:09 +0000 (10:29 -0400)]
i2c: initial bus drivers for am335x and dm37xx

Change-Id: I478704fbf30dbf6d3382bcbfb11e75b512c032a1

11 years agokernel: i2c padconf workaround 75/675/1
Thomas Cort [Mon, 15 Jul 2013 14:28:58 +0000 (10:28 -0400)]
kernel: i2c padconf workaround

The padconf library runs in user mode, but to actually affect the
padconf register contents, the processor has to be in privileged
mode. A full server based solution will be developed, but for now
just set the pinmux in the kernel at boot.

Change-Id: I170ed54dae64b27cd9bd8807445231598fb8e3e1

11 years agoreleasetools/release.sh: cleanup & enhancements 73/673/2
Lionel Sambuc [Fri, 12 Jul 2013 16:27:05 +0000 (18:27 +0200)]
releasetools/release.sh: cleanup & enhancements

 - use the proper  make variable to ignore file lists
   SLOPPY_FLIST instead of CHECKFLIST, which was a minix hack.

 - Add BUILDOPTIONS such that the users can activate optional
   features without editing the script.

Change-Id: Id731db96c38c2118c4c58e007f2804008a7a893f

11 years agolibc: revert inadvertent removal of O_CLOEXEC #ifndefs 74/674/1
Thomas Veerman [Fri, 12 Jul 2013 16:38:17 +0000 (18:38 +0200)]
libc: revert inadvertent removal of O_CLOEXEC #ifndefs

Change-Id: I15005181388280363f7aee546bd2ecc0cd5b37e6

11 years agoreleasetools/arm_sdimage.sh 72/672/2
Lionel Sambuc [Fri, 28 Jun 2013 18:27:53 +0000 (20:27 +0200)]
releasetools/arm_sdimage.sh

 - adapt usr partition size
 - reformulate partition sizes for easier adaptations
 - ensure 4k-block alignement of the partitions

Change-Id: I88787614163a7be177acb5dbf454b26387376a47

11 years agoEnable optional GCC install and GCC improvements 71/671/2
Lionel Sambuc [Wed, 24 Apr 2013 16:57:59 +0000 (18:57 +0200)]
Enable optional GCC install and GCC improvements

 -By adding MKGCC=yes and MKGCCCMDS=yes on the make commandline
   it is now possible to compile and install GCC on the system.

   Before doing this, if you are not using the build.sh script,
   you will need to call the fetch scripts in order to retrieve
   the sources of GCC and its dependencies.

 -Reduce difference with NetBSD share/mk

   Move Minix-specific parameters from bsd.gcc.mk to bsd.own.mk,
   which is anyway patched, so that bsd.gcc.mk is now aligned
   on the NetBSD version.

 -Clean libraries dependencies, compiles stdc++ only if gcc is
   also compiled (it is part of the gcc sources)

 -Correct minix.h header sequence, cleanup spec headers.

 -Fix cross-compilation from a 32bit host targeting MINIX/arm

Change-Id: I1b234af18eed4ab5675188244e931b2a2b7bd943

11 years agoAllow install of binutils and import texinfo 82/482/9
Lionel Sambuc [Wed, 10 Apr 2013 16:13:48 +0000 (18:13 +0200)]
Allow install of binutils and import texinfo

 - Enable installing binutils from the base system.

 - Import texinfo which is required for the binutils tools
   to be compiled.

 - Also adapted the fetch rules to correctly generate the
   gitignore files for gcc, and allow the case of multiple
   modules in the same directory, as found in gnu/dist.

Warning: This patch has an entry in docs/UPDATING

Change-Id: Ib781734e8fd7f9c6265fa65d62ba2cf3fccbc5ba

11 years agoUpgrading to binutils-2.22 83/483/6
Lionel Sambuc [Mon, 8 Apr 2013 21:11:36 +0000 (23:11 +0200)]
Upgrading to binutils-2.22

 * Added --with-ld=default
 * Added --with-lto
 * Fixed ld script for ARM
 * Options are prepared for future activation of gold.

Change-Id: Id9618904055e18d1b37f5e9585f775c367ff356e

11 years agoImplement getrusage 69/669/2
Xiaoguang Sun [Tue, 25 Jun 2013 12:41:01 +0000 (20:41 +0800)]
Implement getrusage

Implement getrusage.
These fields of struct rusage are not supported and always set to zero at this time
long ru_nswap;           /* swaps */
long ru_inblock;         /* block input operations */
long ru_oublock;         /* block output operations */
long ru_msgsnd;          /* messages sent */
long ru_msgrcv;          /* messages received */
long ru_nvcsw;           /* voluntary context switches */
long ru_nivcsw;          /* involuntary context switches */

test75.c is the unit test for this new function

Change-Id: I3f1eb69de1fce90d087d76773b09021fc6106539

11 years agoinclude: Import dev/i2c/i2c_io.h 70/670/1
Thomas Cort [Wed, 29 May 2013 18:40:16 +0000 (14:40 -0400)]
include: Import dev/i2c/i2c_io.h

Change-Id: Icb754891349b7f571863f3a87b0318c28c35ac79

11 years agotest42: skip single step test 68/668/1
Ben Gras [Tue, 25 Jun 2013 11:31:40 +0000 (11:31 +0000)]
test42: skip single step test

Change-Id: If57fc467b0ad28e0e9db27c6dadbe49e59dbc463

11 years agokernel: high-hz workaround for do_settime
Ben Gras [Mon, 24 Jun 2013 13:46:20 +0000 (15:46 +0200)]
kernel: high-hz workaround for do_settime

. with hz=1000, clock_t only lasts a few years.
  whenever we can't express the desired realtime
  in ticks because the distance with boottime is
  too high, simply adjust bootime like we do for
  otherwise negative values.
. fixes test 2 on ARM

11 years agokernel: maintain stack alignment
Ben Gras [Mon, 24 Jun 2013 12:35:25 +0000 (14:35 +0200)]
kernel: maintain stack alignment

. 'fixes' 64-bit varargs (i.e. printf("%llu", ..)) argument
  retrieval bug

11 years agore-import makewhatis 67/667/2
Ben Gras [Mon, 24 Jun 2013 14:41:30 +0000 (14:41 +0000)]
re-import makewhatis

. to benefit from the contribution found by rjkovacic@gmail.com
  in the minix makewhatis and submitted upstream, see NetBSD
  PR/47958

Change-Id: I147e1afe0088ab16e7b171f74330d1c6f44a13cf

11 years agokernel, arm ucontext: ARM DBG=-g run fixes 64/664/3
Ben Gras [Sun, 23 Jun 2013 16:37:57 +0000 (18:37 +0200)]
kernel, arm ucontext: ARM DBG=-g run fixes

kernel:
. modules can be as big as the space (8MB) between them
  instead of 4MB; memory is slightly bigger with DBG=-g

arm ucontext:
. r4 is clobbered by the restore function, as it's
  used as a scratch register, causing problems for the
  DBG=-g build
. r1-r3 are safe for scratch registers, as they are
  caller-save, so use r3 instead; and don't bother
  restoring r1-r3, but preserve r4

vfs:
. improve TLL pointer sanity check a bit

Change-Id: I0e3cfc367fdc14477e40d04b5e044f288ca4cc7d

11 years agoretire 64-bit conversion functions 51/651/2
Ben Gras [Mon, 17 Jun 2013 08:31:12 +0000 (10:31 +0200)]
retire 64-bit conversion functions

Change-Id: Ib6b81403f877c363a286c654e0524fa1cb781b80

11 years agoarm:use the 4 bit mmc data bus if supported by the card. 63/663/2
Kees Jongenburger [Fri, 21 Jun 2013 13:52:52 +0000 (15:52 +0200)]
arm:use the 4 bit mmc data bus if supported by the card.

Change-Id: I55de05db23ad1766e5faec93252e8410cbf59001

11 years agobuild:arm remove "start usb" from u-boot command line. 62/662/2
Kees Jongenburger [Fri, 21 Jun 2013 11:20:53 +0000 (13:20 +0200)]
build:arm remove "start usb" from u-boot command line.

Removed "start usb" from u-boot command line as it is not needed and
speeds up tftp booting.

Change-Id: I416f7eb0467888d1b69ef3dad09df0639fb63f10

11 years agoarm:increase the mmc driver process priority. 61/661/2
Kees Jongenburger [Fri, 21 Jun 2013 13:49:09 +0000 (15:49 +0200)]
arm:increase the mmc driver process priority.

Increase driver process priority to prevent starvation. Without
special attribute drivers will have the same priority as other
userland processes this. Posix test 1 was taking so much resources
that it triggered alarms in the MMC driver.

Change-Id: Icd3295d8f2a4a284418327a3715641fe9a3b3043

11 years agoarm:mmc driver refactor and timeout fix for BeagleBoneBlack. 60/660/3
Kees Jongenburger [Tue, 18 Jun 2013 19:39:04 +0000 (21:39 +0200)]
arm:mmc driver refactor and timeout fix for BeagleBoneBlack.

When we send MMC commads that contain data the controller provides no
description of the order of events and we need to be able to send data
from and to the controller "when needed". Changed the code to react
on buffer read and buffer write ready based on interrupts.

Change-Id: I60c9140bf0e45b74be6475054564d4e1bd89f21e

11 years agopadconf: remove duplicate code. 59/659/2
Thomas Cort [Wed, 19 Jun 2013 11:00:44 +0000 (07:00 -0400)]
padconf: remove duplicate code.

The same code block was repeated twice (copy & paste error).

Change-Id: I2035c9fff46b3f0a52084c2d6c871bbda6f8f07f

11 years agoarm timer fix 58/658/2
Ben Gras [Wed, 19 Jun 2013 09:39:05 +0000 (11:39 +0200)]
arm timer fix

. set 'done' once initialized so 32-bit read frc works,
  thanks to keesj
. make sure the software-implemented upper 32 bit of the 64-bit
  "tsc" value works OK by adding an assert in one of its calls

Change-Id: I5ce24fea919f4610c6a86ac7ec9f04b1815620c2

11 years agoarm:mmc driver refactor. 57/657/1
Kees Jongenburger [Thu, 13 Jun 2013 12:53:59 +0000 (14:53 +0200)]
arm:mmc driver refactor.

Generalize the usage of mmc_send_cmd function to allow
it to transfer data and remove direct invocations to
mmchs_send_cmd.

Change-Id: Iabb9a7d3f4ec57536407b369531ded2b8b649cce

11 years agoLLVM bitcode for almost the whole source tree 55/655/3
Anton Kuijsten [Mon, 17 Jun 2013 14:51:49 +0000 (14:51 +0000)]
LLVM bitcode for almost the whole source tree

Change-Id: Ibc6f89de112e0649c3a3bfe49c2baa2ed0746212

11 years agoclkconf: move clkconf from libgpio to it's own lib 54/654/2
Thomas Cort [Mon, 17 Jun 2013 12:23:31 +0000 (08:23 -0400)]
clkconf: move clkconf from libgpio to it's own lib

Clock configuration will be needed by other/future subsystems such as i2c.
Extract the functionality from libgpio and put it into it's own library.

Change-Id: I6f6de0b3fb4d305ddfeac74123b78c983d1318dd

11 years agofix for tap tests 53/653/2
Ben Gras [Mon, 17 Jun 2013 09:12:17 +0000 (09:12 +0000)]
fix for tap tests

Change-Id: Ic79cfdaf420cbf15a1aba6e30c821f35b726d0da

11 years agolibsys: correct cast priority 52/652/1
Ben Gras [Mon, 17 Jun 2013 08:40:28 +0000 (10:40 +0200)]
libsys: correct cast priority

Change-Id: I223482884c0e27726e8100209b203a33ded66f59

11 years agokernel, libsys: make it arm-target-independent 49/649/2
Ben Gras [Sun, 16 Jun 2013 22:33:47 +0000 (00:33 +0200)]
kernel, libsys: make it arm-target-independent

. by making the address and frequency of the
  free running clock kinfo members, set at runtime
  in the kernel, instead of compile time constants
  in libsys

Change-Id: I4a8387302d4d3ffd47d2448525725683a74c9a4f

11 years agomake test run script produce TAP if desired 48/648/2
Ben Gras [Sun, 16 Jun 2013 17:53:18 +0000 (17:53 +0000)]
make test run script produce TAP if desired

. primarily intended for jenkins
. see http://testanything.org/ for more info

Change-Id: If0e942f75898eed640f9edd89ef8ffd0bab9726e

11 years agoa few DBG=-g build fixes, both arches 47/647/3
Ben Gras [Sat, 15 Jun 2013 23:43:39 +0000 (23:43 +0000)]
a few DBG=-g build fixes, both arches

- setlogin() not available
- softfloat needed in -lminc for arm
- libminc: we have to set LIBCDIR for the included files,
  so use that instead of LIBCSRCDIR

Change-Id: I7f92621ebbca9ce08dc377b3fa61dee089071757

11 years agosome arm uart fixes 46/646/2
Ben Gras [Thu, 13 Jun 2013 13:08:26 +0000 (15:08 +0200)]
some arm uart fixes

. always keep reading data from uart so the interrupt is
  not continually asserted if data is sent but no process
  reads it
. increase tx & rx fifo trigger levels -> reduces the number
  of interrupts necessary
. bigger rx/tx buffers

Change-Id: I3cf7c73b22ae2fc091b845d516ba4aa53e892cda

11 years agovfs: patch for unpause()/revive() race condition 45/645/2
Ben Gras [Wed, 12 Jun 2013 18:42:41 +0000 (18:42 +0000)]
vfs: patch for unpause()/revive() race condition

. unpause() and revive() can race - revive() can run during
  a device i/o unblock, causing two sendnb()s to occur, and the
  2nd one to fail
. this can easily happen when a process is blocking on tty and
  is then killed by a signal - tty cancels the i/o and then
  kills the process by a signal

Change-Id: Ia319acaedfa336b78c030a2c4af7246959bdcf87

11 years agoarm:remove pre 1:1 mapping workarounds. 32/632/3
Kees Jongenburger [Wed, 12 Jun 2013 08:19:22 +0000 (10:19 +0200)]
arm:remove pre 1:1 mapping workarounds.

Change-Id: I5a690cf5a561cdca9b9c1f031402f80fd203c92d

11 years agoarm:no longer rely on a 1:1 phys mapping for device memory. 31/631/3
Kees Jongenburger [Tue, 11 Jun 2013 14:07:43 +0000 (16:07 +0200)]
arm:no longer rely on a 1:1 phys mapping for device memory.

Change-Id: Ie3f61069f882c37dbb81dee813fdfd883e7468cf

11 years agoallow ldd mmap fallback 30/630/2
Anton Kuijsten [Wed, 12 Jun 2013 05:58:46 +0000 (05:58 +0000)]
allow ldd mmap fallback

Change-Id: Ia7b8aa88c3f063c804869065719ac0cbf049b7dd

11 years agois: leave newline for stacktrace for SF9 dump 29/629/2
Ben Gras [Tue, 11 Jun 2013 15:19:38 +0000 (15:19 +0000)]
is: leave newline for stacktrace for SF9 dump

. otherwise the standard console screen can't hold them

Change-Id: Iea2c047b715bc456747aace8957d8c5eeb94d0fa

11 years agoinline sendnb should not call send vector 28/628/2
Ben Gras [Tue, 11 Jun 2013 15:13:52 +0000 (15:13 +0000)]
inline sendnb should not call send vector

. also vfs has to reply to a vm call - so use asynsend for that

Change-Id: I30ac1e591191dea5c99e25b03151a4415d1151b0

11 years agoinit: handle getty string of "" (default) 27/627/2
Ben Gras [Tue, 11 Jun 2013 14:30:31 +0000 (14:30 +0000)]
init: handle getty string of "" (default)

. the default entry for disabled ttys for getty
  in /etc/ttys is "", but init crashed on handling that
  string.

Change-Id: Ib7cd6c6869e338f47df0aa5abed36f15eda4f6ff

11 years agotty: i386: rs232 fix 26/626/2
Ben Gras [Tue, 11 Jun 2013 14:11:57 +0000 (14:11 +0000)]
tty: i386: rs232 fix

. ignore interrupt (stop interrupt check loop) if
  interrupt bit not set; limit loop too
. mask off other bits when testing bits in the status register
. this fixes rs232 output that would otherwise never get re-triggered
  as too many bits were set in the status byte to match the
  possibilities.

Change-Id: I311c93377fa8fb477ee9a756455fdeda780e6ba1

11 years agolibc syslog, syslogd, logger, uds fixes 25/625/2
Ben Gras [Mon, 10 Jun 2013 23:47:42 +0000 (23:47 +0000)]
libc syslog, syslogd, logger, uds fixes

changes necessary for libc syslog() using a unix domain socket.

. libc syslog: don't use send() connect() for unix
  datagram sockets, minix wants write() and ioctl()
. syslogd: listen on _PATH_LOG unix domain socket
. logger: warnings fixes
. pfs: make uds dgram socket type nonblocking so
  syslog() doesn't block
. vfs: add sanity check for empty fd in unpause()

Change-Id: Ied136c6fe0cc288f5a53478f1eebccc1ab1f39fb

11 years agoGold linker support for entire source tree
Anton Kuijsten [Tue, 11 Jun 2013 19:08:05 +0000 (19:08 +0000)]
Gold linker support for entire source tree

11 years agoImporting usr.bin/shuffle
Thomas Cort [Sun, 2 Jun 2013 19:45:38 +0000 (19:45 +0000)]
Importing usr.bin/shuffle

11 years agoarm:tty enable FIFO 19/619/4
Kees Jongenburger [Fri, 31 May 2013 14:20:38 +0000 (16:20 +0200)]
arm:tty enable FIFO

Change-Id: Iaaa7c0bcb40c2cce2423c1defc14809ed6c70e9c

11 years agolibexec/fptd/ftpcmd.c: Removed as it is generated. 17/617/2
Lionel Sambuc [Sun, 2 Jun 2013 16:36:15 +0000 (18:36 +0200)]
libexec/fptd/ftpcmd.c: Removed as it is generated.

Change-Id: Id700ed9c2462e998f9c74482f80ee95b644a1399

11 years agovm: bugfix: cover vfs_request-in-callback case 21/621/1
Ben Gras [Wed, 5 Jun 2013 15:02:56 +0000 (15:02 +0000)]
vm: bugfix: cover vfs_request-in-callback case

Change-Id: I16fccd9938fe8edab83c6c2e327d27d65ff20224

11 years agoImporting libexec/fingerd 16/616/1
Thomas Cort [Sat, 1 Jun 2013 14:14:33 +0000 (14:14 +0000)]
Importing libexec/fingerd

11 years agoImporting usr.bin/finger
Thomas Cort [Sat, 1 Jun 2013 14:20:33 +0000 (14:20 +0000)]
Importing usr.bin/finger

11 years agoImporting usr.bin/bdes
Thomas Cort [Fri, 31 May 2013 22:12:09 +0000 (22:12 +0000)]
Importing usr.bin/bdes

11 years agoremove vm_yield_block_get_block leftovers. 15/615/1
Qi Yong [Sat, 1 Jun 2013 12:51:31 +0000 (20:51 +0800)]
remove vm_yield_block_get_block leftovers.

11 years agofix some warnings 12/612/1
Ben Gras [Fri, 31 May 2013 20:37:25 +0000 (20:37 +0000)]
fix some warnings

Change-Id: I1f3fa582d8e3ddb3c981784dddb13e740102f4f3

11 years agovm: handle disappearing process case 11/611/1
Ben Gras [Fri, 31 May 2013 17:31:55 +0000 (17:31 +0000)]
vm: handle disappearing process case

Change-Id: Id96759883e4cdb175c79dcef7ef5ff254612101f

11 years agold.elf_so, grep, make: use mmap() 66/566/14
Ben Gras [Sat, 16 Mar 2013 03:19:47 +0000 (03:19 +0000)]
ld.elf_so, grep, make: use mmap()

. let the dynamic linker use a real file mmap(), reverting
  most of the minix-specific changes
. except for a fallback mode for systems or filesystems that
  do not support mmap() on files
. make, grep: let them use mmap() too, with fallback

Change-Id: I11c0c9ad439d713917a6f5c2d196558f6c03eabd

11 years agovm: mmap support 44/544/15
Ben Gras [Tue, 7 May 2013 12:36:09 +0000 (12:36 +0000)]
vm: mmap support

. test74 for mmap functionality
. vm: add a mem_file memory type that specifies an mmap()ped
  memory range, backed by a file
. add fdref, an object that keeps track of FD references within
  VM per process and so knows how to de-duplicate the use of FD's
  by various mmap()ped ranges; there can be many more than there can
  be FD's
. turned off for now, enable with 'filemap=1' as boot option

Change-Id: I640b1126cdaa522a0560301cf6732b7661555672

11 years agopfs, vfs: increase various limits 99/599/3
Ben Gras [Tue, 28 May 2013 19:29:08 +0000 (19:29 +0000)]
pfs, vfs: increase various limits

. pipes in pfs
. vnodes in vfs
. thread stack sizes in vfs

Change-Id: Ib27dedd42f57a90821a5b950cd7ea25cb2b42f3f

11 years agovfs: mmap support 43/543/15
Ben Gras [Tue, 7 May 2013 12:41:07 +0000 (12:41 +0000)]
vfs: mmap support

. libc: add vfs_mmap, a way for vfs to initiate mmap()s.
  This is a good special case to have as vfs is a slightly
  different client from regular user processes. It doesn't do it
  for itself, and has the dev & inode info already so the callback
  to VFS for the lookup isn't necessary. So it has different info
  to have to give to VM.
. libc: also add minix_mmap64() that accepts a 64-bit offset, even
  though our off_t is still 32 bit now.
. On exec() time, try to mmap() in the executable if available.
  (It is not yet available in this commit.)
. To support mmap(), add do_vm_call that allows VM to lookup
  (to ino+dev), do i/o from and close FD's on behalf of other
  processes.

Change-Id: I831551e45a6781c74313c450eb9c967a68505932

11 years agofix inet warnings 10/610/2
Ben Gras [Fri, 31 May 2013 14:30:13 +0000 (14:30 +0000)]
fix inet warnings

Change-Id: Ia6e761d2c649f03a49b2646387f859d6c2a646cb

11 years agoImporting usr.bin/logname
Thomas Cort [Fri, 31 May 2013 12:22:47 +0000 (12:22 +0000)]
Importing usr.bin/logname

11 years agopanic: declare as printf-style-checked 09/609/2
Ben Gras [Sat, 2 Feb 2013 00:55:35 +0000 (00:55 +0000)]
panic: declare as printf-style-checked

. and related fixes

Change-Id: I5131ac57dc53d8aec8d421a34c5ceea383404d7a

11 years agovfs: who_p fix 50/550/3
Ben Gras [Mon, 13 May 2013 19:06:12 +0000 (19:06 +0000)]
vfs: who_p fix

Change-Id: I0e04b6460907f5e67f6c90b2038d296d66b9a414

11 years agotcpd: waitpid() for any child process 06/606/1
Ben Gras [Thu, 30 May 2013 19:41:45 +0000 (19:41 +0000)]
tcpd: waitpid() for any child process

. prevents zombies from accumulating for as long as tcpd exists
  for child processes that create their own process group, e.g. ftpd.

Change-Id: Ic56597810f7d17e1cc28b755e2d1998ecf49a27c

11 years agoimport netbsd ftpd 05/605/3
Ben Gras [Thu, 30 May 2013 14:47:40 +0000 (14:47 +0000)]
import netbsd ftpd

Change-Id: Id7a3dbd40a6f37c55bcbb0d1456301f60626298f

11 years agobuild:arm allow to store build settings in a .settings file. 04/604/4
Kees Jongenburger [Thu, 30 May 2013 06:47:39 +0000 (08:47 +0200)]
build:arm allow to store build settings in a .settings file.

If present a file called .settings will be sourced when
calling the arm_sdimage.sh script. This allows to configure
the build setting for arm build without the need to specify
the flags each time arm_sdimage.sh is called.

For example to configure arm_sdimage.sh to target the
beaglebone put the following content in your .settings file.

BASE_URL=http://www.minix3.org/arm/beaglebone
FLAG=-DAM335X
CONSOLE=tty00

Change-Id: Ide0341a255bc7f41dc5c30d0a43e71b01a8ea55c

11 years agoAdd acpi poweroff
Xiaoguang Sun [Thu, 23 May 2013 11:06:13 +0000 (19:06 +0800)]
Add acpi poweroff

Use acpi poweroff if it's possible.

Change-Id: I103cc288523bf63fa536750b1d408ac88bbe35fb
Signed-off-by: Ben Gras <ben@minix3.org>
Signed-off-by: Tomas Hruby <tom@minix3.org>
11 years agovm: a bit more informative about failed pagefaults 00/600/2
Ben Gras [Wed, 29 May 2013 11:48:54 +0000 (11:48 +0000)]
vm: a bit more informative about failed pagefaults

Change-Id: I2b72dfb9291670cb837dfdb279f519892575d4a6

11 years agogen_uEnv.txt.sh shell neutraling 01/601/1
Ben Gras [Wed, 29 May 2013 12:10:22 +0000 (12:10 +0000)]
gen_uEnv.txt.sh shell neutraling

Change-Id: I52d5ac548373db1c4db9af79a24c2c9e2c1c1dcb

11 years agosyslog.conf: correct PID file path in comments. 98/598/2
Thomas Cort [Tue, 28 May 2013 19:07:10 +0000 (15:07 -0400)]
syslog.conf: correct PID file path in comments.

The syslogd.pid file has moved from /usr/run to /var/run. The comments
in syslog.conf direct the user to restart syslogd using the old PID
file location. This patch updates the comment to match the code.

Change-Id: Ib40cd1199ce201e1cbc74e1f1393d55a166ef343

11 years agoservers/pm: Fix EFAULT check for SETGROUPS 97/597/1
Lionel Sambuc [Tue, 28 May 2013 19:08:15 +0000 (19:08 +0000)]
servers/pm: Fix EFAULT check for SETGROUPS

The previous test would return EFAULT as soon as the group pointer
was NULL, while it is sensible when the count is also 0.

In that case, the SETGROUP syscall is expected to clear all the
group entries as the new set is empty.

Change-Id: I07b7e1d1f023a52e3035d53f7d9b42b660e039e8

11 years agofix some comment typo's
Qi Yong [Sun, 26 May 2013 14:11:59 +0000 (14:11 +0000)]
fix some comment typo's

Change-Id: Ic9f4333613abb858bfc28f72685424557cf2cd40

11 years agoarm:build add flags for AM335X 94/594/3
Kees Jongenburger [Fri, 24 May 2013 09:04:53 +0000 (11:04 +0200)]
arm:build add flags for AM335X

Change-Id: I1fd25d5ada52972fd2f6ec5057ff273544c65390

11 years agoarm:also use 1MB sections for mapping AM335X device memory. 93/593/3
Kees Jongenburger [Fri, 24 May 2013 08:28:00 +0000 (10:28 +0200)]
arm:also use 1MB sections for mapping AM335X device memory.

Change-Id: Idc0b285fcbabe8ec4c0be9a600b6a720c0bd3ffc

11 years agoarm:adapt MMC driver to also work on the AM335X platform. 92/592/3
Kees Jongenburger [Fri, 24 May 2013 08:26:51 +0000 (10:26 +0200)]
arm:adapt MMC driver to also work on the AM335X platform.

Change-Id: I30e69b7bfd377d1dd2b0b458dd00ee411b060285

11 years agoarm:mmc only compile mmchs when targeting arm. 95/595/1
Kees Jongenburger [Fri, 24 May 2013 13:39:41 +0000 (15:39 +0200)]
arm:mmc only compile mmchs when targeting arm.

Change-Id: Ie8d0b6461b58c2a7becda98401dece81be607a01

11 years agoarm:adapt tty driver for AM335X. 91/591/2
Kees Jongenburger [Fri, 24 May 2013 08:25:30 +0000 (10:25 +0200)]
arm:adapt tty driver for AM335X.

Change-Id: Ic861d68d0576c2abcdcb265a450c013ea2b28499

11 years agoarm:build also generate cmdline.txt 90/590/2
Kees Jongenburger [Fri, 24 May 2013 08:23:44 +0000 (10:23 +0200)]
arm:build also generate cmdline.txt

Also generate cmdline.txt as we need to use a different serial
for the AM335X boards.

Change-Id: I18c1b5911b5d7238d4a765e0aa01613908d9f2e6

11 years agoarm:omap timers remove hardcoded base address. 86/586/4
Kees Jongenburger [Thu, 23 May 2013 16:02:23 +0000 (18:02 +0200)]
arm:omap timers remove hardcoded base address.

Omap timers remove hardcoded base address and add some initial
support for the beaglebone's timers. Frclock_util will need
refactoring to remain independent of the ARM flavour.

Change-Id: I2b5d04e930364262c81b5686de634c0a51796b23

11 years agoarm:configure tick per ms to reflect the free running clock. 85/585/4
Kees Jongenburger [Thu, 23 May 2013 15:58:51 +0000 (17:58 +0200)]
arm:configure tick per ms to reflect the free running clock.

Change-Id: Ifc02658d6ae48dd01a868bfaa3d60f77bc6cc800