]> Zhao Yanbai Git Server - minix.git/log
minix.git
11 years agoImporting usr.bin/xstr 87/1087/1
Thomas Cort [Tue, 29 Oct 2013 14:58:48 +0000 (10:58 -0400)]
Importing usr.bin/xstr

No Minix-specific changes needed.

Change-Id: I1aa24aa9293ce56c732bff94b17faeb0f7c232a0

11 years agoImporting usr.bin/fold 86/1086/1
Thomas Cort [Tue, 29 Oct 2013 13:24:41 +0000 (09:24 -0400)]
Importing usr.bin/fold

Replaces commands/fold. No Minix-specific changes needed.

Change-Id: Iefa9a082f900bb8c3a9f2f9f827ccbbd97c935f5

11 years agoImporting usr.bin/tty 85/1085/1
Thomas Cort [Mon, 28 Oct 2013 16:22:56 +0000 (12:22 -0400)]
Importing usr.bin/tty

Replaces commands/tty. No Minix-specific changes needed.

Change-Id: I7ed8589a8cfb0f4fedab6eb760e321876db73502

11 years agoImporting usr.bin/pathchk 84/1084/1
Thomas Cort [Mon, 28 Oct 2013 13:22:29 +0000 (09:22 -0400)]
Importing usr.bin/pathchk

No Minix-specific changes needed.

Change-Id: Ieff3f98a35f93f3e2fa613802327c37ce4878b86

11 years agoImporting usr.bin/unvis 83/1083/1
Thomas Cort [Mon, 28 Oct 2013 01:15:39 +0000 (21:15 -0400)]
Importing usr.bin/unvis

No Minix-specific changes needed.

Change-Id: I4308c729e1b392ab7d061d15fb901cbba60c6dd0

11 years agoImporting usr.bin/vis 82/1082/1
Thomas Cort [Mon, 28 Oct 2013 01:12:56 +0000 (21:12 -0400)]
Importing usr.bin/vis

No Minix-specific changes needed.

Change-Id: I52e7a0b15553b6f067d82d568f3793c5b6ac2a77

11 years agoImporting usr.bin/paste 81/1081/1
Thomas Cort [Sun, 27 Oct 2013 23:43:02 +0000 (19:43 -0400)]
Importing usr.bin/paste

Replaces commands/paste. No Minix-specific changes needed.

Change-Id: I92a6813502d552ad005ba6e856ce573508fc9f24

11 years agoImporting usr.bin/lock 80/1080/1
Thomas Cort [Sat, 26 Oct 2013 01:05:31 +0000 (21:05 -0400)]
Importing usr.bin/lock

No Minix-specific changes needed.

Change-Id: Ib1582e594ce6928b0725f41b51f8bca678d4b11b

11 years agoImporting usr.bin/fsplit 79/1079/1
Thomas Cort [Sun, 27 Oct 2013 17:33:50 +0000 (13:33 -0400)]
Importing usr.bin/fsplit

No Minix-specific changes needed.

Change-Id: I78021e6485b40a5b9f98b5d0e5ce0dc82b1ae46a

11 years agoImporting usr.bin/csplit 78/1078/1
Thomas Cort [Sun, 27 Oct 2013 17:31:12 +0000 (13:31 -0400)]
Importing usr.bin/csplit

No Minix-specific changes needed.

Change-Id: Id5d5deb380208ba9fccf404eab5128f8d892c255

11 years agoImporting usr.bin/split 77/1077/1
Thomas Cort [Sun, 27 Oct 2013 17:28:00 +0000 (13:28 -0400)]
Importing usr.bin/split

Replaces commands/split. No Minix-specific changes needed.

Change-Id: I3c6551cf52d4c43eea0e8005b9cae83e17271f2d

11 years agoImporting usr.bin/whois 76/1076/1
Thomas Cort [Sun, 27 Oct 2013 16:29:18 +0000 (12:29 -0400)]
Importing usr.bin/whois

No Minix-specific changes needed.

Change-Id: Ia255774b1389a838714dc67be808b31258bab050

11 years agoImporting usr.bin/comm 75/1075/2
Thomas Cort [Sun, 27 Oct 2013 01:19:33 +0000 (21:19 -0400)]
Importing usr.bin/comm

Replaces commands/comm. No Minix-specific changes needed.

Change-Id: Ifa37c86b09f958ca0d729f3a8030d0162819a080

11 years agoPM: fix clock_gettime() nanosecond overflow 71/1071/2
David van Moolenbroek [Sat, 26 Oct 2013 12:40:21 +0000 (14:40 +0200)]
PM: fix clock_gettime() nanosecond overflow

Change-Id: I969b30862cb671200a26b55afe3d523b6cfd2a7c

11 years agoImporting usr.bin/asa 74/1074/2
Thomas Cort [Sat, 26 Oct 2013 00:00:29 +0000 (20:00 -0400)]
Importing usr.bin/asa

