Commit Graph

239224 Commits

Author SHA1 Message Date
pgoyette
0513b92c02 Make the list of syscalls which can trigger a module autoload an
attribute of each emulation, rather than having a single global
list which applies only to the default emulation.

This changes 'struct emul' so

        Welcome to 7.99.23 !
2015-11-30 22:47:19 +00:00
christos
e4ed2565fe - automatically sync the wedge information unless -n is specified.
- document the general options in the traditional way.
- split the main program into a separate file.
2015-11-30 19:59:34 +00:00
roy
2d980baa58 Sync 2015-11-30 16:33:00 +00:00
skrll
c74c93c4f6 Trailing whitespace. 2015-11-30 13:27:09 +00:00
skrll
a455039345 Fix 10year old bug of mine affecting interrupt IN transfers. 2015-11-30 13:26:09 +00:00
he
4b2b748c50 As far as I (and my compiler) can tell, there's no need to cast
the arg to strncmp().
2015-11-30 10:37:25 +00:00
skrll
fa67479436 Whitespace 2015-11-30 07:51:44 +00:00
ozaki-r
cefec21119 Get rid of a big block in in_arpinput
No functional change.
2015-11-30 06:45:38 +00:00
mlelstv
3972fec404 Fall back to VOP_READ/VOP_WRITE if the simulated disk has smaller
sectors than the underlying filesystem and VOP_STRATEGY would fail.
2015-11-30 06:04:47 +00:00
pgoyette
0b8f413125 Factor the basic dependency list out of the #ifdef _KERNEL_OPT block, since
the only difference was ksem (which is available as either built-in or
loadable module).
2015-11-30 01:31:02 +00:00
jmcneill
7f43a6e6ef Add some event counters to track transfer sizes. 2015-11-29 23:38:47 +00:00
wiz
374d132d42 Drop trailing whitespace. 2015-11-29 21:38:10 +00:00
wiz
634690fb1c Fix xref. 2015-11-29 21:36:35 +00:00
skrll
0748561f22 Page align KERNEL_BASE_{PHYS,VIRT} and fix boot on my BPI after the XN
fix.
2015-11-29 19:52:03 +00:00
jmcneill
b8bc161064 Fix A9 periph clock when selecting frequencies below 1200MHz. Remove
frequencies below 312MHz as they require special handling. We can now
choose between 1536 1488 1320 1200 1008 816 720 600 504 408 312.
2015-11-29 19:16:58 +00:00
christos
28e12a3821 Fix > 1024 char lines in script. (Rin Okuyama) 2015-11-29 17:09:33 +00:00
jmcneill
3c6f5bd68b Retire CPUFREQ option, instead just pick the highest available frequency
at boot. Update the list of supported frequencies to match the list of dvfs
frequencies from the meson8b dts, capped at 1.5GHz. The highest available
frequency is changed from 1512MHz to 1536MHz.
2015-11-29 16:52:00 +00:00
kamil
a2fa5fef62 Bump date for previous 2015-11-29 15:58:07 +00:00
christos
7e254cfb82 Remove getdisksize support; we either have the ioctls (current/-7) or we
don't (non-netbsd-current/7+tools).
2015-11-29 15:32:46 +00:00
kamil
1e3b6beb3f Synchronize SYNOPSIS with reality 2015-11-29 15:29:55 +00:00
kamil
55cd314790 Remove nonexistent option z: in the getopt(3) call 2015-11-29 15:26:10 +00:00
christos
2d178fa50d Add the missing cases. 2015-11-29 14:12:56 +00:00
christos
4ab2c2d9c7 Add some debugging. 2015-11-29 14:12:35 +00:00
christos
c313281022 Do division once 2015-11-29 14:03:35 +00:00
christos
f8906ab68d Only use the ioctl's if we have them. 2015-11-29 13:46:23 +00:00
jnemeth
1ca10bc795 fix build breakage for systems that do not have DIOCG{SECTOR,MEDIA}SIZE 2015-11-29 13:24:28 +00:00
skrll
15c435f6d0 Improve debug message 2015-11-29 09:10:05 +00:00
pgoyette
121d6f085a Initial documentation of the internal syscalls that implement the librt
posix semaphores.  As requested in PR kern/37427

