Commit Graph

194233 Commits

Author SHA1 Message Date
tsutsui c5bd6bbaa2 Use fixed pci_intr_handle_t per device number regardless of pin and swiz.
Tested the following multifunction card and devices over ppb(4)
on Express5800/230 (JC94):

---
uhci0 at pci0 dev 4 function 0: VIA Technologies VT83C572 USB Controller (rev. 0x61)
uhci0: interrupting at int C
usb0 at uhci0: USB revision 1.0
uhci1 at pci0 dev 4 function 1: VIA Technologies VT83C572 USB Controller (rev. 0x61)
uhci1: interrupting at int C
usb1 at uhci1: USB revision 1.0
ehci0 at pci0 dev 4 function 2: VIA Technologies VT8237 EHCI USB Controller (rev. 0x63)
ehci0: interrupting at int C
ehci0: dropped intr workaround enabled
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1
usb2 at ehci0: USB revision 2.0
fwohci0 at pci0 dev 4 function 3: VIA Technologies VT6306 IEEE 1394 Host Controller (rev. 0x46)
fwohci0: interrupting at int C
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:01:08:00:37:02:79:4f
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 1024 bytes.
fwohci0: max_rec 1024 -> 2048
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
vge0 at pci0 dev 4 function 4: VIA VT612X Gigabit Ethernet (rev. 0x11)
vge0: interrupting at int C
vge0: Ethernet address: 00:01:08:00:b1:71
ciphy0 at vge0 phy 1: Cicada CS8201 10/100/1000TX PHY, rev. 2
ciphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 :
---
ppb0 at pci0 dev 4 function 0: Digital Equipment DC21154 PCI-PCI Bridge (rev. 0x05)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
ex0 at pci1 dev 4 function 0: 3Com 3c980C-TXM 10/100 Ethernet (rev. 0x78)
ex0: interrupting at int C
ex0: MAC address 00:01:03:ce:74:48
bmtphy0 at ex0 phy 24: Broadcom 3c905C internal PHY, rev. 7
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ex1 at pci1 dev 5 function 0: 3Com 3c980C-TXM 10/100 Ethernet (rev. 0x78)
ex1: interrupting at int C
ex1: MAC address 00:01:03:ce:74:49
bmtphy1 at ex1 phy 24: Broadcom 3c905C internal PHY, rev. 7
bmtphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 :
2010-11-02 16:03:47 +00:00
tsutsui 0df969c624 Include files.ieee1394. 2010-11-02 15:50:09 +00:00
joerg 67c9d7de30 Replace configure.ac with a stripped down version for later use by
src/tools.
2010-11-02 15:40:58 +00:00
joerg 5c6654a627 Use libc version of SHA256 on NetBSD. 2010-11-02 15:35:38 +00:00
joerg 4d1abfb29e Import stripped down version of xz-5.0.0. All non-public domain parts
are removed to provide a prestine version.
2010-11-02 15:20:20 +00:00
pooka 37653ea90a KASSERT we don't kpause indefinitely without interruptability.
XXX: using timo == 0 to mean "sleep as long as you like, and forever
if you're really tired" is not the smartest interface considering
the the hz/n idiom used to specify timo.  This leads to unwanted
behaviour when hz gets below some impossible-to-know limit.  With
a usec2ticks() routine it at least be a little more tolerable.
2010-11-02 15:17:37 +00:00
pooka 7d421d6903 Don't sleep forever if hz < 25.
from Alessandro Forin
2010-11-02 15:09:52 +00:00
njoly 46b3723883 Do substitute __TESTSDIR__ when generating atf(7) man page. 2010-11-02 14:41:32 +00:00
macallan e8b84b908e when drawing characters by software make sure the engine is idle before
accessing video memory
2010-11-02 14:32:58 +00:00
uebayasi c44ce909bc Oops, fix build !DIAGNOSTICS again. 2010-11-02 13:09:29 +00:00
uebayasi a712f1e99e Fix DIAGNOSTIC build. Pointed out by Juergen Hannken-Illjes. 2010-11-02 12:21:07 +00:00
njoly e65e925989 Fix typo in date. 2010-11-02 12:10:13 +00:00
uebayasi 5b6f4fcf70 Fix build of XScale. 2010-11-02 06:33:22 +00:00
uebayasi 0db7ff2992 Don't build flash because it's not implemented. 2010-11-02 06:31:48 +00:00
uebayasi 0cc704327a Fix build of evbarm. 2010-11-02 06:07:05 +00:00
enami b447d18264 - Simplify the code
- Reword the comment.
2010-11-02 03:44:05 +00:00
phx 4e6c889e19 Fixed overflow in cpu clock calculation and printing of the cpu revision. 2010-11-01 19:00:08 +00:00
pooka dd96c7dab8 Make the shovel threads resilient to file server exit. 2010-11-01 16:27:07 +00:00
pooka f8f090bd5e regen: whitespace blues 2010-11-01 16:22:37 +00:00
pooka 8553c5887b Align comment column in output, no functional change. 2010-11-01 16:21:29 +00:00
christos 29f0bfc6b2 From Anon Ymous:
Send the SIGALRM to the correct process when we timeout. See the note
in src/etc/rc regarding RC_PID.

