]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoMove vt_mouse_event out of sysmouse lock.
ray [Wed, 13 Nov 2013 12:34:24 +0000 (12:34 +0000)]
Move vt_mouse_event out of sysmouse lock.

Sponsored by: The FreeBSD Foundation

10 years agoo Simplify POS_INDEX macro calculation.
ray [Wed, 13 Nov 2013 12:32:41 +0000 (12:32 +0000)]
o Simplify POS_INDEX macro calculation.
o New macro POS_COPY to copy between term_pos_t.
o Add vtbuf_wth/vtbuf_htw helpers, to translate between screen coordinates and
circular history buffer location.
o Update vtbuf_iscursor to mark region selected by mouse.
o New helper vtbuf_flush_mark, to update regions where copy/paste mark changed.
o New method vtbuf_get_marked_len to get storage size for paste buffer.
o vtbuf_extract_marked fill (caller allocated buffer) with selected region data.
o Simplify mouse handler for copy/paste, and use vtbuf_flush_mark to update.
o New method vtbuf_scroll_mode, to help indicate Scroll mode by hiding cursor.
o Update header with new vtbuf methods.
o Add new vt_driver method vd_markedwin, to hold last window with selection.
o Enable paste support in core module.

Sponsored by: The FreeBSD Foundation
Pointed by: Claude Buisson <clbuisson@orange.fr> (Scroll mode indication)

10 years agodrm/radeon: Fix build of radeon_fb.c on i386
dumbbell [Tue, 12 Nov 2013 19:44:45 +0000 (19:44 +0000)]
drm/radeon: Fix build of radeon_fb.c on i386

10 years agoAdd kern.vt.suspendswitch tunable. This will allow to disable default behavior
ray [Mon, 11 Nov 2013 22:07:56 +0000 (22:07 +0000)]
Add kern.vt.suspendswitch tunable. This will allow to disable default behavior
(switch to VT0 on suspend, switch back on resume).
If 0 - disabled, other values - enabled.

Requested by: jhb
Sponsored by:   The FreeBSD Foundation

