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
christos
df2b8d0369
fix the build
2015-11-28 03:40:43 +00:00
pgoyette
aa36e9a178
Re-work the module init and destroy code to allow it to be unloaded and
...
then reloaded.
Should fix PR kern/49842
2015-11-28 03:06:45 +00:00
skrll
26d7324de5
EXYNOS_CONSOLE_EARLY doesn't belong here
2015-11-27 22:02:15 +00:00
jmcneill
6e138cfd75
Pull in changes from OpenBSD r1.34:
...
> Fix values of AR9003 Rx queue software indexes. Both indexes were zero,
> which is obviously not intended given how they are used in the ar9003 code.
> No currently working athn(4) devices are affected by this change.
2015-11-27 21:16:17 +00:00
christos
e77b077223
use commands() instead of target() because assym.mk creates all the targets
...
unconditionally.
2015-11-27 20:59:47 +00:00
christos
8089a0f85d
PR/50483: David A. Holland: fix building of assym.d:
...
1. use += to add to DEPS
2. move inclusion of rules mk. files before the rules are defined
so that variables are set.
Now we get on amd64:
mkdep: ignoring acpi_wakeup_low.d: No such file or directory
mkdep: ignoring amd64func.d: No such file or directory
mkdep: ignoring busfunc.d: No such file or directory
mkdep: ignoring copy.d: No such file or directory
mkdep: ignoring cpu_in_cksum.d: No such file or directory
mkdep: ignoring cpufunc.d: No such file or directory
because there are no rules to generate those, but it is harmless.
2015-11-27 20:33:55 +00:00
joerg
079b557452
Don't use dynamically sized unions, they are a horrible GNUism. Just use
...
the existing upper limit all the time.
2015-11-27 16:52:32 +00:00
joerg
d0bd9a5f3f
Don't pass garbage to parsedate, but do use the return value.
2015-11-27 15:10:32 +00:00
christos
7b88a1a0ea
fix double negation
2015-11-27 13:59:40 +00:00
joerg
7a3084cdcb
Shuffle a bit to avoid empty loop body.
2015-11-27 13:51:57 +00:00
joerg
1caddb70de
Left-shift of negative values is UB.
2015-11-27 13:51:24 +00:00
joerg
b5e21344a8
Remove shifts of the PSR constants before applying to the trap frame.
...
Oring 0 doesn't do anything useful.
2015-11-27 13:45:17 +00:00
skrll
d290e6d4a4
Save a whole instruction when KERNEL_BASE_VOFFSET is zero.
2015-11-27 09:45:03 +00:00
skrll
382a7e8f5d
Improve a comment
2015-11-27 09:43:18 +00:00
martin
48c485ef40
Use __BIT() for some masks to fix the sparc build.
...
No binary changes.
2015-11-27 09:34:36 +00:00
skrll
9fac32b813
Add some KERNEL_BASES_EQUAL improvements from other start.S files.
...
My ODROID-XU still boots.
2015-11-27 08:48:24 +00:00
skrll
c3386d6a28
#ifdef -> #if defined()
...
No functional change
2015-11-27 08:43:10 +00:00
skrll
6ec9fcac24
Don't use magic number.
...
No functional change.
2015-11-27 07:47:45 +00:00