The former code would leave you with a root shell when the prompt
timed out (if the tty is marked secure) while continuing the boot
process in another shell.  This was easily hidden if you started
xdm(1) at boot, while the root shell remains on another tty
(accessible with CTL-ALT-F1).
2010-11-01 14:42:08 +00:00
christos a8684509ca add a cgd_stop function 2010-11-01 14:41:11 +00:00
pooka 110455ef9e Create the process we use later in the test. Otherwise cwd doesn't
go right and the test fails because of attempting to create files
in the wrong directory.
2010-11-01 14:04:02 +00:00
pooka 5629968a95 Missed a few symbols in previous ...
Also, reorganize rumpuser header inclusion to make sure problem is
caught already by the compiler.
2010-11-01 13:55:19 +00:00
pooka 8fc7f9077e Make librumpuser linkage once again free of librump.
problem pointed out by <he>
2010-11-01 13:49:10 +00:00
skrll 702f3de6e7 u_intNN_t -> uintNN_t
Same code before and after.
2010-11-01 06:41:50 +00:00
enami ee9d44a7c1 Double the array only when really necessary. Otherwise memory will be
exhausted if user modifies the variable envrion itself repeatedly..
2010-11-01 02:41:27 +00:00
mrg 4de66268a7 add support for >2TB raid devices.
- add two new members to the component label:
     u_int numBlocksHi
     u_int partitionSizeHi
  and store the top 32 bits of the real number of blocks and
  partition size.  modify rf_print_component_label(),
  rf_does_it_fit(), rf_AutoConfigureDisks() and
  rf_ReconstructFailedDiskBasic().

- call disk_blocksize() after disk_attach() [ from mlelstv ]

- shift the block number relative to DEV_BSHIFT in raidstart()
  and InitBP() so that accesses work for non 512-byte devices.
  [ from mlelstv ]

- update rf_getdisksize() to use the new getdisksize() [ from
  mlelstv.  this part needs a separate change for netbsd-5. ]


reviewed by: oster, christos and darrenr
2010-11-01 02:35:24 +00:00
njoly 9a47829364 Add lua debug files. 2010-10-31 23:29:16 +00:00
pgoyette 4b71a48296 Fix format strings so it builds on amd64 2010-10-31 22:33:16 +00:00
pooka bc79809067 Since rump implicit threads now bind to proc1 instead of proc0, we
need our shovel threads bound to proc1 instead of proc0 in order
to have access to the same set of descriptors as the implicit thread
which opens the fd in the rump kernel.

Also, sprinkle some printfs and make failure more dramatic.

fixes the puffs tests.  pointed out by pgoyette.
2010-10-31 22:05:35 +00:00
stacktic fdd702c327 Typo in usage --export-keys -> --export-key 2010-10-31 20:05:04 +00:00
stacktic df2d91557b PR/42435 : Check pointers against NULL to avoid dereferencing them 2010-10-31 19:45:53 +00:00
agc 22b68feadb Make bz2 {de,}compression dependent on the header file being available.
Fixes an error reported by Anthony Bentley when compiling on OpenBSD,
which apparently lacks bzlib.h (and bz2).

Tests run to completion successfully both with and without bz2 being
available.
2010-10-31 18:31:03 +00:00
snj 217b77c094 fix typo 2010-10-31 17:17:45 +00:00
njoly cbfcc07308 +resize_ffs.debug 2010-10-31 16:31:31 +00:00
mbalmer 2d5f2730a5 Fix file lists for amd64 and sparc64 since on these arches 32bit versions of
the libraries are built as well.
2010-10-31 16:31:12 +00:00
skrll 0e5fcee3e5 RCSId police. 2010-10-31 15:47:53 +00:00
he 4613532253 There's apparently a circular dependency between -lrump and -lrumpuser.
This poses problems when linking statically, as for sun2.  Add -lrump
also after -lrumpuser, so that this links statically as well.
2010-10-31 13:54:31 +00:00
mbalmer 6e18c7b4a5 Note the Lua import. Thanks jmmv for the reminder 2010-10-31 12:09:10 +00:00
mbalmer aa94cc597c Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.
2010-10-31 11:52:50 +00:00
wiz 4958aa2ca5 Various improvements. 2010-10-31 11:39:46 +00:00
mbalmer 2c6be0820c descend into the lua subdirectory 2010-10-31 11:29:06 +00:00
mbalmer 97213731c9 Lua build infrastructure 2010-10-31 11:26:01 +00:00
mbalmer ee59b191f4 adjust the Lua configuration to our needs 2010-10-31 11:19:42 +00:00
mbalmer 33fc08400c add teh script used to prepare the source code 2010-10-31 11:18:20 +00:00
mbalmer dbec530483 Import the (unaltered) Lua 5.1.4 source distribution. 2010-10-31 11:16:48 +00:00
mbalmer debeea5823 Accidentally these files were imported one level to high, sorry about that. 2010-10-31 11:14:02 +00:00
mbalmer 56288e6a3c Import the (unaltered) Lua 5.1.4 distribution. 2010-10-31 11:08:37 +00:00
nisimura 1206eed28e Update copyright notice. This code was completely replaced with
Frank Wille's effort and has no substance made by me anymore.
2010-10-31 11:08:06 +00:00