No Minix-specific changes needed

Change-Id: Ib83606334a487ab2e35c475dd591e29d0ebef7a5

11 years agoAdd UDP support to getsockname(2) and getpeername(2). 73/1073/1
Jan Wieck [Sat, 26 Oct 2013 11:53:00 +0000 (11:53 +0000)]
Add UDP support to getsockname(2) and getpeername(2).

Change-Id: Ic035b961fb21a6fae75d3af87d714008ecedb874

11 years agoImporting usr.bin/renice 70/1070/1
Thomas Cort [Fri, 25 Oct 2013 22:38:50 +0000 (18:38 -0400)]
Importing usr.bin/renice

No Minix-specific changes needed.

Change-Id: Ib698cef1dfa6b386cf658b6026409e0336a8b1c4

11 years agoImporting usr.bin/write 69/1069/1
Thomas Cort [Fri, 25 Oct 2013 19:25:55 +0000 (15:25 -0400)]
Importing usr.bin/write

Replaces commands/write. No Minix-specific changes needed.

The NetBSD version lacks a few features that were present
in the Minix version: cbreak mode, verbose, and shell escapes,
but the main write(1) functionality is there and working.

Change-Id: I87b9589c54d3595d26247d221bb3d1f613feeb8c

11 years agoImporting usr.bin/mesg 68/1068/1
Thomas Cort [Fri, 25 Oct 2013 16:14:32 +0000 (12:14 -0400)]
Importing usr.bin/mesg

Replaces commands/mesg. No Minix-specific changes needed.

Change-Id: Ief22ad7f050f8083d0b43a4ea90b348c504d99a2

11 years agoImporting usr.bin/pwhash 67/1067/1
Thomas Cort [Thu, 24 Oct 2013 17:41:19 +0000 (13:41 -0400)]
Importing usr.bin/pwhash

No Minix-specific changes needed.

Change-Id: I7de666c3e010fef710805942c79b5674fea1d63c

11 years agoImporting usr.bin/pr 66/1066/1
Thomas Cort [Thu, 24 Oct 2013 16:39:25 +0000 (12:39 -0400)]
Importing usr.bin/pr

Replaces commands/pr. No Minix-specific changes needed.

Change-Id: I3c4c03b38fc8c654e7c54c3a8af0e07a0dfc9f67

11 years agoImporting usr.bin/uuidgen 61/1061/1
Thomas Cort [Thu, 24 Oct 2013 00:15:02 +0000 (20:15 -0400)]
Importing usr.bin/uuidgen

No Minix-specific changes needed.

Change-Id: I8ab26f911ff9af2a41c3866badd66c16ed82b509

11 years agoImporting usr.bin/units 60/1060/1
Thomas Cort [Wed, 23 Oct 2013 23:24:43 +0000 (19:24 -0400)]
Importing usr.bin/units

No Minix-specific changes needed.

Change-Id: I2a3411bf78d5e31875d577dcd6df68f76da98137

11 years agoKernel: correct a case of misleading indentation 59/1059/1
David van Moolenbroek [Tue, 22 Oct 2013 14:44:39 +0000 (14:44 +0000)]
Kernel: correct a case of misleading indentation

Reported by Coverity.

Change-Id: If5d8a890052918f59fcc966759e4676fc4c894f0

11 years agolibbdev: fix IOCTL grant access bug 58/1058/1
David van Moolenbroek [Tue, 22 Oct 2013 14:00:02 +0000 (14:00 +0000)]
libbdev: fix IOCTL grant access bug

Reported by Coverity.

Change-Id: I34983312bebd9bf2449412b7dfa691ed208867ea

11 years agoahci: fix integer sign extension bug 57/1057/1
David van Moolenbroek [Tue, 22 Oct 2013 13:58:59 +0000 (13:58 +0000)]
ahci: fix integer sign extension bug

Reported by Coverity.

Change-Id: Ie7eef9570c89c69a05ba45169a0ea838f0d8e320

11 years agoImporting usr.bin/leave 55/1055/1
Thomas Cort [Fri, 18 Oct 2013 16:40:44 +0000 (12:40 -0400)]
Importing usr.bin/leave

No Minix-specific changes needed.

Change-Id: I2cd3f75255168a553ec5f9dd722ba1c51c09a0c1

11 years agoImporting usr.bin/env 54/1054/1
Thomas Cort [Fri, 18 Oct 2013 13:06:27 +0000 (09:06 -0400)]
Importing usr.bin/env

Replaces commands/env. No Minix-specific changes needed.

Change-Id: I1aefebe360962ae52241384c54f9466253d783c6

11 years agoImporting usr.bin/printenv 53/1053/1
Thomas Cort [Fri, 18 Oct 2013 13:13:18 +0000 (09:13 -0400)]
Importing usr.bin/printenv

