Commit Graph

163297 Commits

Author SHA1 Message Date
jmmv
4d9b8b6a50 Add the tests.tgz set
This adds a new tests.tgz set to releases which includes all the tests
for the system.  It is important to note that this set does not rely on
comp.tgz: a user of the system can run the tests without having the
development tools installed, which can be useful in a production machine.
2007-11-12 15:06:45 +00:00
jmmv
dd2f8250cc Add the bsd.test.mk file
This file simplifies the build of test programs, either written in C++
or in sh.  It hides the internals of atf, e.g. by silently linking
against -latf or calling atf-compile.

It also takes care of installing an Atffile for each new test directory.
2007-11-12 15:05:15 +00:00
jmmv
12408017c4 Add the ability to build multiple programs from a single directory
This adds support for a new set of variables, PROGS and PROGS_CXX, that
allow the developer to build multiple different programs from a single
source directory.
2007-11-12 15:04:35 +00:00
jmmv
dc55116c56 Add the ATF documentation
This change adds the ATF manual pages that are not tied to any specific
tool nor library.  It also adds some distribution documentation to the
system, as this is linked to by the manual pages (plus we have to install
the license text to comply with its terms).
2007-11-12 15:04:02 +00:00
jmmv
ce8090f1b4 Add the atf configuration files
This change adds the directory used by atf to look for its configuration
files.
2007-11-12 15:02:57 +00:00
jmmv
78bb0388d3 Add the ATF data files
This change adds example files shipped with ATF as well as other data files
required to support some of its features.
2007-11-12 15:01:50 +00:00
jmmv
9d5a9c0d86 Add the atf tools
This adds reachover Makefiles to build and install the atf tools.
Some are public, thus installed in /usr/bin, and others are internal
and therefore installed in /usr/libexec.
2007-11-12 15:00:00 +00:00
jmmv
fa5c7fcfae Add the atf shell subroutines
This adds the atf shell subroutines: i.e. the code that implements test
programs and is shared among all of them to avoid duplication.
2007-11-12 14:57:34 +00:00
jmmv
096ebe7672 Add the libatf library
This adds reachover Makefiles to build the libatf library and enables it in
the parent Makefile.

Things to review in this change:

* Add proper version numbers in the shlib_version files.

* Is libatf properly listed in lib/Makefile?  It theoretically needs
  libstdc++, but the resulting binary library is not linked against it.
2007-11-12 14:56:24 +00:00
jmmv
2965cbca98 Add the atf host tools
This adds reachover Makefiles to build the atf tools required during a
cross-build.
2007-11-12 14:54:43 +00:00
jmmv
f9669addbb Change the primary docs to mention atf's import
Describe atf (in doc/3RDPARTY) as a third-party project imported into
NetBSD and mention who is responsible for it (in doc/RESPONSIBLE).
2007-11-12 14:53:32 +00:00
jmmv
866b001ea5 Import of ATF 0.3
Initial import of the Automated Testing Framework, version 0.3, a project
that provides a framework to easily implement test cases for the NetBSD
operating system and some tools to run them and generate reports with the
results.

Note that this is just the framework (libraries and tools), which is and
will be maintained externally.  The tests themselves will come later, will
be put under the 'tests' hierarchy and will be managed exclusively under
the NetBSD CVS tree given that they are tied to the operating system.

The work done until version 0.1 was sponsored by the Google Summer of Code
2007 program and mentored by martin@.
2007-11-12 14:50:50 +00:00
xtraeme
4ffff27911 Implement DIOCGSTRATEGY and DIOCSSTRATEGY for dkctl <foo0> strategy. 2007-11-12 14:45:23 +00:00
pooka
70981e62b1 Move putter code from directly under dev/ to dev/putter/
no functional change
2007-11-12 14:30:55 +00:00
ad
9bf7522dd1 Call ttwakeup() with tty_lock held. 2007-11-12 14:20:40 +00:00
ad
ad89ae5a21 Revision 1.42 was lost. Pointed out by Nicolas Joly:
This was using mutex_exit where mutex_enter was required.
2007-11-12 14:11:47 +00:00
nisimura
2820af119e - fix initblk tlen/rlen field values.
- fix pcn_send() txd xd1 member.
2007-11-12 14:03:35 +00:00
skrll
c1e4ee94be Fix kernel profiling on HPPA.
- stop gcc emitting stuff that HPUX requires
- don't use splhigh() in MCOUNT_ENTER as a call to _mcount will be
  generated at the moment. Disable interrupts in hardware instead.
- Fix _PROF_PROLOGUE to save/restore all the register args when calling
  _mcount.
- Fixup LEAF_ENTRY to dtrt (I think) in the GPROF case.
- Provide LEAF_ENTRY_NOPROFILE and sprinkle its use where i) profiling
  causes problems, e.g. trap handlers, and ii) where it just doesn't
  make sense, e.g. start.
