summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2013-08-17Because vgafb(4) only match the console, no need for an additional checkMartin Pieuchot
when setting up multiple screens and don't clear the screen again at this moment.
2013-08-17Fix comment, socket splice can also do UDP now. Fix white spaces.Alexander Bluhm
2013-08-17Most network drivers include netinet/in_var.h, but apparently theyAlexander Bluhm
don't have to. Remove these include lines from octeon drivers. test and OK bcallah@
2013-08-17Merge vgafb_init() into vgafb_cnattach() now that it is not used anywhereMartin Pieuchot
else and pass the RI_FULLCLEAR flag to rasops_init() instead of clearing the region directly. This also makes the console to be correctly restored when exiting X. Previously a line at the bottom of the screen was never cleared.
2013-08-17Do not pretend to support non-console device because vgafb(4) onlyMartin Pieuchot
matches the framebuffer device setup by the firmware. Discussed with kettenis@. While here remove the bus master enable command as we no longer attach drm(4) to this driver.
2013-08-17Remove unnecessary activate functions and unused DPRINTFN macros.Stuart Henderson
Req by and OK mpi@.
2013-08-17Remove a bunch of unused variables and functions aging from the preMartin Pieuchot
powerpc -> macppc area. ok kettenis@
2013-08-16Hook up the framebuffer colormap helper code on sparc64.Mark Kettenis
2013-08-16Moving the .data section causes problems on some machines (blade100, tadpole).Mark Kettenis
Move it back and add a linker script to convince the linker that it shouldn't merge .text and .data. tested by naddy@ ok millert@, deraadt@
2013-08-16Pass cursor position in wsdisplay_cnattach() call. Preparation for seamlessMark Kettenis
console transation on sparc64 (and eventually macppc).
2013-08-16Enable radeondrm(4).Martin Pieuchot
ok kettenis@
2013-08-16Use mapiodev instead of bus_space_map the do the initial mapping of theMark Kettenis
frame buffer. This allows radeondrm(4) to bus_space_map it without panicking. ok mpi@, jsg@
2013-08-16int overflow in sector calculation, broke UDF reads past 2GB. Diff promotesMike Larkin
sector to daddr_t before calculation to avoid overflow. ok deraadt@
2013-08-16Replace the misleading SIOC{G,S}IFGENERIC ioctls by SIOCG{G,S}PPPPARAMS.Martin Pieuchot
This is another ABI break but no port rely on them as verified by naddy@. ok claudio@, mikeb@, henning@
2013-08-16Check number of planes (1, 4, or 8bpp) by ourselves, because PROMKenji Aoyama
seems not distinguish between 1bpp and 4bpp framebuffers. Now hwplanebits should have the correct value after omfbmatch(). This also makes the monochrome X.org server work with a 4bpp framebuffer correctly, i.e. white and black are not inverted. ok miod@
2013-08-16regenPhilip Guenther
2013-08-16Tweak the getdents() kernel prototype to use "void *"Philip Guenther
Provide a declaration for userspace Fix the kernel's sanity check on the buflen argument lack of prototype pointed out by sthen@ and landry@ ok kettenis@ otto@
2013-08-16divdi3 is needed with big time_tOtto Moerbeek
2013-08-15Be sure to always invoke cache routines with properly rounded addresses;Miod Vallat
the bus_dmamap_sync() bowels would sometimes use incorrectly rounded addresses, which has been apparently harmless so far, but better be safe than sorry.
2013-08-15Be sure to set the `non equal' bit when emulating fcmp{,u} and the operandsMiod Vallat
are orderable, but not equal.
2013-08-15make debug output sligthly more usefulMiod Vallat
2013-08-15typosMiod Vallat
2013-08-15Enable radeondrm(4).Mark Kettenis
2013-08-15Add RI_VCONS support.Mark Kettenis
ok miod@
2013-08-15Blast uhts(4). This code was merged into ums(4) last week.Edd Barrett
OK mpi@
2013-08-15fix getsecs() prototypes, vax still boots with 64-bit time_t; ok miod@Otto Moerbeek
2013-08-15Stop defining SIOC{S,G}ETVLAN as SIOC{S,G}IFGENERIC because theyMartin Pieuchot
are two differents ioctls manipulating structures of a different size. In particular this prevents vlan(4) to handle pppoe(4)-specific ioctls and vice versa, that could lead to smashing the stack of the caller. Issue originally found by David Hill when compiling ifconfig with clang. Note that this is an ABI break but we're riding a biger dragon right now. ok mikeb@, kettenis@, sthen@
2013-08-15Include files.agp and files.drm from files.pci. Makes sure "drm.h" getsMark Kettenis
generated on all architectures that support pci, making alpha and loongson compile again. ok todd@, miod@ seemed to agree with the idea
2013-08-14The last user of the old __tfork() was updated to the current one,Philip Guenther
so COMPAT_O51 can go. The complete ABI role means COMPAT_O53 can be removed as well. ok jsing@ tedu@
2013-08-14regenPhilip Guenther
2013-08-14The last user of the old __tfork() was updated to the current one,Philip Guenther
so COMPAT_O51 can go. The complete ABI role means COMPAT_O53 can be removed as well. ok jsing@ tedu@
2013-08-14drm_heap.c is no longer neededJonathan Gray
2013-08-14remove references to ati_pcigartJonathan Gray
2013-08-13ati_pcigart.c is no longer neededJonathan Gray
ok kettenis@
2013-08-13Call drm_mtrr_add() directly instead adding a map.Mark Kettenis
ok jsg@
2013-08-13Let ray(4) rot in the attic. OK mpi, jsg, kettenis, henning, millert.Mike Belopuhov
Mickey approves these changes.
2013-08-13add static back to functions that originally had itJonathan Gray
reduces the diff to linux and makes ddb hangman a little easier
2013-08-13When net.inet.ip.sourceroute is enable, store the source routeMartin Pieuchot
of incoming IPv4 packets with the SSRR or LSRR header option in a m_tag rather than in a single static entry. Use a new m_tag type, PACKET_TAG_SRCROUTE, for this and bump PACKET_TAG_MAXSIZE accordingly. Adapted from FreeBSD r135274 with inputs from bluhm@. ok bluhm@, mikeb@
2013-08-13Remove bogus and useless refcounting of usbd pipes that could lead toMartin Pieuchot
memory leaks and abort the pipe if requests are still pending because most of our drivers don't do anything if usbd_close_pipe() fails. ok miod@
2013-08-13Split pflow version 9 and version 10 to be able to send 64 bitFlorian Obser
time values for version 10. While there mark places which will blow up in 2038. OK benno@
2013-08-13Make the tree compile again on architectures without drm(4).Mark Kettenis
ok maja@, miod@, jsg@
2013-08-13regenPhilip Guenther
2013-08-13Switch time_t, ino_t, clock_t, and struct kevent's ident and dataPhilip Guenther
members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME. Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures. DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead. Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
2013-08-12Add the TCP socket option TCP_NOPUSH to delay sending the stream.Alexander Bluhm
This is useful to aggregate data in the kernel from multiple sources like writes and socket splicing. It avoids sending small packets. From FreeBSD via David Hill; OK mikeb@ henning@
2013-08-12The ps flags are split between thread and process. It is usefulAlexander Bluhm
for ddb to show both. So or them together in the ps overview and list them explicitly for the specific thread. Also sync the ddb bit names with the define names. OK miod@
2013-08-12Upcoming radeondrm(4) support will grow the kernel. This growth causes theMark Kettenis
linker to merge ithe .text and .data sections, even though there is no reason why it should do this. Leave more space between these sections to keep the linker from doing this.
2013-08-12radeondrm now attaches directly to pci.Martin Pieuchot
2013-08-12Match the framebuffer device against its OpenFirmware node in orderMartin Pieuchot
to share the console detection logic with sparc64 in radeondrm(4). ok miod@
2013-08-12In the common IPv4 and IPv6 file ip_carp.c an #ifdef INET6 wasAlexander Bluhm
missing. Especially the IN6_IS_ADDR_LINKLOCAL() macro should not be necessary in IPv4 only code. No binary change. OK henning@ claudio@
2013-08-12Add a port of the TTM and Radeon DRM code from Linux 3.8.13.Jonathan Gray
Includes kernel modesetting, framebuffer console and support for newer hardware. Firmware needs to be present for acceleration and in some cases modesetting to work. It can be installed via fw_update or manually via pkg_add. With lots of help from kettenis@ some macppc bits from mpi@ and some ttm refcount/queue bits from FreeBSD. Thanks to M:Tier and the OpenBSD Foundation for sponsoring this work.