Replaces printenv from commands/env. No Minix-specific changes
needed.

Change-Id: I64e63c9d0ca94faadc71906cf78d18fed5905e90

11 years agoImporting usr.bin/column 52/1052/1
Thomas Cort [Thu, 17 Oct 2013 13:33:40 +0000 (09:33 -0400)]
Importing usr.bin/column

No Minix-specific changes needed.

Change-Id: Ia883c948f6b9e5602f29fbf28f87646529563a84

11 years agoImporting sbin/nologin 49/1049/1
Thomas Cort [Thu, 17 Oct 2013 12:00:12 +0000 (08:00 -0400)]
Importing sbin/nologin

No Minix-specific changes needed.

Change-Id: I727432c4a28654e351a9289b3e03f143a1c26a7b

11 years agoImporting usr.bin/users 44/1044/3
Thomas Cort [Tue, 15 Oct 2013 15:23:27 +0000 (11:23 -0400)]
Importing usr.bin/users

No Minix-specific changes needed.

Change-Id: I886ff43d1ec63c6c3393bc1307425676b107a274

11 years agoImporting usr.bin/cut 42/1042/2
Thomas Cort [Mon, 14 Oct 2013 23:23:02 +0000 (19:23 -0400)]
Importing usr.bin/cut

Replaces commands/cut. No Minix-specific changes needed.

Change-Id: I4e8e203eb8aad18232364f05cbdc961a57afae51

11 years agoImporting usr.bin/unzip 43/1043/1
Thomas Cort [Tue, 15 Oct 2013 03:53:26 +0000 (23:53 -0400)]
Importing usr.bin/unzip

No Minix-specific changes needed.

Change-Id: Ib0b2bf2254acf3d8704bd6acda83af997240ebcf

11 years agoImporting usr.bin/nl 41/1041/2
Thomas Cort [Mon, 14 Oct 2013 14:02:42 +0000 (10:02 -0400)]
Importing usr.bin/nl

 * Add _SC_LINE_MAX to unistd.h (value of 15 from NetBSD).
 * Add _SC_LINE_MAX case to sysconf(3) in libc.
 * usr.bin/nl itself required no Minix specific changes.

Change-Id: I10f056ccdf4f212beb1272f735f41303e5036c05

11 years agorelease.sh: SVN to GIT updates 36/1036/3
David van Moolenbroek [Fri, 11 Oct 2013 18:38:45 +0000 (20:38 +0200)]
release.sh: SVN to GIT updates

- exclude .git instead of .svn when using local source (-c);
- put the git tag (or "copy") in /etc/version rather than something
  outdated related to SVN;
- remove SVN-specific -s flag (suggested by Erik).

Change-Id: Ia35eb95c39ae93ebae5638c9dd7847428593b813

11 years agotest75: fix child run time check bug 34/1034/2
David van Moolenbroek [Fri, 11 Oct 2013 10:01:37 +0000 (12:01 +0200)]
test75: fix child run time check bug

Change-Id: Ieb071f01bfd5a07093868e5dbfc7d941f435bf20

11 years agoavoid alloc_contig() for iovec, mfs superblock 08/1008/8
Ben Gras [Thu, 3 Oct 2013 15:22:07 +0000 (17:22 +0200)]
avoid alloc_contig() for iovec, mfs superblock

. initial workaround for assert() firing on iovec
  size on ARM. likely due to alloc_contig() allocating
  unusually mapped memory in STATICINIT.
. for the same reason use the regular cache i/o functions
  to read the superblock in mfs - avoid the alloc_contig()
  that STATICINIT does.

Change-Id: I3d8dc635b1cf2666e55b0393feae74cc25b8fed4

11 years agoImporting usr.bin/nohup 40/1040/2
Thomas Cort [Sat, 12 Oct 2013 14:46:34 +0000 (10:46 -0400)]
Importing usr.bin/nohup

Replaces commands/nohup. No Minix-specific changes needed.

Change-Id: I2fb7c387833a8898cf30fc3ac25ea53ee1031bd1

11 years agosmp: build fixes for CONFIG_SMP=y 33/1033/3
Thomas Cort [Fri, 11 Oct 2013 02:07:12 +0000 (02:07 +0000)]
smp: build fixes for CONFIG_SMP=y

 * bitmap.h: declare an explicit return type for bits_fill().
 * arch_smp.c: update include clock.h to kernel/clock.h

Change-Id: Idea373fa4eaa53f8ce4ac4fc3ad56f9f1ca86bc7

11 years agoImporting usr.bin/nice 32/1032/2
Thomas Cort [Thu, 10 Oct 2013 20:29:19 +0000 (16:29 -0400)]
Importing usr.bin/nice

Replaces commands/nice. No Minix-specific changes needed.

Change-Id: I3e089497dcd86893aa28e3a973496af5b1689f45

