Commit Graph

233999 Commits

Author SHA1 Message Date
manu
ea3c6ee530 Add iflag and oflag operands to dd(1)
Like GNU dd(1) similar operands, iflag and oflag allow specifying the
O_* flags given to open(2) for the input and the output file. The values
are comma-sepratated, lower-case, O_ prefix-stripped constants documented
in open(2).

Since iflag and oflag override default values, specifying oflag means
O_CREATE is not set by default and must be specified explicitely.

Some values do not make sense (e.g.: iflag=directory) but are still used
and will raise a warning. For oflag, values rdonly, rdwr and wronly are
filtered out with a warning (dd(1) attempts open(2) with O_RDWR and
then O_WRONLY on failure).

Specifying oflag=trunc along with (seek, oseek or conv=notrunc) is
contradictory and will raise an error.

iflag and oflag are disabled if building with -DMALLPROG
2015-03-18 13:23:49 +00:00
pooka
4ea3e40cc7 "rump" -> "rump kernel" police 2015-03-18 13:20:20 +00:00
msaitoh
521394bf01 Add 9 Series support. 2015-03-18 05:54:14 +00:00
msaitoh
a46a547de5 regen. 2015-03-18 05:44:13 +00:00
msaitoh
4c9ae40802 Add some Intel 9 series devices. 2015-03-18 05:43:49 +00:00
christos
80cc774264 Hack against the blank console problem:
Leave the CLUT alone on ancient cards. At least this leaves us with a
semi working console (red and blue are flipped). Leave an example of what
seems to be happening but disable it because colors are better than 444 bit
greyscale.
2015-03-18 02:57:13 +00:00
snj
786a747d1e fix commented out nouveaufb 2015-03-18 02:05:05 +00:00
matt
eb02601094 Don't try to catch undefined VFP instructions if we own the the FPU.
Let them raise SIGILL.
2015-03-17 22:34:10 +00:00
jmcneill
8b8b794d16 Add CPUFREQ option to set boot CPU frequency. ODROID-C1 is advertised
as quad-core 1.5GHz but boots up at 1.2GHz; add CPUFREQ=1512 to config
and make sure to set the correct speed before attaching CPUs.

The speed can still be scaled down with machdep.cpu sysctls.
2015-03-17 22:29:40 +00:00
martin
9f48099ced Use .inst for hard coded instructions (instead of .byte and endian dependend
represenation)
2015-03-17 19:41:42 +00:00
martin
51b1e7b1d3 Compile libcrypto with -O3 2015-03-17 19:39:15 +00:00
matt
fd405b9215 If we own the FPU, don't take anymore undefined faults. Instead generate
SIGILLs since we obviously don't understand the instruction.
2015-03-17 17:20:55 +00:00
joerg
2470b76174 __BEGIN_DECLS and __END_DECLS only exist if sys/cdefs.h was included. 2015-03-17 12:20:02 +00:00
hannken
54fa474e3e Change ffs to use vcache_new:
- Change ffs_valloc to return an inode number.
- Remove now obsolete UFS operations UFS_VALLOC and UFS_VFREE.
- Make ufs_makeinode private to ufs_vnops.c and pass vattr instead of mode.
2015-03-17 09:39:29 +00:00
hannken
b01cc29bb1 Add new operation "vcache_new()" to allocate and initialise a new
vnode/fsnode pair:

int
vcache_new(struct mount *mp, struct vnode *dvp, struct vattr *vap,
    kauth_cred_t cred, struct vnode **vpp)

where dvp is the (referenced) directory where we want to create the
new node, vap passes va_type, va_mode and possibly va_rdev and cred
gives the credentials to setup uid/guid.

The node returned from vcache_new() is referenced, fully initialised
and has link count zero.

