Commit Graph

238216 Commits

Author SHA1 Message Date
jmcneill
c7ce4b6914 Use sysmon_taskq instead of our own workqueue for submitting button events. 2015-10-04 18:35:44 +00:00
mrg
67805d58fa kmem_free() the address returned by kmem_alloc(). found by Brainy.
use the newly aligned location if we needed it.  found by kre.
2015-10-04 17:52:50 +00:00
wiz
032e90426a Bump date. 2015-10-04 12:10:51 +00:00
skrll
f0ac9058f1 Fix commented out USB HC debug options. RPI doesn't have [eo]hci. 2015-10-04 10:16:39 +00:00
joerg
fa24cbf67e Drop unused (inline) function. 2015-10-04 08:20:24 +00:00
joerg
4930719b71 panic takes a format string. 2015-10-04 08:19:40 +00:00
joerg
cae6a72ca2 Unsigned values can not be negative. 2015-10-04 08:19:13 +00:00
joerg
106e3b42b0 Use pointer computation for references outside an object. 2015-10-04 08:18:49 +00:00
joerg
ac18bcbfd7 Don't check unsigned values for negativity. 2015-10-04 08:17:43 +00:00
joerg
e35723c2c4 Arrays are never NULL. 2015-10-04 08:17:03 +00:00
joerg
a6fbbeaa5f Avoid left-shifting negative values. 2015-10-04 08:16:13 +00:00
joerg
bf3eb6d6df Panic takes a format string. 2015-10-04 08:15:46 +00:00
uebayasi
8b6b28e153 Catch up with the current, generated Makefile format. 2015-10-04 07:59:47 +00:00
joerg
887bca8d3c Fix format string. 2015-10-03 15:22:14 +00:00
hannken
7de3300bb9 Remove dubious vhold()/holdrele() from lfs_reserve().
The vnodes are always referenced on entry.

If we changed ulfs_remove() and ulfs_rmdir() to return the locked dvp
the vnodes were always locked on entry.

Remove an outdated comment from lfs_reserveavail(), unlocking/relocking
the vnode was removed in rev 1.49.
2015-10-03 09:31:29 +00:00
dholland
da7186290f The per-inode state 'id_entryno' is used by pass1 for a block count,
so widen it to 'long long'. pass2 uses it for the number of entries in
a directory (IIUC) which does not need to be wider than int, but for
now let's not try to split into two fields. FUTURE...
2015-10-03 08:30:13 +00:00
dholland
a07fd0a2a2 Use daddr_t instead of uint32_t for the in-memory copy of the inode
block pointers.
2015-10-03 08:30:02 +00:00
dholland
896006c986 Drop an explicit sign-extension in fsck that shouldn't be needed any
more.
2015-10-03 08:29:48 +00:00
dholland
93f2a7d5e8 Add lfs_checkword type for reading checksum data out of structures.
This is always uint32_t, but having a name for it both makes things
clearer and avoids confusion about whether it should be 32 or 64 bit.

Note: deployed in only one place (that was erroneously tagged
ondisk32) so far.
2015-10-03 08:29:34 +00:00
dholland
db7a6054ae Fix hardwired 32-bit stuff in fsck:
- compute the maximum file size using LFS_BLKPTRSIZE()
   - use the new IINFO in pass 6 instead of uint32_t pointers
   - use accessors to read and write indirect blocks
2015-10-03 08:29:21 +00:00
dholland
b82b54bc04 Remove a dead data structure. 2015-10-03 08:29:06 +00:00
dholland
4cb9c64ab0 Use accessors for another batch of indirect block accesses, this time
in dumplfs.
2015-10-03 08:28:56 +00:00
dholland
7f7a5fa1e3 Apply IINFO in the other userland tools. 2015-10-03 08:28:46 +00:00
dholland
c4e7149610 Use IINFO in the cleaner. 2015-10-03 08:28:30 +00:00
dholland
a407c8d218 Use IINFO in lfs_writeinode().
(both the kernel and the userland copies)
2015-10-03 08:28:15 +00:00
dholland
99646ab5f8 Use the new IINFO in the rfw code, eliminating hardwired 32-bit values. 2015-10-03 08:27:55 +00:00
dholland
8f0c85a18e Add an IINFO struct, which is like the FINFO struct but for the inode
blocks portion of the segment summary.

A segment summary block begins with a header (SEGSUM); the rest of the
block contains FINFO structures describing file blocks growing upward
from the bottom (after the header), and IINFO structures describing
inode blocks grown downward from the end of the block. (When they meet
the segment is full regardless of how many blocks might be left.)

IINFO contains just a block number, and until now this information was
handled by just using uint32_t*; switching to a structure will make
the code a lot easier to read, and also make it easier to have 32-bit
and 64-bit versions without making a mess.

This commit just adds the structures and accessors; they'll be
deployed into the code in subsequent commits.
2015-10-03 08:27:38 +00:00
riz
4795d98711 Fix up setlists for new debug compat libs. 2015-10-02 22:17:22 +00:00
riz
ee3b021d7b Restore some defines lost in last update, and don't include sys/cpuvar.h
MKDTRACE=yes now builds for arm platforms again.
2015-10-02 22:16:38 +00:00
riz
701e808f1d Update signature of unimplemented function to match prototype. 2015-10-02 22:15:18 +00:00
joerg
a309080e06 Make usage static and dead. 2015-10-02 20:42:15 +00:00
joerg
91018e0967 Support per-target AFLAGS. 2015-10-02 20:36:54 +00:00
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