11 years agoipc: add missing printf argument. 35/1035/1
Thomas Cort [Fri, 11 Oct 2013 14:29:16 +0000 (10:29 -0400)]
ipc: add missing printf argument.

A printf statement that only gets compiled when DEBUG_SEM is
defined had a '%' conversion without a corresponding argument.
This patch adds the argument.

Change-Id: I808076f7723baad111ab6fe8a0766d1da4904fd7

11 years agokernel: spelling fixes 17/1017/2
Thomas Cort [Wed, 9 Oct 2013 15:28:23 +0000 (11:28 -0400)]
kernel: spelling fixes

Change-Id: I73c759bdef98be35be77130895ae0ec497e1b954

11 years agoRevert "MAKEDEV: Add mtree output, and ramdisk set." 16/1016/1
Lionel Sambuc [Wed, 9 Oct 2013 14:28:17 +0000 (16:28 +0200)]
Revert "MAKEDEV: Add mtree output, and ramdisk set."

This reverts commit 4c87adc85c83ea5971ad647f4ee5d1d37625e30b.

Change-Id: I469fbbe6f49802cb86d81b059cb454d967f47079
Reason: Introduces new device nodes and removes old devices nodes which where unintended at this point.

11 years agoMAKEDEV: Add mtree output, and ramdisk set. 12/1012/3
Lionel Sambuc [Thu, 3 Oct 2013 11:54:24 +0000 (13:54 +0200)]
MAKEDEV: Add mtree output, and ramdisk set.

Change-Id: I36cb7e9451960189a33a04a5c2e3ddb19c7be75e

11 years agousr.bin/toproto: Adding support for device nodes 11/1011/2
Lionel Sambuc [Fri, 4 Oct 2013 10:12:01 +0000 (12:12 +0200)]
usr.bin/toproto: Adding support for device nodes

Change-Id: I5958673274ecc06429c489a1ac5a88d2b3c31864

11 years agoImporting usr.bin/tee 10/1010/2
Thomas Cort [Sun, 6 Oct 2013 18:08:45 +0000 (14:08 -0400)]
Importing usr.bin/tee

Replaces commands/tee. No Minix-specific changes needed.

Change-Id: I31481facfa9cd44860bf2b59ec779605dd8d2f2d

11 years agoFix some unintialized variables with -O3 15/1015/1
Lionel Sambuc [Tue, 8 Oct 2013 09:45:49 +0000 (11:45 +0200)]
Fix some unintialized variables with -O3

Change-Id: I7c41b355a503f97501e9ecb768c77a80d1d7ef0c

11 years agoFix out of array bounds errors with -O3 14/1014/1
Lionel Sambuc [Tue, 8 Oct 2013 09:43:31 +0000 (11:43 +0200)]
Fix out of array bounds errors with -O3

When compiling with -O3 gcc seems to be a lot stricter on its checks for
index out of bounds error.

Change-Id: I5a63e1db6aa2375223ff13c6352643a9804fa93d

11 years agotestsh2: allow compiler fallback to gcc 68/868/4
Ben Gras [Fri, 27 Sep 2013 15:57:41 +0000 (15:57 +0000)]
testsh2: allow compiler fallback to gcc

. lets test work in 'pure DESTDIR' environment

Change-Id: If7d45f01f20bc6369455d706b5ad47d36946fce3

11 years agotest75: force child to use a minimum of cpu time 66/866/4
Ben Gras [Fri, 27 Sep 2013 14:29:08 +0000 (14:29 +0000)]
test75: force child to use a minimum of cpu time

test75 sometimes false-fails if something else is going on
at the same time, presumably because the child doesn't spin
enough to register a nonzero getrusage() cpu time value, as
spin() uses the real time to limit the spinning.

this change forces spin() to do a minimum amount of spinning
before exiting, regardless of scheduling.

Change-Id: I57c63d22969bba418f36bcc8c5ace2b6fb445968

11 years agoImporting usr.bin/machine 00/1000/3
Thomas Cort [Sat, 28 Sep 2013 16:37:57 +0000 (12:37 -0400)]
Importing usr.bin/machine

Change-Id: I7dd97073e94cbb75fdac7f15c73437c8ce44a606

11 years agoImporting usr.bin/rev 01/1001/2
Thomas Cort [Sat, 28 Sep 2013 17:15:09 +0000 (13:15 -0400)]
Importing usr.bin/rev

Change-Id: I73c661eb9d4cca5c17b969bb3831541c1f7f9319

11 years agoarm:fix for test54 and test55 65/865/2
Kees Jongenburger [Fri, 27 Sep 2013 12:07:37 +0000 (14:07 +0200)]
arm:fix for test54 and test55

Define the file name templates as char arrays to prevent the
toolchain from mapping them read-only.

Change-Id: Ib2395587b62d4a6ff19c88adc4246dcb41344a53

