| Age | Commit message (Collapse) | Author |
|
Should delete this code, no idea if it even still compiles.
|
|
at the time we had mutex_obj_alloc() but not __cacheline_aligned.
|
|
and remove code to handle failures that can no longer happen.
|
|
(signed) int. Make sure we are shifting an unsigned in those cases.
See also <http://mail-index.netbsd.org/tech-x11/2019/08/01/msg002010.html>.
XXX There are probably more of these in the header.
|
|
If dev_priv is null here, you're hosed to begin with, so the apparent
null pointer dereference in this branch is moot; also this is the old
drm code that we should maybe just delete altogether...
Potential null pointer dereference reported by Dr Silvio Cesare of
InfoSect.
|
|
[-Wimplicit-fallthrough=]" by adding the missing KNF FALLTHROUGH
comments.
christos@ approved.
|
|
userspace. The old fetch(9) and store(9) APIs (fubyte(), fuword(),
subyte(), suword(), etc.) are retired and replaced with new ufetch(9)
and ustore(9) APIs that can return proper error codes, etc. and are
implemented consistently across all platforms. The interrupt-safe
variants are no longer supported (and several of the existing attempts
at fuswintr(), etc. were buggy and not actually interrupt-safe).
Also augmement the ucas(9) API, making it consistently available on
all plaforms, supporting uniprocessor and multiprocessor systems, even
those that do not have CAS or LL/SC primitives.
Welcome to NetBSD 8.99.37.
|
|
- old drm nouveau was never ported
- the libdrm in this repo was never used
- these tests were never used, and this whole tree is obsolete, but
we never ported some of the old drivers to new drm.
XXX: probably can delete i915drm.
XXX: would ike to delete old radeondrm, but it is still the only
functional drm on some older radeon r100/r200 chipsets.
|
|
Aside from viadrm using older drm code, it's also dysfunctional right now.
See PR port-i386/53364.
|
|
Appeases static analyzers.
|
|
|
|
|
|
from Onno van der Linden in PR 49536.
|
|
mappings of file objects. move vnode-specific details of mmap()ing a vnode
from uvm_mmap() to the new vnode-specific vn_mmap(). add new uvm_mmap_dev()
and uvm_mmap_anon() convenience functions for mapping character devices
and anonymous memory, and replace all other calls to uvm_mmap() with those.
use the new fileop in drm2 so that libdrm can use mmap() to map things
like on other platforms (instead of the ioctl that we have used so far).
|
|
|
|
Not actually semantically significant for any callers, but Linux
documentation insists it is important, so we'll follow suit.
Fixes last part of PR kern/48999.
|
|
|
|
|
|
All have been set to "nodiscard"; some should get a real implementation.
|
|
Out of paranoia, do a bus_space_subregion in case the old drm code
tries sizes that the agp_i810 code doesn't agree with.
|
|
|
|
|
|
designated initializers.
I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
to deliver the data to the user buffer.
|
|
remove any user mappings before freeing the memory, so that a user process
doesn't have still have access to that physical memory after it's reused.
this really shouldn't be using kernel malloc'd memory at all,
but changing that would be much more involved.
|
|
Patch is taken from FreeBSD:
http://www.freebsd.org/cgi/query-pr.cgi?pr=143427
and tested on MSI U135DX running NetBSD/i386 6.0_BETA2 with this patch.
Should be pulled up to netbsd-6.
|
|
passed to sysctl_createv() actually matches the declared type for
the item itself.
In the places where the caller specifies a function and a structure
address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.
|
|
leads at least to diagnostic panics
|
|
simplifying uvm_map handling (no special kernel entries anymore no relocking)
make malloc(9) a thin wrapper around kmem(9)
(with private interface for interrupt safety reasons)
releng@ acknowledged
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
of silent truncation
|
|
|
|
|
|
|
|
|