NetBSD re-synchronization of the source tree

This brings our tree to NetBSD 7.0, as found on -current on the
10-10-2015.

This updates:
 - LLVM to 3.6.1
 - GCC to GCC 5.1
 - Replace minix/commands/zdump with usr.bin/zdump
 - external/bsd/libelf has moved to /external/bsd/elftoolchain/
 - Import ctwm
 - Drop sprintf from libminc

Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
This commit is contained in:
2015-10-15 17:01:16 +02:00
parent 8933525b85
commit 0a6a1f1d05
32425 changed files with 2998623 additions and 1342348 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: edid.c,v 1.12 2013/02/08 16:35:10 skrll Exp $ */
/* $NetBSD: edid.c,v 1.13 2014/11/17 00:46:04 jmcneill Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: edid.c,v 1.12 2013/02/08 16:35:10 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: edid.c,v 1.13 2014/11/17 00:46:04 jmcneill Exp $");
#include <sys/param.h>
#if defined(__minix)
@@ -295,6 +295,8 @@ edid_print(struct edid_info *edid)
DIVIDE(DIVIDE(edid->edid_preferred_mode->dot_clock * 1000,
edid->edid_preferred_mode->htotal),
edid->edid_preferred_mode->vtotal));
printf("Number of extension blocks: %d\n", edid->edid_ext_block_count);
}
static const struct videomode *
@@ -578,6 +580,8 @@ edid_parse(uint8_t *data, struct edid_info *edid)
edid->edid_chroma.ec_whitex = EDID_CHROMA_WHITEX(data);
edid->edid_chroma.ec_whitey = EDID_CHROMA_WHITEY(data);
edid->edid_ext_block_count = EDID_EXT_BLOCK_COUNT(data);
/* lookup established modes */
edid->edid_nmodes = 0;
edid->edid_preferred_mode = NULL;

View File

@@ -1,4 +1,4 @@
/* $NetBSD: edidreg.h,v 1.3 2011/03/30 18:49:56 jdc Exp $ */
/* $NetBSD: edidreg.h,v 1.4 2014/11/17 00:46:04 jmcneill Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@@ -250,4 +250,6 @@
#define EDID_DESC_STD_TIMING_START 5
#define EDID_DESC_STD_TIMING_COUNT 6
#define EDID_EXT_BLOCK_COUNT(ptr) ((ptr)[126])
#endif /* _DEV_VIDEOMODE_EDIDREG_H */

View File

@@ -1,4 +1,4 @@
/* $NetBSD: edidvar.h,v 1.2 2006/05/11 19:05:41 gdamore Exp $ */
/* $NetBSD: edidvar.h,v 1.3 2014/11/17 00:46:04 jmcneill Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@@ -75,6 +75,7 @@ struct edid_info {
uint8_t edid_max_vsize; /* in cm */
uint8_t edid_gamma;
uint8_t edid_features;
uint8_t edid_ext_block_count;
int edid_have_range;
struct edid_range edid_range;

View File

@@ -36,11 +36,9 @@ __KERNEL_RCSID(0, "$NetBSD: pickmode.c,v 1.4 2011/04/09 20:53:39 christos Exp $"
#if !defined(__minix)
#include "opt_videomode.h"
#else
#include <lib/libkern/libkern.h>
#include <minix/sysutil.h>
#endif /* !defined(__minix) */
#ifndef abs
#define abs(x) (((x) < 0) ? -(x) : (x))
#endif
#ifdef PICKMODE_DEBUG
#define DPRINTF printf

View File

@@ -1,4 +1,4 @@
/* $NetBSD: vesagtf.c,v 1.2 2013/09/15 15:56:07 martin Exp $ */
/* $NetBSD: vesagtf.c,v 1.3 2014/03/21 22:00:00 dholland Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@@ -38,7 +38,7 @@
* Note that I have heavily modified the program for use in the EDID
* kernel code for NetBSD, including removing the use of floating
* point operations and making significant adjustments to minimize
* error propogation while operating with integer only math.
* error propagation while operating with integer only math.
*
* This has required the use of 64-bit integers in a few places, but
* the upshot is that for a calculation of 1920x1200x85 (as an
@@ -153,7 +153,7 @@
#ifdef _KERNEL
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vesagtf.c,v 1.2 2013/09/15 15:56:07 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: vesagtf.c,v 1.3 2014/03/21 22:00:00 dholland Exp $");
#include <sys/types.h>
#include <sys/param.h>
#include <sys/systm.h>
@@ -343,7 +343,7 @@ vesagtf_mode_params(unsigned h_pixels, unsigned v_lines, unsigned freq,
*
* Finally we multiply by another 1000, to get value in picosec.
* Why picosec? To minimize rounding errors. Gotta love integer
* math and error propogation.
* math and error propagation.
*/
h_period_est = DIVIDE(((DIVIDE(2000000000000ULL, v_field_rqd)) -
@@ -402,7 +402,7 @@ vesagtf_mode_params(unsigned h_pixels, unsigned v_lines, unsigned freq,
* [V FIELD RATE EST] = 1000000000 / [H PERIOD EST] / [TOTAL V LINES]
*
* This is all scaled to get the result in uHz. Again, we're trying to
* minimize error propogation.
* minimize error propagation.
*/
v_field_est = DIVIDE(DIVIDE(1000000000000000ULL, h_period_est),
total_v_lines);
@@ -495,7 +495,7 @@ vesagtf_mode_params(unsigned h_pixels, unsigned v_lines, unsigned freq,
*
* The ending result is that our ideal_duty_cycle is 256000x larger
* than the duty cycle used by VESA. But again, this reduces error
* propogation.
* propagation.
*/
ideal_duty_cycle =