11 years agoarm_sdimage.sh: use native minix partition util 63/863/3
Ben Gras [Thu, 26 Sep 2013 11:42:31 +0000 (13:42 +0200)]
arm_sdimage.sh: use native minix partition util

. make filesystems on primary partitions to make it
  easier on the minix partition util
. so sfdisk isn't required as an external tool
. also make partition and hitherto x86-only utilities
  arch-independent

Change-Id: Ib4e07e45d038d084dde1858917d3deb7f0616532

11 years agoarm:ensure read_tsc_64 always returns a valid value. 64/864/1
Kees Jongenburger [Fri, 27 Sep 2013 09:29:04 +0000 (11:29 +0200)]
arm:ensure read_tsc_64 always returns a valid value.

Before this change overflowing the free running clock counter
between the time the timer was read and the time the overflow
check was done resulted in read_tsc_64 returning a to high value.

Change-Id: I1022f271213647f720477c4121d45f0c965456c6

11 years agoarm:mmc driver speedup. 54/854/2
Kees Jongenburger [Wed, 25 Sep 2013 07:46:24 +0000 (09:46 +0200)]
arm:mmc driver speedup.

Speedup the mmc driver one more time before doing a proper fix.

Change-Id: I9dbe9b1e16e71fed00c8ac3ca7fdc6c4374284c0

11 years agoarm:caching enable barriers 53/853/2
Kees Jongenburger [Wed, 25 Sep 2013 08:49:09 +0000 (10:49 +0200)]
arm:caching enable barriers

Change-Id: I2c54a3c3c8f0502bf365901d771a989f7c556958

11 years agoarm:caching clean caches before setting up mappings. 52/852/2
Kees Jongenburger [Wed, 25 Sep 2013 08:47:57 +0000 (10:47 +0200)]
arm:caching clean caches before setting up mappings.

Change-Id: I9ff1bb04ea9c0adeb76e5176526448d93bfe29f5

11 years agoarm:vm allow per memory type flags. 51/851/2
Kees Jongenburger [Wed, 25 Sep 2013 08:41:26 +0000 (10:41 +0200)]
arm:vm allow per memory type flags.

Change-Id: Id5a5bd479bdfbbc3fb52a85c29e1d7712a1171a7

11 years agoarm:caching mark normal memory cacheable during identity mapping. 50/850/2
Kees Jongenburger [Wed, 25 Sep 2013 08:38:54 +0000 (10:38 +0200)]
arm:caching mark normal memory cacheable during identity mapping.

Change-Id: I7cd8da168744a3f32276803e99e8af0fea772574

11 years agoarm:caching access the l1 pages over cacheable memory. 49/849/2
Kees Jongenburger [Wed, 25 Sep 2013 08:30:18 +0000 (10:30 +0200)]
arm:caching access the l1 pages over cacheable memory.

When we start using a new pagetable (for a new process)
the last part is to ensure the pagetable itself can be
accessed by VM. This is done in pt_bind by updating
the "pagetable of pagetables" and we want this mapping
to match other mappings to the l1 pagetable.

Change-Id: I7b506fd75553917fdc1abd25b55e4b2f25ccbf8d

11 years agoarm:perform copy operation using same cacheability. 48/848/2
Kees Jongenburger [Wed, 25 Sep 2013 08:25:02 +0000 (10:25 +0200)]
arm:perform copy operation using same cacheability.

When copying data from cacheable memory also use cacheable
attributes when creating temporary mappings.

Change-Id: I0e8380293fb4edaafba49f6262983ad86a5350c5

11 years agoarm:make the MMU fetch pagetable data through the caches. 47/847/2
Kees Jongenburger [Wed, 25 Sep 2013 09:12:46 +0000 (11:12 +0200)]
arm:make the MMU fetch pagetable data through the caches.

Change-Id: Ibd7b66558c369d0c0792c02801562580d255fa1f

11 years agoarm:caching add methods to flush the data and unified cache 46/846/2
Kees Jongenburger [Wed, 25 Sep 2013 08:53:41 +0000 (10:53 +0200)]
arm:caching add methods to flush the data and unified cache

Change-Id: Idb066dd01afbdbccd684bcdcf4af88b4b1ef870a

11 years agoarm:caching define a new caching combination and use that. 45/845/2
Kees Jongenburger [Wed, 25 Sep 2013 08:19:46 +0000 (10:19 +0200)]
arm:caching define a new caching combination and use that.

This combo was taken from the startware examples.

Change-Id: I9ef8d4f4706124a6aaec72f5da65b5301c5c2301

11 years agoarm:caching mark memory as cacheable. 59/859/1
Kees Jongenburger [Fri, 13 Sep 2013 07:44:26 +0000 (09:44 +0200)]
arm:caching mark memory as cacheable.

kernel mappings that are not marked as  VMMF_UNCACHED are now mapped
as cacheable.