2007-11-12 12:58:10 +00:00
pooka
78a22b918c No more puffs_transport.c, as noted by Kurt Schreiner on current-users.
(this lkm doesn't work for now, but at least MKPUFFS=yes builds
won't fail)
2007-11-12 12:31:15 +00:00
njoly
2ef45bfade Add missing hpet@acpi. 2007-11-12 08:42:40 +00:00
matt
2cab8950e4 Don't static init simplelock (back out those changes). 2007-11-12 06:14:57 +00:00
matt
90ef495f4d use __SIMPLELOCK_UNLOCKED, not SIMPLELOCK_INITIALIZER 2007-11-12 06:07:43 +00:00
nisimura
aca73b663f - cache insns accept unaligned addresses to go.
- correct dcache_line_size range detect errors in inv()/wbinv().
- make inv() unaligned case friendly.
2007-11-12 05:29:22 +00:00
jmcneill
1869ce861e Add pad(4) 2007-11-12 02:22:11 +00:00
matt
11910619f7 Change some initialization of static queues to compile time.
(xxx_INIT to xxx_HEAD_INITIALIZER).  Drop code which inits
non-auto (global or static) variables to 0 since that's
already implied by being non-auto.  Init some static/global
cpu_simple_locks at compile time.
2007-11-11 23:22:23 +00:00
christos
f4f95f573f simplify and fix the combination code. Hi pooka. 2007-11-11 22:44:12 +00:00
macallan
6a8b9d03fb mention r128fb 2007-11-11 22:11:28 +00:00
jmcneill
b6ed7a1236 Implement volume controls for pseudo audio device. 2007-11-11 19:53:38 +00:00
pooka
96689562e7 * include puffs msgif instead of internal sys header (yea, still not
correct, but at least better)
* minor cleanup
2007-11-11 19:49:11 +00:00
christos
dfdca25ef7 report the proper stack size on 32 bit emulations. 2007-11-11 18:29:03 +00:00
christos
2e3ee66dc7 regen 2007-11-11 18:28:18 +00:00
pooka
b0106b7eaf Don't overload "attributes last read" for the symlink cache,
use a separate variable.
2007-11-11 18:06:35 +00:00
jmcneill
0994f0a98c Enable pad(4) 2007-11-11 18:06:24 +00:00
bouyer
d64cd0dda9 Move a delay() inside a loop, so that the 1s delay is really 1s. 2007-11-11 18:03:46 +00:00
jmcneill
7d666065e7 Enable pad(4) 2007-11-11 17:56:10 +00:00
jmcneill
a5bfefb1b0 Add support for /dev/padN devices 2007-11-11 17:54:47 +00:00
jmcneill
8a1105f670 Note addition of pad(4) 2007-11-11 17:50:23 +00:00
dsl
ab78fc54c0 Don't include opt_xxx when _LKM is defined.
Should fix build of netbsd32 as a lkm
2007-11-11 17:48:51 +00:00
jmcneill
77deea4733 Add man page for pseudo-audio device driver. 2007-11-11 17:45:18 +00:00
jmcneill
23526fe3a9 Add pseudo audio device driver. With this pseudo-device, audio played back
via the standard audio interfaces is redirected back to userland as raw
PCM data on /dev/padN.

One example usage is to stream audio to an AirTunes compatible device using
rtunes (http://www.nazgul.ch/dev_rtunes.html), ie:

	$ rtunes - < /dev/pad0
	$ mpg123 -a /dev/sound1 blah.mp3

Another option is to capture audio output from eg. Real Player, by simply
instructing Real Player to output to /dev/sound1, and running:

	$ cat /dev/pad0 > blah.pcm
2007-11-11 17:37:45 +00:00
cube
66a59dcc4f Don't defattr machinearch if it's NULL. Pointed out by
Juergen Hannken-Illjes.
2007-11-11 17:35:27 +00:00
pooka
f48aa71ad4 fix build (hi rmind!) 2007-11-11 17:18:47 +00:00
pooka
db2e7d6a05 include putter only if it's actually defined 2007-11-11 16:58:02 +00:00
pooka
7744bdf5d3 default to no debug 2007-11-11 16:57:36 +00:00
isaki
3a7a8e72de x68k's floppy is 8*2 sect/cyl, not 18*2 sect/cyl. 2007-11-11 13:23:07 +00:00
plunky
7cca9485cc convert device printf() usages to aprint_xxxx() 2007-11-11 12:59:02 +00:00
plunky
8658057a5d bluetooth stack now keeps a device_t and passes it to device callbacks,
update bcsp to new reality
2007-11-11 12:54:23 +00:00
agc
f2e9f627b5 Only use the bottom 20bits for an inode number to prevent the inode number creeping out of range for fts 2007-11-11 09:31:31 +00:00
agc
762d3dee18 Use the new virtual inode number, which is calculated at directory entry
insertion time, to prevent fts thinking that we have directory cycles.
2007-11-11 09:25:37 +00:00
agc
8abe1b3c75 Include a (random) inode number in the virtual directory information that
is held. Return this as part of the virtual entry information.

Prevents problems with fts code thinking that some directories create
a cycle.
2007-11-11 09:23:29 +00:00