Commit Graph

238034 Commits

Author SHA1 Message Date
christos
a786eb43af PR/50295: Fix clock_nanosleep return value documentation. 2015-10-02 19:52:49 +00:00
christos
3415810083 PR/50295: clock_nanotime() should not set errno, but return the error. 2015-10-02 19:47:08 +00:00
christos
aef619cb8a put back the DTRACE macros 2015-10-02 17:28:57 +00:00
christos
75a404098e we don't need any of this now. 2015-10-02 17:13:58 +00:00
christos
46b66d3b89 Merge conflicts 2015-10-02 17:13:32 +00:00
christos
d1b373115b Adapt to NetBSD modules and link set access.
XXX: We don't have an event system so that we can issue callback that
     will be run on construction or destruction to enable and disable probes
XXX: We don't have a way to use link_sets across modules properly.
2015-10-02 16:59:23 +00:00
christos
db70f1818e Change SDT (Statically Defined Tracing) probes to use link sets so that it
is easier to add probes. (From FreeBSD)
2015-10-02 16:54:15 +00:00
bouyer
df886f2958 Based on suggestion from jared, redo previous using a specific print callback
to avoid the extra line. Now output looks like:
gpio0 at awingpio0 port B: 18 pins
gpio1 at awingpio0 port C: 25 pins
gpio2 at awingpio0 port D: 28 pins
gpio3 at awingpio0 port E: 12 pins
gpio4 at awingpio0 port G: 12 pins
gpio5 at awingpio0 port H: 28 pins
gpio6 at awingpio0 port I: 22 pins
2015-10-02 16:04:40 +00:00
bouyer
9a50fed12e Print the port name when gpio(4) attaches, makes it much easier to find
what port is connected to what gpio instance:
gpio0 at awingpio0: 18 pins
gpio0: port B
gpio1 at awingpio0: 25 pins
gpio1: port C
gpio2 at awingpio0: 28 pins
gpio2: port D
gpio3 at awingpio0: 12 pins
gpio3: port E
gpio4 at awingpio0: 12 pins
gpio4: port G
gpio5 at awingpio0: 28 pins
gpio5: port H
gpio6 at awingpio0: 22 pins
gpio6: port I
2015-10-02 14:06:02 +00:00
msaitoh
8113600ff9 Fix comiple error. plum(4) is not PCI... 2015-10-02 09:05:33 +00:00
mbalmer
2b8a421a52 Fix case. 2015-10-02 09:01:23 +00:00
msaitoh
2c52906dd1 Fix a bug that the TPH ST Table is wrongly decoded. Found by llvm. 2015-10-02 07:04:17 +00:00
msaitoh
9cc673ab14 x86: Add PCI Extended Configuration Space support.
pci(3): Decode Extended Capability in PCI Extended Configuration Space.
2015-10-02 05:33:07 +00:00
msaitoh
605f564f52 PCI Extended Configuration stuff written by nonaka@:
- Add PCI Extended Configuration Space support into x86.
- Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1
  if it isn't accessible.
- Decode Extended Capability in PCI Extended Configuration Space.
  Currently the following extended capabilities are decoded:
   - Advanced Error Reporting
   - Virtual Channel
   - Device Serial Number
   - Power Budgeting
   - Root Complex Link Declaration
   - Root Complex Event Collector Association
   - Access Control Services
   - Alternative Routing-ID Interpretation
   - Address Translation Services
   - Single Root IO Virtualization
   - Page Request
   - TPH Requester
   - Latency Tolerance Reporting
   - Secondary PCI Express
   - Process Address Space ID
   - LN Requester
   - L1 PM Substates
  The following extended capabilities are not decoded yet:
   - Root Complex Internal Link Control
   - Multi-Function Virtual Channel
   - RCRB Header
   - Vendor Unique
   - Configuration Access Correction
   - Multiple Root IO Virtualization
   - Multicast
   - Resizable BAR
   - Dynamic Power Allocation
   - Protocol Multiplexing
   - Downstream Port Containment
   - Precision Time Management
   - M-PCIe
   - Function Reading Status Queueing
   - Readiness Time Reporting
   - Designated Vendor-Specific