11 years agoarm:caching introduce _CACHED defines 58/858/1
Kees Jongenburger [Fri, 13 Sep 2013 07:40:20 +0000 (09:40 +0200)]
arm:caching introduce _CACHED defines

Introduce ARM_VM_SECTION_CACHED and ARM_VM_PTE_CACHED to ensure we
are using the correct caching flags everywhere.

11 years agoarm:clarify pagetable code. 57/857/1
Kees Jongenburger [Fri, 13 Sep 2013 07:48:45 +0000 (09:48 +0200)]
arm:clarify pagetable code.

Make it clear that non RW mapped memory is mapped RO.

11 years agoarm:document arm vm.h 56/856/1
Kees Jongenburger [Tue, 10 Sep 2013 08:54:01 +0000 (10:54 +0200)]
arm:document arm vm.h

11 years agoarm:define the physical memory range for the omap. 44/844/2
Kees Jongenburger [Wed, 25 Sep 2013 07:47:27 +0000 (09:47 +0200)]
arm:define the physical memory range for the omap.

Change-Id: I256dbeb58fec5b95b48d521054810fe478fce67f

11 years agoarm:vm map free running clock uncached. 36/836/2
Kees Jongenburger [Tue, 10 Sep 2013 09:29:19 +0000 (11:29 +0200)]
arm:vm map free running clock uncached.

11 years agoarm:allow to lookup physical addresses of sections. 43/843/2
Kees Jongenburger [Wed, 25 Sep 2013 08:36:07 +0000 (10:36 +0200)]
arm:allow to lookup physical addresses of sections.

Change-Id: If4716b81cceee5d8b30d5f103b772b0ac99fc807

11 years agoblock-dev:add additional sanity check. 42/842/2
Kees Jongenburger [Tue, 24 Sep 2013 11:54:02 +0000 (13:54 +0200)]
block-dev:add additional sanity check.

Change-Id: Ib5b7cd93a50726b95c2e1b4c7eeedfefc824dd9c

11 years agoarm:misc fix remove const modifier for value that changes. 41/841/2
Kees Jongenburger [Wed, 25 Sep 2013 08:34:04 +0000 (10:34 +0200)]
arm:misc fix remove const modifier for value that changes.

Change-Id: I4ac96acdc66ea203a339108225c07c68959556c0

11 years agoarm:use correct address mask for sections. 35/835/2
Kees Jongenburger [Tue, 27 Aug 2013 12:32:23 +0000 (14:32 +0200)]
arm:use correct address mask for sections.

11 years agoarm:timer changes. 34/834/2
Kees Jongenburger [Tue, 27 Aug 2013 12:23:34 +0000 (14:23 +0200)]
arm:timer changes.

* Allow to change the timer frequency using the hz paramter.
* Unmask the interrupt only after registering the handler.
* Pass the hz parameter in the command line.

11 years agoposix-test:fix times test 33/833/2
Kees Jongenburger [Fri, 13 Sep 2013 09:48:40 +0000 (11:48 +0200)]
posix-test:fix times test

Applications should use sysconf(_SC_CLK_TCK) to determine the number
of clock ticks per second as it may  vary  from system to system.

11 years agox86 hd image creator 32/832/5
Ben Gras [Tue, 24 Sep 2013 13:15:55 +0000 (15:15 +0200)]
x86 hd image creator

A script that creates a HD image ready to be booted by an x86
emulator, ready to work in a crossbuild environment.

It's really just for qemu/kvm as there's no boot code in
the MBR and no bootloader installed so we rely on the in-kvm
multiboot implementation for now. This is very convenient for
passing args too.

To minimize reliance on external tools, we use the Minix
'partition' utility to write the partition table of the HD
image, which therefore has to be compiled natively.

. new script releasetools/x86_hdimage.sh
. natively compile minix 'partition' utility
. make <machine/partition.h> 64-bit safe for it

Change-Id: If645b4691536752271e0b8a8ed59a34f248dace4

11 years agorelease.sh: simplify by removing usb option 55/855/2
Ben Gras [Wed, 25 Sep 2013 12:22:27 +0000 (12:22 +0000)]
release.sh: simplify by removing usb option

. relies on bios_wini which is long gone

Change-Id: I95257b6204cc6d928abcbd8492808b4b6450a99e

11 years agoremove unused hdemu release mode 31/831/1
Ben Gras [Tue, 24 Sep 2013 10:39:18 +0000 (12:39 +0200)]
remove unused hdemu release mode

Change-Id: I3ca497eda3c0042cafb8ba88fe16202221823a9c

11 years agokernel: fixes for DEBUG_DUMPIPC mode 30/830/4
Ben Gras [Tue, 24 Sep 2013 08:32:11 +0000 (10:32 +0200)]
kernel: fixes for DEBUG_DUMPIPC mode

. add dependency of headers on debug.d
. put the generated headers in the right dir
. also resilience against future ELAST duplicate errno