Welcome to NetBSD 7.99.7
2015-03-17 09:38:21 +00:00
macallan
4f8ab635ea set root hub vendor IDs 2015-03-17 09:27:09 +00:00
macallan
73612c0da3 always print the child devices' address, print irq if not -1 and a driver
is actually attaching
2015-03-17 09:26:31 +00:00
macallan
2c21d7a552 regen 2015-03-17 08:15:48 +00:00
macallan
9f3df84f2d add Ingenic Semiconductor Ltd. 2015-03-17 08:14:30 +00:00
macallan
26c86995c9 do as arm does and get rid of addresses in kernel config 2015-03-17 07:28:18 +00:00
macallan
613f592364 - keep a list of devices, addresses and interrupts in apbus.c
- pass irq numbers to devices
- reduce magic numbers in device drivers
- allow multiple instances of device drivers
2015-03-17 07:25:07 +00:00
macallan
9f61ee1762 add SMBus base addresses 2015-03-17 07:22:40 +00:00
mrg
22ccd76416 fix the description of MKX11RADEONKMS, as pointed out in PR#49753. 2015-03-17 01:58:29 +00:00
jmcneill
e4dc7f14f3 hook ODROID-C1 into build 2015-03-16 22:18:14 +00:00
jmcneill
1d0fa5c96e add ODROID-C1 install kernel 2015-03-16 22:16:42 +00:00
jmcneill
8e2562b9d1 sdhc stability improvements 2015-03-16 21:37:35 +00:00
christos
85812049a7 one more strike to the whack-a-mole game of arm flavors. 2015-03-16 20:32:08 +00:00
plunky
e8fd30eb55 parse and print the HIDLANGIDBaseList attribute 2015-03-16 19:10:48 +00:00
prlw1
a0b4c35b18 correct test name 2015-03-16 16:42:27 +00:00
joerg
b4c948cc41 Do invalidate the cache as RPI2 build with Clang can't fetch the memory
config otherwise.
2015-03-15 22:54:03 +00:00
christos
10b0e24ed5 fix the big endian builds. Perhaps just remove the MAX define for everyone? 2015-03-15 18:58:09 +00:00
jmcneill
9bfe573c47 port-arm/49057: Raspberry Pi Audio volume control does not work
AUDS server messages expect volume to be expressed in units of 1/256 dB,
where we previously (incorrectly) treated it as as percentage. Map the
NetBSD audio level (0-255) to 20 steps (levels from FreeBSD bcm2835_audio.c)
and provide independent volume knobs for outputs.auto, outputs.hdmi, and
outputs.headphones.
2015-03-15 18:31:29 +00:00
jmcneill
4ae31c4bf7 sprinkle __diagused to fix "no options DIAGNOSTIC" build 2015-03-15 13:15:26 +00:00
nakayama
5796df9289 Reuse results of "bootpath" and "bootargs" from openfirmware
instead of calling openfirmware in each sysctl CPU_BOOT*.

This change reduces openfirmware calls from userland since sysctl
CPU_BOOTED_KERNEL is used in system commands such as pstat and
netstat.
2015-03-15 10:38:58 +00:00
maxv
9eec611462 ffs_reload(): fix a bug that prevents Big Endian FSes from being reloaded.
'newfs' should be tagged as FS_SWAPPED, not 'fs'.

Was here before my changes.

While here, also KNF a bit.
2015-03-15 09:21:01 +00:00
ryo
fa1364f862 - fix interrupt type ans interrupt masks
- change timing of callout_schedule because it doesn't schedule once enet_stop is called
- typo
2015-03-15 04:12:07 +00:00
nonaka
91729bdaea regen 2015-03-15 01:42:27 +00:00
nonaka
16f269d336 Added Huawei U8150. 2015-03-15 01:37:47 +00:00
maxv
a578b5382f ffs_superblock_validate(): ensure fs_ipg and fs_fpg are != 0. Otherwise
division by zero in several places.
2015-03-14 19:52:54 +00:00
jmcneill
11d383a541 add no options ARM11_COMPAT_MMU 2015-03-14 19:06:14 +00:00
jmcneill
2fc05df71f re-add ARM11_COMPAT_MMU, lost in the rpi2 shuffle 2015-03-14 14:59:43 +00:00
macallan
6aaa2d6bc2 KNF police 2015-03-14 13:45:43 +00:00
bouyer
916e2df623 Properly implemement pci_intr_disestablish(9), so that interrupt
handlers stop being called when the device has been detached.
Should fix PR port-xen/47720 (which turns out to not be related to raidframe).
While there fix possible races in event_remove_handler() and pirq_establish().
2015-03-14 10:49:36 +00:00
hannken
0969553306 Add a counter of busy events and stop enqueueing more work if a device is busy.
Protect this counter with a new short time lock "sme_work_mtx" and
keep "sme_mtx" as long time lock.

Removes a deadlock where an active event holds "sme_mtx", the callout
"sme_events_check" blocks on "sme_mtx" and callout processing stops.
2015-03-14 09:52:49 +00:00
njoly
f3d7a033fe Support Linux MAP_LOCKED mmap flag. 2015-03-14 08:32:07 +00:00
isaki
787a0efa5b white space -> tab. 2015-03-14 07:23:46 +00:00
rtr
8699b912c3 Move code that is conditional on options INET6 into #ifdef INET6.
* Re-organize some variable declarations to limit #ifdef's.
* Move INET and INET6 code into respective switch cases to simplify
  #ifdef INET6.

No intended functional change.
2015-03-14 02:08:16 +00:00
jmcneill
c8f8c114a8 port-arm/49057: Raspberry Pi Audio volume control does not work
- Use software volume control for outputs.master/inputs.dac
- Previous volume control (for analog output only) is available on new
  outputs.headphones mixer control.
- Add an outputs.select enum to choose between "auto", "headphones", and
  "hdmi" outputs.
2015-03-13 22:48:41 +00:00
nonaka
b2901b1b91 Add pmf hooks. 2015-03-13 15:33:04 +00:00
wiz
884081180b mdocml-1.13.3 out. 2015-03-13 13:48:18 +00:00