10 years agoUpdate vd_bitbltchr_t type to handle operation mask (to not touch pixels which
ray [Mon, 11 Nov 2013 13:25:49 +0000 (13:25 +0000)]
Update vd_bitbltchr_t type to handle operation mask (to not touch pixels which
 is not defined in mask) and bpl (bytes per source line).
Only vt_fb driver handle handle bpl yet.
Add protector for case when blitting image can be drawn partially out of screen,
like mouse cursor.

Mouse cursor and its movements works fine, copy/paste not yet.

Sponsored by: The FreeBSD Foundation

10 years agoAdd forgotten definition of vt_default_mouse_pointer.
ray [Mon, 11 Nov 2013 13:06:31 +0000 (13:06 +0000)]
Add forgotten definition of vt_default_mouse_pointer.

Sponsored by: The FreeBSD Foundation

10 years agoDefine vt_mouse_event method.
ray [Mon, 11 Nov 2013 12:44:54 +0000 (12:44 +0000)]
Define vt_mouse_event method.

Sponsored by: The FreeBSD Foundation

10 years agoWrap long lines.
ray [Mon, 11 Nov 2013 12:38:28 +0000 (12:38 +0000)]
Wrap long lines.

Sponsored by: The FreeBSD Foundation

10 years agoEnable/disable mouse cursor on MOUSE_SHOW/MOUSE_HIDE.
ray [Mon, 11 Nov 2013 12:36:18 +0000 (12:36 +0000)]
Enable/disable mouse cursor on MOUSE_SHOW/MOUSE_HIDE.

Sponsored by: The FreeBSD Foundation

10 years agoo Update vt_flush to care about mouse pointer.
ray [Mon, 11 Nov 2013 12:34:30 +0000 (12:34 +0000)]
o Update vt_flush to care about mouse pointer.
o Sort variable declarations.
o Disable mouse support for DDB.
o Expose region to update on old mouse position.
o Draw mouse cursor on current position.

There is some extra bits for calculation of size to copy bitmap to screen.
It is not supported by drivers, but will be changed in following commits.

Sponsored by: The FreeBSD Foundation

10 years agoEliminate call to vd_blank method, it is too expensive.
ray [Mon, 11 Nov 2013 12:26:35 +0000 (12:26 +0000)]
Eliminate call to vd_blank method, it is too expensive.

Sponsored by: The FreeBSD Foundation

10 years agoUse saved offset to font aligned area.
ray [Mon, 11 Nov 2013 12:24:17 +0000 (12:24 +0000)]
Use saved offset to font aligned area.

Sponsored by: The FreeBSD Foundation

10 years agoSave offset to font aligned area.
ray [Mon, 11 Nov 2013 12:22:44 +0000 (12:22 +0000)]
Save offset to font aligned area.

Sponsored by: The FreeBSD Foundation

10 years agoAdd vt_mouse_event mouth event handling method.
ray [Mon, 11 Nov 2013 12:19:26 +0000 (12:19 +0000)]
Add vt_mouse_event mouth event handling method.

Sponsored by: The FreeBSD Foundation

10 years agoo Remove include of sys/mouse.h, it is included from vt.h now.
ray [Mon, 11 Nov 2013 12:15:52 +0000 (12:15 +0000)]
o Remove include of sys/mouse.h, it is included from vt.h now.
o Call vt_mouse_event method, to notify VT(9) about mouse events.
o Add empty MOUSE_MOUSECHAR ioctl handler.
o Remove trailing whitespace.

Sponsored by: The FreeBSD Foundation

10 years agoUse vtbuf_iscursor method instead of macro to get chars to display inverted.
ray [Mon, 11 Nov 2013 12:10:26 +0000 (12:10 +0000)]
Use vtbuf_iscursor method instead of macro to get chars to display inverted.

Sponsored by: The FreeBSD Foundation

10 years agoAdd mouse related bits.
ray [Mon, 11 Nov 2013 12:08:43 +0000 (12:08 +0000)]
Add mouse related bits.

Sponsored by: The FreeBSD Foundation

10 years agoDefine marker support functions and type of markers.
ray [Mon, 11 Nov 2013 11:55:22 +0000 (11:55 +0000)]
Define marker support functions and type of markers.

Sponsored by: The FreeBSD Foundation

10 years agoAdd cut/paste region markers.
ray [Mon, 11 Nov 2013 11:53:08 +0000 (11:53 +0000)]
Add cut/paste region markers.

Sponsored by: The FreeBSD Foundation

10 years agoAdd mouse related vtbuf operations.
ray [Mon, 11 Nov 2013 11:50:17 +0000 (11:50 +0000)]
Add mouse related vtbuf operations.

Sponsored by: The FreeBSD Foundation

10 years agoo Add link to vt_mouse_cursor.c.
ray [Mon, 11 Nov 2013 11:48:24 +0000 (11:48 +0000)]
o Add link to vt_mouse_cursor.c.
o Update link to vt_font_default.c.
o Remove link to deleted driver vt_intel.

Sponsored by: The FreeBSD Foundation

10 years agoAdd default cursor pixmap.
ray [Mon, 11 Nov 2013 11:46:41 +0000 (11:46 +0000)]
Add default cursor pixmap.

Sponsored by: The FreeBSD Foundation

10 years agoRename font_default.c to vt_font_default.c. Prefix will make less possibility
ray [Mon, 11 Nov 2013 11:45:47 +0000 (11:45 +0000)]
Rename font_default.c to vt_font_default.c. Prefix will make less possibility
for object file names collision.

Sponsored by: The FreeBSD Foundation

10 years agoAdd mouse cursor format structure.
ray [Mon, 11 Nov 2013 11:37:02 +0000 (11:37 +0000)]
Add mouse cursor format structure.

Sponsored by: The FreeBSD Foundation

10 years agoUse opt_syscons.h to get defines.
ray [Mon, 11 Nov 2013 11:30:47 +0000 (11:30 +0000)]
Use opt_syscons.h to get defines.
Define max number of windows as VT_MAXWINDOWS if defined, or as MAXCONS, or 12.
Define VT_MOUSE_PASTEBUTTON and VT_MOUSE_EXTENDBUTTON if defined
SC_TWOBUTTON_MOUSE or VT_TWOBUTTON_MOUSE.

Sponsored by: The FreeBSD Foundation

10 years agoDefine VT_FB_DEFAULT_WIDTH and VT_FB_DEFAULT_HEIGHT options, to allow to make
ray [Thu, 7 Nov 2013 21:12:20 +0000 (21:12 +0000)]
Define VT_FB_DEFAULT_WIDTH and VT_FB_DEFAULT_HEIGHT options, to allow to make
static console buffer bigger than default.

Sponsored by:   The FreeBSD Foundation

10 years agoHandle suspend/resume. Switch to console window before suspend, switch back on
ray [Thu, 7 Nov 2013 21:08:52 +0000 (21:08 +0000)]
Handle suspend/resume. Switch to console window before suspend, switch back on
resume. That fix issue with broken Xorg image after resume.
Fix some style whilst here.

Sponsored by:   The FreeBSD Foundation

10 years agoDRM2 have to know how to use fb_if.
ray [Wed, 6 Nov 2013 14:24:24 +0000 (14:24 +0000)]
DRM2 have to know how to use fb_if.

Sponsored by: The FreeBSD Foundation

10 years agoMFC @r257740.
ray [Wed, 6 Nov 2013 11:16:05 +0000 (11:16 +0000)]
MFC @r257740.

10 years agoSwitch allwinner A10/A20 and rockchip ports to use common ARMv6/v7 bus_space tag.
ray [Wed, 6 Nov 2013 10:31:52 +0000 (10:31 +0000)]
Switch allwinner A10/A20 and rockchip ports to use common ARMv6/v7 bus_space tag.

Tested by: ganbold

10 years agoSwitch to use common ARMv6/v7 bus_space tag.
ray [Wed, 6 Nov 2013 09:44:32 +0000 (09:44 +0000)]
Switch to use common ARMv6/v7 bus_space tag.

Tested by: ian, ray

10 years agoAdd common bus_space tag definition shared for most supported ARMv6/v7 SoCs.
ray [Wed, 6 Nov 2013 09:41:19 +0000 (09:41 +0000)]
Add common bus_space tag definition shared for most supported ARMv6/v7 SoCs.

Tested by: ian, ray

10 years agoFix my braino in r257692. For SIOCG*ADDR we don't need exact match on
glebius [Wed, 6 Nov 2013 08:36:08 +0000 (08:36 +0000)]
Fix my braino in r257692. For SIOCG*ADDR we don't need exact match on
specified address, actually in most cases the address isn't specified.

Reported by: peter

10 years ago- Remove mac_get_fd/mac_set_fd - those are not syscalls. The __mac_get_fd() and
pjd [Wed, 6 Nov 2013 07:46:10 +0000 (07:46 +0000)]
- Remove mac_get_fd/mac_set_fd - those are not syscalls. The __mac_get_fd() and
  __mac_set_fd() syscalls are listed earlier.
- Correct typo in syscall name. It should be sched_rr_get_interval,
  not sched_rr_getinterval.

Submitted by: David Drysdale <drysdale@google.com>
MFC after: 3 days

10 years agoRemove the gross hack for the Octeon Simple Executive to the least
imp [Wed, 6 Nov 2013 05:26:15 +0000 (05:26 +0000)]
Remove the gross hack for the Octeon Simple Executive to the least
intrusive place for it to be: the octeon std file.
Fix a comment while I'm here.
Allow for future architectural specific flags.

Reviewed by: jmallet@

10 years agoRevert r257730:
gjb [Wed, 6 Nov 2013 04:38:49 +0000 (04:38 +0000)]
Revert r257730:
 Make head/ buildable again, instead of spewing garbage like:
 /src/gnu/lib/csu/../../../contrib/gcc/config/rs6000/crtsavres.asm:280:
  Error: no such instruction: `lwz 28,-16(11)'

10 years agoRevert r257691, r257645:
gjb [Wed, 6 Nov 2013 03:36:43 +0000 (03:36 +0000)]
Revert r257691, r257645:
 Let amd64/amd64 build again.

10 years agoReading the RT2860_ASIC_VER_ID register is not needed and returns
kevlo [Wed, 6 Nov 2013 02:49:16 +0000 (02:49 +0000)]
Reading the RT2860_ASIC_VER_ID register is not needed and returns
completely bogus value.

10 years agoFix build on GCC.
nwhitehorn [Wed, 6 Nov 2013 01:14:00 +0000 (01:14 +0000)]
Fix build on GCC.

10 years agoDo not build aicasm with the cross-tools/kernel-toolchain, instead add a
ian [Wed, 6 Nov 2013 00:32:40 +0000 (00:32 +0000)]
Do not build aicasm with the cross-tools/kernel-toolchain, instead add a
proper kernel-tools step/target modeled after the world build-tools stuff.

10 years agoAdd the VM name to the process name with setproctitle().
grehan [Wed, 6 Nov 2013 00:25:17 +0000 (00:25 +0000)]
Add the VM name to the process name with setproctitle().
Remove the VM name from some of the thread-naming calls
since it is now in the proc title.
Slightly modify the thread-naming for the net and block
threads.

This improves readability when using top/ps with the -a
and -H options on a system with a large number of bhyve VMs.

Requested by: Michael Dexter
Reviewed by: neel
MFC after: 4 weeks

10 years agoEnable vt_early_fb driver for i.MX515 build.
ray [Tue, 5 Nov 2013 23:16:52 +0000 (23:16 +0000)]
Enable vt_early_fb driver for i.MX515 build.

Sponsored by: The FreeBSD Foundation

10 years agoAllow to use fb_probe() outside of driver.
ray [Tue, 5 Nov 2013 23:12:53 +0000 (23:12 +0000)]
Allow to use fb_probe() outside of driver.

Sponsored by: The FreeBSD Foundation

10 years agoEarly console with FDT/OFW support.
ray [Tue, 5 Nov 2013 23:09:36 +0000 (23:09 +0000)]
Early console with FDT/OFW support.
TODO - done PPC, SPARC64 and FDT-less variants.

Sponsored by: The FreeBSD Foundation

10 years agoExport vt_fb VT driver methods to allow reuse.
ray [Tue, 5 Nov 2013 23:01:57 +0000 (23:01 +0000)]
Export vt_fb VT driver methods to allow reuse.

Sponsored by: The FreeBSD Foundation

10 years agoDefine default size for early console to 640x480.
ray [Tue, 5 Nov 2013 23:00:26 +0000 (23:00 +0000)]
Define default size for early console to 640x480.

Sponsored by: The FreeBSD Foundation

10 years agoIncrease history size to 500 lines.
ray [Tue, 5 Nov 2013 22:59:11 +0000 (22:59 +0000)]
Increase history size to 500 lines.

Sponsored by: The FreeBSD Foundation

10 years agoEnable splash on Mute flag.
ray [Tue, 5 Nov 2013 22:57:05 +0000 (22:57 +0000)]
Enable splash on Mute flag.
TODO: use tunable for control splash.

Sponsored by: The FreeBSD Foundation

10 years agoFix .Dd after r257646.
gjb [Tue, 5 Nov 2013 21:47:00 +0000 (21:47 +0000)]
Fix .Dd after r257646.
DST affects the day by one hour, but the number of days in the
week stay the same.

10 years agoDon't explicitly invoke ifn_start on new child interfaces (vaps and
jhb [Tue, 5 Nov 2013 19:49:53 +0000 (19:49 +0000)]
Don't explicitly invoke ifn_start on new child interfaces (vaps and
subinterfaces) after they are created.  Interfaces are already started
by devd invoking /etc/pccard_ether when they are created, so the explicit
calls in childif_create() resulted in interfaces being started twice.

Note that interfaces created via cloned_interfaces are not explicitly
started but depend on the devd mechanism already.

MFC after: 1 week

10 years agoFix build.
glebius [Tue, 5 Nov 2013 19:17:19 +0000 (19:17 +0000)]
Fix build.

Pointy hat to: glebius

10 years agoProtect the "ratectl_ch" callout in the "run" driver by the "run"
hselasky [Tue, 5 Nov 2013 18:27:25 +0000 (18:27 +0000)]
Protect the "ratectl_ch" callout in the "run" driver by the "run"
softc's "sc->sc_mtx" mutex. Currently the callout was marked
multi-processor safe, which is fine, but it is better to
start/stop/reset callouts while holding the "run" drivers own
mutex. While at it add a missing "ULL" at end of the 64-bit unsigned
integer constant.

MFC after: 1 week

10 years agoFix fallout from r257223. Since pf_test_state_icmp() can call
glebius [Tue, 5 Nov 2013 16:54:25 +0000 (16:54 +0000)]
Fix fallout from r257223. Since pf_test_state_icmp() can call
pf_icmp_state_lookup() twice, we need to unlock previously found state.

Reported & tested by: gavin

10 years agoClean up -Wtautological-compare -Wformat warnings.
pluknet [Tue, 5 Nov 2013 14:20:39 +0000 (14:20 +0000)]
Clean up -Wtautological-compare -Wformat warnings.

10 years agoAxe IFF_SMART.
glebius [Tue, 5 Nov 2013 14:11:31 +0000 (14:11 +0000)]
Axe IFF_SMART.

Submitted by: pluknet

10 years agoWhen writing DTS to a file, don't write some of it to stderr.
theraven [Tue, 5 Nov 2013 14:07:30 +0000 (14:07 +0000)]
When writing DTS to a file, don't write some of it to stderr.

Reported by: ray

10 years agoTeach nexus(4) about Open Firmware (e.g. FDT) on ARM and MIPS, retiring
nwhitehorn [Tue, 5 Nov 2013 13:48:34 +0000 (13:48 +0000)]
Teach nexus(4) about Open Firmware (e.g. FDT) on ARM and MIPS, retiring
fdtbus in most cases. This brings ARM and MIPS more in line with existing
Open Firmware platforms like sparc64 and powerpc, as well as preventing
double-enumeration of the OF tree on embedded PowerPC (first through nexus,
then through fdtbus).

This change is also designed to simplify resource management on FDT platforms
by letting there exist a platform-defined root bus resource_activate() call
instead of replying on fdtbus to do the right thing through fdt_bs_tag.
The OFW_BUS_MAP_INTR() and OFW_BUS_CONFIG_INTR() kobj methods are also
available to implement for similar purposes.

Discussed on: -arm, -mips
Tested by: zbb, brooks, imp, and others
MFC after: 6 weeks

10 years agoRemove condition which can never be true as the previous loop
bdrewery [Tue, 5 Nov 2013 13:36:05 +0000 (13:36 +0000)]
Remove condition which can never be true as the previous loop
is never exited while remote == NULL.

Reported by: Coverity
Approved by: bapt
MFC after: 2 days

10 years agoMFC @r257698.
ray [Tue, 5 Nov 2013 12:55:28 +0000 (12:55 +0000)]
MFC @r257698.

10 years agoAxe IFF_SMART. Fortunately this layering violating flag was never used,
glebius [Tue, 5 Nov 2013 12:52:56 +0000 (12:52 +0000)]
Axe IFF_SMART. Fortunately this layering violating flag was never used,
it was just declared.

10 years agoDrop support for historic ioctls and also undefine them, so that code
glebius [Tue, 5 Nov 2013 10:29:47 +0000 (10:29 +0000)]
Drop support for historic ioctls and also undefine them, so that code
that checks their presence via ifdef, won't use them.

Bump __FreeBSD_version as safety measure.

10 years ago- Fix link loss on vlan reconfiguration.
oleg [Tue, 5 Nov 2013 09:46:01 +0000 (09:46 +0000)]
- Fix link loss on vlan reconfiguration.
- Fix issues with 'vlanhwfilter'.

MFC after: 1 week
Silence from: jfv 5 weeks

10 years agoRemove remnants of BIND from /etc, since there is no BIND in base now.
glebius [Tue, 5 Nov 2013 09:30:06 +0000 (09:30 +0000)]
Remove remnants of BIND from /etc, since there is no BIND in base now.

Sorry, that would break users running head and BIND from ports, since
ports rely on these scripts. The ports will be fixed soon.

Reviewed by: erwin

10 years agonetinet code no longer uses IFA_RTSELF.
glebius [Tue, 5 Nov 2013 07:45:20 +0000 (07:45 +0000)]
netinet code no longer uses IFA_RTSELF.

10 years agoRewrite in_control(), so that it is comprehendable without getting mad.
glebius [Tue, 5 Nov 2013 07:44:15 +0000 (07:44 +0000)]
Rewrite in_control(), so that it is comprehendable without getting mad.

o Provide separate functions for SIOCAIFADDR and for SIOCDIFADDR, with
  clear code flow from beginning to the end. After that the rest of
  in_control() gets very small and clear.
o Provide sx(9) lock to protect against parallel ioctl() invocations.
o Reimplement logic from r201282, that tried to keep localhost route in
  table when multiple P2P interfaces with same local address are created
  and deleted.

Discussed with: pluknet, melifaro
Sponsored by: Netflix
Sponsored by: Nginx, Inc.

10 years agoFix libgcc build with gcc after r257645, by using -Wno-static-in-inline
dim [Tue, 5 Nov 2013 07:37:35 +0000 (07:37 +0000)]
Fix libgcc build with gcc after r257645, by using -Wno-static-in-inline
for clang only.

10 years agoIn complemence to ifa_add_loopback_route() and ifa_del_loopback_route()
glebius [Tue, 5 Nov 2013 07:36:17 +0000 (07:36 +0000)]
In complemence to ifa_add_loopback_route() and ifa_del_loopback_route()
provide function ifa_switch_loopback_route() that will be used in case when
an interface address used for a loopback route goes away, but we have another
interface address with same address value and want to preserve loopback
route.

Sponsored by: Netflix
Sponsored by: Nginx, Inc.

10 years agoRemove net.link.ether.inet.useloopback sysctl tunable. It was always on by
glebius [Tue, 5 Nov 2013 07:32:09 +0000 (07:32 +0000)]
Remove net.link.ether.inet.useloopback sysctl tunable. It was always on by
default from the very beginning. It was placed in wrong namespace
net.link.ether, originally it had been at another wrong namespace. It was
incorrectly documented at incorrect manual page arp(8). Since new-ARP commit,
the tunable have been consulted only on route addition, and ignored on route
deletion. Behaviour of a system with tunable turned off is not fully correct,
and has no advantages comparing to normal behavior.

10 years agoAdd required kernel option.
glebius [Tue, 5 Nov 2013 06:44:33 +0000 (06:44 +0000)]
Add required kernel option.

10 years agoMFV of 255902, tzdata2013f
edwin [Tue, 5 Nov 2013 06:32:23 +0000 (06:32 +0000)]
MFV of 255902, tzdata2013f
MFV of 257651, tzdata2013h

tzdata2013f
- Jordan goes to winter time on the last Friday in October.
- Tocantins in Brazil will not go into summer time in October.
- Indonesian time zones renames.
- Lots of cleanups in with regarding to links and historical data.

tzdata2013h
- Libya didn't go back to DST.
- Fix Morocco 2038 issue.
- Brazil/Acre and Western Amazonas are chaning timezones.

10 years agoDo not coalesce if the swap object belongs to tmpfs vnode. The
kib [Tue, 5 Nov 2013 06:18:50 +0000 (06:18 +0000)]
Do not coalesce if the swap object belongs to tmpfs vnode.  The
coalesce would extend the object to keep pages for the anonymous
mapping created by the process.  The pages has no relations to the
tmpfs file content which could be written into the corresponding
range, causing anonymous mapping and file content aliasing and
subsequent corruption.

Another lesser problem created by coalescing is over-accounting on the
tmpfs node destruction, since the object size is substracted from the
total count of the pages owned by the tmpfs mount.

Reported and tested by: bdrewery
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoUse suword32 and suword64 instead of copyout(9). This fixes a bug in the
markj [Tue, 5 Nov 2013 06:13:46 +0000 (06:13 +0000)]
Use suword32 and suword64 instead of copyout(9). This fixes a bug in the
emulation of the call instruction caused by reversing the uaddr and kaddr
arguments when copying data out to userland: the suword* functions take the
uaddr as the first argument whereas copyout(9) takes the kaddr as the first
argument. This also partially undoes the fixes from r257143.

Submitted by: Prashanth Kumar <pra_udupi@yahoo.co.in> (original version)
MFC after: 1 month

10 years agoRemove local devmap code and use the essentially identical common code
ian [Tue, 5 Nov 2013 05:18:18 +0000 (05:18 +0000)]
Remove local devmap code and use the essentially identical common code
that got moved from imx_machdep.c to arm/devmap.c.

10 years agoStyle and comment tweaks, no functional changes.
ian [Tue, 5 Nov 2013 05:01:46 +0000 (05:01 +0000)]
Style and comment tweaks, no functional changes.

10 years agoAdd new helper routines for arm static device mapping. The new code
ian [Tue, 5 Nov 2013 04:30:55 +0000 (04:30 +0000)]
Add new helper routines for arm static device mapping.  The new code
allocates kva space from the top down for the device mappings and builds
entries in an internal table which is automatically used later by
arm_devmap_bootstrap().  The platform code just calls the new
arm_devmap_add_entry() function as many times as it needs to (up to 32
entries allowed; most platforms use 2 or 3 at most).

There is also a new arm_devmap_lastaddr() function that returns the lowest
kva address allocated; this can be used to implement initarm_lastaddr()
which is used to initialize vm_max_kernel_address.

The new code is based on a similar concept developed for the imx family
SoCs recently.  They will soon be converted to use this new common code.

10 years agoMake PTE_DEVICE a synonym for PTE_NOCACHE on armv4, to make it easier to
ian [Tue, 5 Nov 2013 04:06:29 +0000 (04:06 +0000)]
Make PTE_DEVICE a synonym for PTE_NOCACHE on armv4, to make it easier to
share the same code on both architectures.

10 years agoAdd myself to the calendar.
markj [Tue, 5 Nov 2013 03:25:10 +0000 (03:25 +0000)]
Add myself to the calendar.

10 years agoModify the libproc breakpoint add/remove functions to stop the target
markj [Tue, 5 Nov 2013 03:23:54 +0000 (03:23 +0000)]
Modify the libproc breakpoint add/remove functions to stop the target
process if it has not already been stopped, since this is required for
ptrace(2) to work.

libdtrace does not seem to stop target processes before trying to remove
their breakpoints, so we were previously failing to remove the breakpoint
on r_debug_state() in rtld. This was causing processes to die with SIGTRAP
if they called dlopen(3) after dtrace(1) had detached.

Reported by: symbolics@gmx.com
Reviewed by: rpaulo
MFC after: 1 month

10 years agoCall initarm_lastaddr() later in the init sequence, after establishing
ian [Tue, 5 Nov 2013 02:57:34 +0000 (02:57 +0000)]
Call initarm_lastaddr() later in the init sequence, after establishing
static device mappings, rather than as the first of the initializations
that a platform can hook into.  This allows a platform to allocate KVA
from the top of the address space downwards for things like static device
mapping, and return the final "last usable address" result after that and
other early init work is done.

Because some platforms were doing work in initarm_lastaddr() that needs to
be done early, add a new initarm_early_init() routine and move the early
init code to that routine on those platforms.

Rename platform_devmap_init() to initarm_devmap_init() to match all the
other init routines called from initarm() that are designed to be
implemented by platform code.

Add a comment block that explains when these routines are called and the
type of work expected to be done in each of them.

10 years agoUse proper capitalization for FreeBSD.org
bdrewery [Tue, 5 Nov 2013 02:22:04 +0000 (02:22 +0000)]
Use proper capitalization for FreeBSD.org

Approved by: bapt
MFC after: 2 days

10 years agoEnable fingerprint checking as the currently known
bdrewery [Tue, 5 Nov 2013 02:20:49 +0000 (02:20 +0000)]
Enable fingerprint checking as the currently known
fingerprint has an uploaded signature on all mirrors.

Approved by: bapt
MFC after: 2 days

10 years agoremove some test code.
luigi [Tue, 5 Nov 2013 01:06:22 +0000 (01:06 +0000)]
remove some test code.

10 years agofix a bug when a device has 1 tx (or rx) queue and more than
luigi [Tue, 5 Nov 2013 00:56:07 +0000 (00:56 +0000)]
fix a bug when a device has 1 tx (or rx) queue and more than
one queue of a different type.

Submitted by: Vincenzo Maffione
MFC after: 3 days

10 years agocheck errors on return from netmap_attach()
luigi [Tue, 5 Nov 2013 00:50:59 +0000 (00:50 +0000)]
check errors on return from netmap_attach()

Submitted by: Giuseppe Lettieri
MFC after: 3 days

10 years agobmake does not have a -v option so remove it
luigi [Mon, 4 Nov 2013 23:46:20 +0000 (23:46 +0000)]
bmake does not have a -v option so remove it

10 years agoRemove the 'vdev' abstraction that was meant to sit on top of device models
neel [Mon, 4 Nov 2013 23:25:07 +0000 (23:25 +0000)]
Remove the 'vdev' abstraction that was meant to sit on top of device models
in the kernel. This abstraction was redundant because the only device emulated
inside vmm.ko is the local apic and it is always at a fixed guest physical
address.

Discussed with: grehan

10 years agoMove remaining code and data related to static device mapping into the
ian [Mon, 4 Nov 2013 22:45:26 +0000 (22:45 +0000)]
Move remaining code and data related to static device mapping into the
new devmap.[ch] files.  Emphasize the MD nature of these things by using
the prefix arm_devmap_ on the function and type names (already a few of
these things found their way into MI code, hopefully it will be harder to
do by accident in the future).

10 years agoFor C++ programs, don't emit any explicit dependency to libstdc++.a or
dim [Mon, 4 Nov 2013 21:54:56 +0000 (21:54 +0000)]
For C++ programs, don't emit any explicit dependency to libstdc++.a or
libc++.a during the early build stages (bootstrap-tools, build-tools,
cross-tools), since it is not possible to know in advance which C++
library is available on the host system.

Instead, just use the bootstrap compiler's built-in default.  This
should eventually make it possible to build stable/9 on head, or on
stable/10, which ship without libstdc++ by default.

X-MFC-With: 255431
MFC after: 3 days

10 years agoQuiesce warning assigning to void * from const ctf_header_t * by explicity casting
sbruno [Mon, 4 Nov 2013 21:32:07 +0000 (21:32 +0000)]
Quiesce warning assigning to void * from const ctf_header_t * by explicity casting
to void * before assignment.

Submitted as Illumos issue 4287

10 years agomdoc: remove EOL whitespace.
joel [Mon, 4 Nov 2013 21:28:36 +0000 (21:28 +0000)]
mdoc: remove EOL whitespace.

10 years agoRemove superfluous paragraph macro and add missing "the".
joel [Mon, 4 Nov 2013 21:27:21 +0000 (21:27 +0000)]
Remove superfluous paragraph macro and add missing "the".

10 years agocxgbe(4): Exclude MPS_RPLC_MAP_CTL (0x11114) from the register dump. Turns
np [Mon, 4 Nov 2013 21:06:21 +0000 (21:06 +0000)]
cxgbe(4): Exclude MPS_RPLC_MAP_CTL (0x11114) from the register dump.  Turns
out it's a write-only register with strange side effects on read.

Submitted by: gnn
MFC after: 3 days

10 years agoDefer loading of kernel and modules if the beastie menu is enabled. Add a
dteske [Mon, 4 Nov 2013 20:28:10 +0000 (20:28 +0000)]
Defer loading of kernel and modules if the beastie menu is enabled. Add a
kernel selection menu to the beastie menu. List of kernels is taken from
`kernels' in loader.conf(5) as a space (or comma) separated list of names
to display (up to 9). If not set, default value is "kernel kernel.old".
Does not validate that kernels exist because the next enhancement will be
to allow selection of the root device.

Discussed on: -current
MFC after: 3 days

10 years agoThis files should have been included in r257648.
ian [Mon, 4 Nov 2013 20:00:21 +0000 (20:00 +0000)]
This files should have been included in r257648.

10 years agoBegin reducing code duplication in arm pmap.c and pmap-v6.c by factoring
ian [Mon, 4 Nov 2013 19:44:37 +0000 (19:44 +0000)]
Begin reducing code duplication in arm pmap.c and pmap-v6.c by factoring
out common code related to mapping device memory into a new devmap.c file.

Remove the growing duplication of code that used pmap_devmap_find_pa() and
then did some math with the returned results to generate a virtual address,
and likewise in reverse to get a physical address.  Now there are a pair
of functions, arm_devmap_vtop() and arm_devmap_ptov(), to do that.  The
bus_space_map() implementations are rewritten in terms of these.

10 years agospelling in comments fixup
sbruno [Mon, 4 Nov 2013 19:32:35 +0000 (19:32 +0000)]
spelling in comments fixup

Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de>

10 years agoUse OpenBSD's revamped description of strlcpy and strlcat.
eadler [Mon, 4 Nov 2013 19:05:31 +0000 (19:05 +0000)]
Use OpenBSD's revamped description of strlcpy and strlcat.

This explanation is supposed to be simpler and better.  In particular
"comparing it to the snprintf API provides lots of value, since it raises the
bar on understanding, so that programmers/auditors will a better job calling
all 3 of these functions."

Requested by: deraadt@cvs.openbsd.org
Obtained From: OpenBSD
Reviewed by: cperciva

10 years agoQuiesce warning around gcc_assert() for an inline macro that uses
sbruno [Mon, 4 Nov 2013 18:15:45 +0000 (18:15 +0000)]
Quiesce warning around gcc_assert() for an inline macro that uses
a static variable.  This code has been moved around in gcc, but is still in
use in the latest trunk version of the compiler.

gnu/lib/libgcc/../../../contrib/gcc/unwind-dw2.c:208:36:
      warning: static variable 'dwarf_reg_size_table' is used in an inline
               function with external linkage [-Wstatic-in-inline]
gcc_assert (index < (int) sizeof(dwarf_reg_size_table));

10 years agoDocument RB_FOREACH_SAFE() and RB_FOREACH_REVERSE_SAFE().
glebius [Mon, 4 Nov 2013 16:56:35 +0000 (16:56 +0000)]
Document RB_FOREACH_SAFE() and RB_FOREACH_REVERSE_SAFE().

Submitted by: Mikhail <mp lenta.ru>

10 years agoQuiesce warning about unused argument in call to rl_message() by wrapping
sbruno [Mon, 4 Nov 2013 16:52:27 +0000 (16:52 +0000)]
Quiesce warning about unused argument in call to rl_message() by wrapping
this call with the same #if defined (PREFER_STDARG) directive as in display.c

Using -E to compile display.c/search.c shows that this is the code chosen by
the build when we create libreadline