Change-Id: I9d10702c8e09699a40138193f14defe902399da6

11 years agoi2c: increase read/write timeout 27/827/4
Thomas Cort [Mon, 16 Sep 2013 23:16:12 +0000 (19:16 -0400)]
i2c: increase read/write timeout

The sht21 temperature and humidity sensor holds the i2c bus while
an ADC conversion is in progress. For example, a temperature
measurement is requested, a read operation is started, and the
sht21 doesn't respond to the read request until the result of
the measurement is ready. The conversion time isn't constant.
On rare occations (one in hundreds of samples) the timeout in the
i2c driver expires returning an error.

The example code from Sensirion, the sht21's manufacturer, suggests
a bus timeout of 1 second to accommodate the sht21. This commit
increases the bus timeout to 1 second. The timeout is only reached
when chips do not respond normally, so the change doesn't affect the
performance of any other drivers.

Change-Id: I57b0f958a5d0b69b221af380b771fe67401ff604

11 years agolibi2cdriver: add functions for IC register access 26/826/4
Thomas Cort [Mon, 16 Sep 2013 17:33:00 +0000 (13:33 -0400)]
libi2cdriver: add functions for IC register access

Many i2c device drivers used similar code to access registers on
the ICs they drive. This commit implements that functionality in
libi2cdriver and updates the drivers to use the library instead of
their own register access functions. The net result is 375+ fewer
lines of code and less work for people developing new drivers.

The two exceptions were cat24c256 and parts of tda19988. They access
the bus in uncommon ways. It doesn't make sense at this time to
move their read/write functions into libi2cdriver.

Change-Id: Id8280b71af33b710a49944d7f20a7262be9f5988

11 years agobmp085: remove duplicate code 25/825/3
Thomas Cort [Sun, 15 Sep 2013 23:56:48 +0000 (19:56 -0400)]
bmp085: remove duplicate code

A copy and paste error caused a few lines of code to be duplicated.
This patch removes the excess code.

Change-Id: I7313efb537e2a4102fb25ce05782e82ae0c84285

11 years agotda19988: add missing blockdriver_announce() call 24/824/3
Thomas Cort [Sun, 15 Sep 2013 23:48:29 +0000 (19:48 -0400)]
tda19988: add missing blockdriver_announce() call

To provide EDID to fb, the TDA19988 implements the block device
protocol with libblockdriver. To properly use the library,
blockdriver_announce() should be called by the driver.

Issue reported by David van Moolenbroek

Change-Id: Id55d159d91502a9afac5c1d4de0fee1e8945b5c1

11 years agoPrevent make -C gnu from installing files in / 22/822/3
Lionel Sambuc [Mon, 16 Sep 2013 11:42:15 +0000 (11:42 +0000)]
Prevent make -C gnu from installing files in /

This is done by adding a dependency on ${GNUHOSTDIST:H}/.gitignore
for both realall and realinstall targets.

Change-Id: If086a6c02ab20a8cd4bbb3597d7203cf22dce796

11 years agotest70: reduce ITERATIONS 23/823/1
Ben Gras [Mon, 16 Sep 2013 15:33:44 +0000 (15:33 +0000)]
test70: reduce ITERATIONS

. full number was needed to reliably trigger the race
  condition
. takes a bit too long (7 mins on fast x86 hardware) for a
  condition that "can't" happen again, so let's cut the iteration
  count and trust that the test will trigger soon enough for
  a similar condition in the future.

Change-Id: I2d38b87c25327adbbff91b7db6191648aa1dd8fd

11 years agovm: enable filemap=1 by default 11/811/3
Ben Gras [Fri, 13 Sep 2013 12:05:50 +0000 (12:05 +0000)]
vm: enable filemap=1 by default

. turns on mmap() functionality for files by default
. also causes exec() to use it to map in executables
  without copying and with sharing those pages with the
  disk cache and other instances of the executable

Change-Id: Idb94dfe110eed916cf83b12c45e1a77241a2cee5

11 years agoinet: Reply to TASK messages even if we're waiting for STAT reply 10/810/1
Lubomir Rintel [Sun, 5 Aug 2012 14:33:20 +0000 (16:33 +0200)]
inet: Reply to TASK messages even if we're waiting for STAT reply

As they can come anytime upon receipt of interrupt by the ethernet driver. This
is the same thing as is done for CONF replies.

A simple test case would be the following via ssh connection:
while getaddr; do :; done

Change-Id: I68f4403360b3eefe67fc602c4855ca1abd649475

11 years agovirtio-net: acknowledge used features 08/808/1
Aurelien Jarno [Sun, 28 Apr 2013 15:06:33 +0000 (17:06 +0200)]
virtio-net: acknowledge used features

According to the virtio specifications, the host present the supported
features to the guest, and the guest should answer woth the features it
supports. This allows the host to disable support for features that the
guest is not going to use.