XXX Feel free to expand this page!
2015-11-29 06:10:01 +00:00
christos
2599c179cc print the current map type. 2015-11-29 00:34:39 +00:00
christos
5435e55eab - use snprintf
- fix bogus logic on map_type
2015-11-29 00:15:12 +00:00
christos
ca4e0dcdd1 merge the create errors in one place and fix them. 2015-11-29 00:14:46 +00:00
pgoyette
e6045f6364 Add cross-refs from modload(8) amd modunload(8) to modctl(2) 2015-11-28 23:53:48 +00:00
pgoyette
82344b6ce9 When loading the module, if devsw_attach() fails, call dtrace_unload()
to undo the effects of dtrace_load().  And if dtrace_unload() fails,
panic (since we can't get the system back to its earlier stable state).

When unloading the module, call devsw_detach() first, to lock out any
new access.  Then call dtrace_unload().  If dgtrace_unload() fails,
reattach the devsw, and if that fails, panic.

Implements fixes described in PR kern/43032
2015-11-28 22:41:36 +00:00
mlelstv
174162494b Remove bogus dk_getdisklabel call.
- there is no need to read the label in the attach routine
- passing a (dev_t)0 may cause havoc.

This fixes PR 41704.
2015-11-28 21:06:30 +00:00
marty
11b4c07d53 Exit hypervisor mode before entering supervisor
The Odroid XU4 is booted in hypervisor mode, probably because it is trust
zone enabled.  Before we can put it in supervisor we must explicitly remove
it from hypervisor.

This change is from Nick, who figured it out and adapted code from FreeBSD
to make the necessary change.
2015-11-28 20:51:36 +00:00
maxv
5f9c9faaae KNF 2015-11-28 18:08:40 +00:00
dholland
daa427b465 Fix kern/50841: races in sys_lseek. 2015-11-28 15:26:29 +00:00
dholland
cf8a8cd732 If the kernel jumps to NULL, print where it came from instead of trying
to dereference and faulting again.
2015-11-28 15:06:55 +00:00
mlelstv
9c6a5e265b Inherit sector size from underlying disk to support disks with
sector sizes other than 512 bytes.

The CGD disk image depends on disk geometry as it encodes the block
number into each block. You cannot copy an image between disks
with different sector sizes.
2015-11-28 14:45:24 +00:00
mlelstv
8d4b288604 bounds check requires consistent units, i.e. DEV_BSIZE. 2015-11-28 14:37:49 +00:00
mlelstv
4ff1b3e606 Handle sector sizes other than DEV_BSIZE when reading labels. 2015-11-28 14:36:00 +00:00
darcy
c5291a928e Of course we can always not do something. Doesn't mean that we "can't"
(or "cannot").  In any case make the messages consistent and move the
period to inside the quotes.
2015-11-28 14:20:32 +00:00
mlelstv
a4f2b41710 sc_size is already measured in sectors. 2015-11-28 13:41:31 +00:00
christos
da825a2b9f PR/50484: Rin Okuyama: fix the script command of vi(1) 2015-11-28 13:20:02 +00:00
plunky
81aeedab3e add details of later (to v4.2) specification versions and
extended feature flags,
2015-11-28 09:25:45 +00:00
plunky
522f084ab1 add version and extended feature flags defined in 4.2 specification,
add cache for page 2 of extended features and return this in
the SIOCGBTFEAT ioctl (no change in size)
2015-11-28 09:04:34 +00:00
plunky
b0d4935612 note recent spec additions to L2CAP Info command regarding fixed channels 2015-11-28 08:57:33 +00:00
plunky
ca14c58257 add in PSMs defined in later versions of specification 2015-11-28 07:50:37 +00:00
plunky
5197ec91c8 fix spelling Multiplexor->Multiplexer 2015-11-28 07:47:30 +00:00
plunky
52267b078d clean up: remove FreeBSD cvs tags, update URLS, fix spelling
and add in PSMs defined in recent versions of specifications
2015-11-28 07:46:33 +00:00