2015-10-02 05:22:49 +00:00
ozaki-r
0e7ec84c8c Fix typo 2015-10-02 03:08:26 +00:00
joerg
defe89daaf List source name, not object name to unbreak AFLAGS.*. 2015-10-01 23:00:12 +00:00
riz
f2d2d6c3e9 Redo previous so as to not break non-arm MKDTRACE=yes builds. 2015-10-01 20:51:19 +00:00
riz
41784a61b4 Only declare 'ldn' where it's actually used. Fixes build on arm
with MKDTRACE=yes.
2015-10-01 19:45:37 +00:00
rjs
5d347183ce Build Xorg server and wsfb driver for mac68k. 2015-09-30 22:58:02 +00:00
christos
c29d517558 Import the dtrace toolkit from FreeBSD; simple scripts such as dtruss work
unmodified. For others we'll need to add the missing probes and adjust.
This is not attached to the build.
2015-09-30 22:01:06 +00:00
christos
ae335351bb Add proc:::exit
XXX: I am going to kill that soon and make the providers register automagically
with linker sets. This can't scale.
2015-09-30 20:59:44 +00:00
christos
7264d1b96c recognize the proc provider as belonging to sdt 2015-09-30 20:59:13 +00:00
phx
cd5e999b29 Reduce MAXDSIZ from 416MB back to 224MB.
Due to limitations by the current pmap implementation our virtual address
space is limited to 512MB. A MAXDSIZ of 416MB would leave only a little bit
more than 30MB for shared objects and heap allocations, so 224MB seems like
a good compromise.
2015-09-30 20:36:28 +00:00
macallan
95d8a6292b don't MIPS_PHYS_TO_KSEG1() the hardware address for O2's serial ports
now serial console works again
2015-09-30 19:46:27 +00:00
macallan
e57b94ff3d pass the port's hardware address in COM_INIT_REGS() so the com driver can
figure out wether this is the console or not
2015-09-30 19:44:58 +00:00
phx
20d6d7ec56 Disable CFI in the GENERIC kernel again, as currently only cmdset 1.3
is supported, which is not present in all flash chips.
Add lmtemp(4), an LM75 temperature sensor, which is found in some
Synology NAS models.
2015-09-30 14:22:02 +00:00
phx
1e4196c6b6 Now more than a single I2C device per model may be configured directly.
An additional flags argument makes the configuration depend on the model-
flags in an optional BTINFO_MODEL bootinfo node.
Print the model name together with the vendor name, when known.
2015-09-30 14:18:54 +00:00
phx
97d339f97e Pass a name and flags precisely describing the current model and its
features via a new bootinfo node (currently Synology only). This allows
for example the configuration of model-specific temperature I2C sensors
and fan control.
Support for the Synology DS207 and DS209 drive LEDs and wait until the
2nd drive is completely powered up.
2015-09-30 14:14:32 +00:00
knakahara
5428e90392 fix IVARs offset for 82580 and newer. 2015-09-30 08:42:04 +00:00
ozaki-r
99284d7cc5 Make GATEWAY (fastforward) work again
With GATEWAY (fastforward), the whole forwarding processing runs in
hardware interrupt context. So we cannot use rwlock for lltable and
llentry in that case.

This change replaces rwlock with mutex(IPL_NET) for lltable and llentry
when GATEWAY is enabled. We need to tweak locking only around rtree
in lltable_free. Other than that, what we need to do is to change macros
for locks.

I hope fastforward runs in softint some day in the future...
2015-09-30 07:12:32 +00:00
ozaki-r
ad91e721ff Remove extra opt_gateway.h 2015-09-30 06:25:59 +00:00
ozaki-r
3f3bb7d2ee Add delay to improve stability of test 2015-09-30 06:08:36 +00:00
msaitoh
acd3bf9e12 - Add workaround for 82574 Errata 25 and 82583 Errata 12 "Dropped RX packets"
and for 82573 (unknown). Set GCR_L1_ACT_WITHOUT_L0S_RX bit. The NVM Image
  version 2.1.4 and newer have this workaround.
- Print the NVM image version on 82583, too.

 Pointed out by joerg@.
2015-09-30 04:28:04 +00:00
ozaki-r
4f5bd10ca4 Add lockdebug_barrier
ok pooka@
2015-09-30 02:45:33 +00:00
ozaki-r
63e037b63a Remove redundant UNLOCKED and LOCKED
UNLOCKED and LOCKED are done inside mutex_exit and mutex_enter respectively
so we don't need to do them outside mutex_exit and mutex_enter.

Reviewed by pooka@
2015-09-30 01:31:56 +00:00
christos
12713a4b5d We switched to newer versions in elftoolchain a while ago. 2015-09-30 00:35:46 +00:00
christos
35d37febae do the stack protector stuff like the other files. 2015-09-30 00:17:09 +00:00
christos
5a76c68ec9 detect dynamically if we need -e for echo 2015-09-29 23:50:52 +00:00
christos
85c412e566 - make the generated file rules depend on the source files
- hack for clang on Darwin
2015-09-29 23:50:17 +00:00
christos
acb11aeb8e fix the native build 2015-09-29 22:14:14 +00:00
christos
ec4b0d739b for the endian macros don't use the _ names, Darwin does not define them. 2015-09-29 20:43:16 +00:00
christos
f651117f07 no other ctf program needs -lrt, why does this one? 2015-09-29 20:31:43 +00:00
christos
b97202a0e1 make this tools friendly. 2015-09-29 19:43:39 +00:00
phx
0a756912e8 The disk's unittag is not equal to the channel, so we need an additional
unitchan entry to make lba_read() work in all cases.
The libsa-printf() does not seem to support 64-bit output, so cast the
block number to unsigned when printing an error message.
2015-09-29 15:12:52 +00:00
christos
302f5a4b29 return an error for actions we don't understand. 2015-09-29 14:31:22 +00:00
christos
f05010c404 - PR/50291: Fix memory leak
- estrdup/emalloc
- use EXIT_FAILURE instead of 1
2015-09-29 14:27:00 +00:00
roy
e3c65ae6e7 Note import of openresolv-3.7.1 2015-09-29 09:14:11 +00:00
roy
2f705eb612 Sync 2015-09-29 09:11:47 +00:00
roy
a4b92b41fa Import openresolv-3.7.1 with the following changes:
*  Typo's, thanks to Herbert Parentes Fortes Neto
  *  Clarify that private_interfaces="*" will not forward the root zone
  *  ensure that domain-insecure always appears in a server clause for
     the unbound subscriber
2015-09-29 09:10:07 +00:00
ozaki-r
837fd81e06 Let ftp use a different output file from httpd's one
Previously the target file served by httpd and the output file of ftp
were identical (both index.html) on the filesystem.
2015-09-29 08:27:24 +00:00