Minix tells to the host it doesn't support any extended features, while
it uses at least VIRTIO_NET_F_MAC and VIRTIO_NET_F_CTRL_VQ. For the
latter it seems it only allocate the queue while not using it later.
However starting with QEMU 1.4.0, with multiqueue support added, the
control queue is not allocated on the host side if the guest doesn't
tell it supports this feature. This cause virtio-net to crash on the
Minix side.

This patch fixes that by correctly telling the features that are
used by the Minix guest for more than printing a debug message. This
fixes virtio-net on QEMU 1.4.x.

Change-Id: I8bbf757c09d24e0f5fe5835531a1c9203b714bd7

11 years agovm: make WARNS=5 proof 04/804/3
Ben Gras [Tue, 20 Aug 2013 12:02:33 +0000 (12:02 +0000)]
vm: make WARNS=5 proof

Change-Id: I737ded223daf04f1c0c85a2e8e6b36c8fdcd07db

11 years agobugfix: build.sh cross-compile on NetBSD host 06/806/1
Lionel Sambuc [Thu, 5 Sep 2013 14:03:46 +0000 (16:03 +0200)]
bugfix: build.sh cross-compile on NetBSD host

As kindly reported by Nishimura Toru, the fix is quite simple.

cf: https://groups.google.com/d/msg/minix3/v3yejSogDqY/0TZxzpIHOzUJ

Change-Id: Ibdba8847982e93872217a6e736f50d4c90630e7a

11 years agogpio: port to am335x 01/801/1
Thomas Cort [Tue, 3 Sep 2013 11:47:59 +0000 (07:47 -0400)]
gpio: port to am335x

 * port libgpio to am335x.
 * increase NR_IRQ to 16 to avoid too many IRQs requested error.
 * move gpio binary to /sbin (that's where mount looks for drivers).
 * fix bug that re-enabled banks that were disabled due to bad revision.
 * fix padconf masks for dm37xx in gpio driver (should be 16-bit).
 * fix a few typos in README.txt and comments.

Change-Id: I32374415a97135174c5224f76374a870909fa90c

11 years agoenable fatal warnings 94/794/14
Ben Gras [Mon, 26 Aug 2013 16:43:16 +0000 (16:43 +0000)]
enable fatal warnings

. kernel: fix some arm warnings
. turn of fatal warnings for texinfo

Change-Id: I71e228c87a7226adbbd940ccb1439e042d7b6e9a

11 years agolibarchive: use -isystem for /usr/include 97/797/2
Ben Gras [Fri, 30 Aug 2013 13:44:47 +0000 (13:44 +0000)]
libarchive: use -isystem for /usr/include

. 'fixes' warnings that are in these headers, but normally aren't
   emited as they're system headers

Change-Id: Ibd20343eae51770cef71116bbda0d9141441ec54

11 years agokernel: move do_padconf and add a test case 96/796/1
Thomas Cort [Thu, 29 Aug 2013 12:56:27 +0000 (08:56 -0400)]
kernel: move do_padconf and add a test case

padconf is specific to arm, so it's being moved to kernel/arch/earm.

Add a test case to ensure the proper error is returned on non-ARM
systems.

Change-Id: I07ebbe64825d59bc0ef9c818d3d54891dafb4419

11 years agokernel: add padconf kernel call 95/795/1
Thomas Cort [Wed, 28 Aug 2013 04:43:45 +0000 (00:43 -0400)]
kernel: add padconf kernel call

On the AM335X, writes to the padconf registers must be done in privileged
mode. To allow userspace drivers to dynamically change the padconf at
runtime, a kernel call has been added.

Change-Id: I4b25d2879399b1785a360912faa0e90b5c258533

11 years agofix a few more minix specific warnings 93/793/8
Ben Gras [Mon, 26 Aug 2013 16:43:05 +0000 (16:43 +0000)]
fix a few more minix specific warnings

. also disable stack protection feature for gcc,
  causes build errors for pkgsrc gcc on minix

Change-Id: I1c6e2bcb4d948098d642543d7b2711284ee55c72

11 years agoweatherstation: BeagleBone Weather Cape demo app. 91/791/3
Thomas Cort [Mon, 26 Aug 2013 02:07:42 +0000 (22:07 -0400)]
weatherstation: BeagleBone Weather Cape demo app.

The BeagleBone Weather cape enhances the BeagleBone's capabilities
by providing environment sensors (temperature, humidity, pressure,
and ambient light level).

The weatherstation demo is a port of the bonescript weatherstation
to Minix. It provides a nice visual display of the sensor data in
a web browser.

The code is installed to /usr/share/beaglebone/weather on 'earm'
and an embedded web server is started at boot time on port 80
when the cape is attached. Further details are provided in the
README.txt file.

Change-Id: I1596a2b66b213762ace26c0c750c8154c76b5c6e