gdb - Local mods (compile)
Merge remote-tracking branch 'leaf/vendor/GDB' Conflicts: contrib/gcc-4.7/gcc/doc/include/gpl_v3.texi contrib/gdb-7/gdb/common/ptid.h contrib/gdb-7/gdb/configure.host contrib/gdb-7/gdb/configure.tgt contrib/gdb-7/gdb/defs.h contrib/gdb-7/gdb/exec.c contrib/gdb-7/gdb/main.c contrib/gdb-7/gdb/osabi.c contrib/gdb-7/include/libiberty.h
sbin/fdisk: cleanups This patch provides set of cleanups for the sbin/fdisk util. 1. MBRSIGOFF macro removed. Use the DOSMAGICOFFSET macro instead which is already defined in the <sys/diskmbr.h>. 2. Global variable iotest removed. It was used in the write_sr0() function before. We checked this variable and it it was set we just printed information about zero sector and exited from the write_sr0(). Actually, this variable wasn't set never and never used anywhere. For this point we already have the `-t` flag which prevents writing of sector 0. 3. Unused macros removed. 4. Unused functions removed. 5. MAX_SECTORS_PER_TRACK and MIN_SECTORS_PER_TRACK macros are added. 6. Fixed order of DIOCWLABEL ioctl in the write_sr0(). 7. Indentation fixed.
boot0cfg: use getdevpath() instead of custom function We are using mkrdev function in the boot0cfg.c to prduce a device path from the given command line argument. The <fstab.h> provides the getdevpath() function that does the same but in more general way. Let's use function from the libc instead of custom.
boot/libi386: use macros from <machine/psl.h> to represent eflags's bits The libi386's source code contains some checks of the EFLAGS's bits. In the same time the <machine/psl.h> header file provides macros which represents these bits. Let's use human readable names instead of numbers.
boot0 refactoring The patch provides refactoring for the sys/boot/pc32/boot0.S assembly file to imrove readability and comprehensibility of assembly code. The main changes are: Two new symbols added: the _SECTOR_FIELD_OFF which provides offset for the 'sector' field in CHS and the _DATA_OFF which provides offset for the boot0 data from the partition table. We can use these symbols instead of magic numbers in the code. The second change is updating comments in some place. The patch was tested as in virtual machine as in real hardware.
boot0cfg: check result of malloc in read_mbr() We allocating buffer for MBR in the read_mbr() function. The malloc() may return NULL, so this patch checks the result of the malloc and exit with the error if we can't allocate memory. Besides this we close file descriptor.
drm: Fix ww mutex crtc locking * The original code had many problems: - the ctx wasn't available to drm_modeset_unlock(). - 'struct list_head' was used for both the list head AND the list entry It's like it was coded to create maximum confusion on top of maximum pain * drm_modeset_acquire_ctx structure needs a second list which we add kmalloc()'d entries to to track the extra locks in the EALREADY case * Replace the reference from the modeset_lock structure with a pointer to an intermediate (kmalloc'd) structure that references both and turn the list entry in the lock into a list head Submitted-by: Matthew Dillon <dillon@apollo.backplane.com>
sbin/hammer: Remove vol_alloc from volume_info vol_alloc is a fixed sized space before boot/mem/buf area that the filesystem doesn't recognize once initialized. (This area is currently used for nothing)
sbin/hammer: Remove global variable NumVolumes Only newfs_hammer uses this, but doesn't need to be global. (Keeping a number of volumes isn't that important either, because it can be retrieved directly from volume headers or by counting the number of elements in the volume_info list)