Commit Graph

159488 Commits

Author SHA1 Message Date
he
bd8f620dfb Modify the gcc configure script to allow override of the "target libc
has ssp functions built-in" test via the TARGET_LIBC_PROVIDES_SSP environment
variable, to allow us to configure a cross-compiler appropriately without
having to try to find out by looking in the target's source directory.

Tweak our build to tell gcc that the ssp bits are now in libc.

The native compiler appears to already think that the ssp bits
live in libc, so no change appears to be needed there.

The autoconf-generated configure script will be committed separately shortly.
2007-06-07 08:58:58 +00:00
yamt
7225d589de remove a duplicated definition of FFS_ITIMES. 2007-06-07 05:34:48 +00:00
rjs
cc949d333c Make format directive match type of of_buflen. 2007-06-06 23:43:56 +00:00
njoly
abfea2f7ae Remove duplicated AMD K8 MSR definitions, already in x86 specialreg.h
file.

ok by xtraeme.
2007-06-06 20:40:11 +00:00
briggs
ac798ebce1 Dynamically allocate the buffer used for reading data from the input
handle and default to 64k instead of the 1k (BUFSIZ) static buffer.
This makes a large difference in performance of some applications.
Make the buffer size tunable from the command line.
2007-06-06 17:49:14 +00:00
rjs
ef2a6ab865 Wrap ktrace calls with #ifdef KTRACE. 2007-06-06 17:08:27 +00:00
vanhu
6ae0ffb7d9 From Rong-En Fan: fix compilation with gcc 4.2 2007-06-06 15:37:15 +00:00
vanhu
cc41629a4c fixed compilation with gcc 4.2 2007-06-06 15:37:14 +00:00
martti
d405da7f9d Use "mktemp -d -t xxx" to create the temporary directories. This will use
TMPDIR environment variable if set, otherwise use /tmp.  (misc/35544)
2007-06-06 13:30:47 +00:00
soda
7dd0dd9e6b modify a comment in previous change 2007-06-06 13:21:28 +00:00
vanhu
6817ea28d9 speeds up interfaces update when they changed 2007-06-06 09:47:30 +00:00
vanhu
1ed22670fa From Jianli Liu: speed up interfaces update when they change. 2007-06-06 09:47:29 +00:00
yamt
a4a20623eb nfs_getattrcache: simplify. no functional changes. 2007-06-06 09:23:55 +00:00
vanhu
7c53bfe0b6 ignore obsolete lifebyte when validating reloaded configuration 2007-06-06 09:18:16 +00:00
martin
7003cf1903 regen 2007-06-06 08:21:08 +00:00
martin
400bdf5863 Add pseudo-device agr 2007-06-06 08:20:26 +00:00
martin
fda9709385 Add pseudo-device agr to more kernels 2007-06-06 08:19:10 +00:00
martin
0cfdef558a regen 2007-06-06 08:16:10 +00:00
martin
094e363596 Grr, do the addition of pseudo-device agr the right way 2007-06-06 08:15:54 +00:00
martin
cf9773f5c0 It is "data_start" not "data" - pointed out by Tom Spindler 2007-06-06 07:56:39 +00:00
rillig
f1ed085bcf Explained the word "new" in the first paragraph. 2007-06-06 06:18:39 +00:00
rillig
54195a73e6 Increased WARNS to 4, since it passes both gcc333 and gcc411 on i386. 2007-06-06 06:10:50 +00:00
pooka
f8326bf98e Move puffs to a two clause license where it already isn't so. And
as agc pointed out, even files with the third clause were already
effectively two clause because of a slight bug in the language...
2007-06-06 01:54:59 +00:00
pooka
e2819ad1be In very verbose debug mode, print also return values for operations
(well, at least for those that go through checkop()).
2007-06-06 01:33:10 +00:00
dyoung
4d1beb764e Make ADM5120 boards use the "common" disk subroutines, such as
readdisklabel(9), which are better than the evbmips disk subroutines
at finding a BSD disklabel at a different location than the evbmips
default of sector 0, offset 64.  Helps me boot a RouterBOARD 153
from a CompactFlash containing both a Master Boot Record at sector
0, and a BSD disklabel at sector 1, offset 0.
2007-06-05 21:53:10 +00:00
dyoung
6f3106eba2 Let the operator use the DISKLABELSECTOR and DISKLABELOFFSET
environment variables to override the sector number, and the
bytes-offset in the sector, where disklabel(8) writes a disklabel.

If disklabel(8) was compiled as a host tool, then the defaults
still come from the port's LABELOFFSET and LABELSECTOR #defines.
Otherwise, the defaults still come from the sysctls, kern.labelsector
and kern.labeloffset.

This change helps me create a bootable CompactFlash image with both
a Master Boot Record (MBR) and a BSD disklabel for the RouterBOARD
153.  The RB 153 is an evbmips board with a CompactFlash slot.  It
searches the MBR on a CompactFlash card for a partition containing
an ELF kernel.  When disklabel(8) is built for evbmips, it will
ordinarily overwrite an MBR with the BSD disklabel.
2007-06-05 21:48:46 +00:00
christos
41101b58c8 Add RCSID's to help files and centralize the function to cat the help files. 2007-06-05 17:50:22 +00:00
wiz
8c64f063a1 Apply SODA Nuriyuki's patch for multibyte support.
Based on soda-revised2.patch (in private mail) with a change from
soda on tech-userlevel.

Ok christos@.
2007-06-05 17:48:19 +00:00
yamt
da51d139a4 improve post-ubc file overwrite performance in common cases.
ie. when it's safe, actually overwrite blocks rather than doing
read-modify-write.

also fixes PR/33152 and PR/36303.
2007-06-05 12:31:30 +00:00
pooka
ae34899ec3 make getopt() actually accept -t also 2007-06-05 12:20:35 +00:00
yamt
962e1166fd add a missing dependency. 2007-06-05 12:14:33 +00:00
mishka
d7d886db87 Our VLAN implementation (as it correctly expected) is not allowed
to modify the whole VLAN tags, but it is permitted to change 12-bit
VLAN identificators only. Reflect this fact on the appropriate man
pages.

Antti Kantee and Mihai Chelaru from #netbsd-code were helpful in
better understanding of VLAN stuff. Thank you!
2007-06-05 11:15:15 +00:00
martin
3ab04256ac Use the new loadfile() marker MARK_DATA to optimize the loaded kernel
mappings before calling the entry point - change text mappings to read
only and only insert those into the iTLB.
While there remove a few magic constants by information queried from
the firmware.
2007-06-05 08:52:20 +00:00
martin
933b671bfa Add a MARK_DATA marker containing the effective VA of the first loaded
data segment.
2007-06-05 08:48:49 +00:00
mhitch
bbb24892dd Page table sizes depend on pagesize - fix M68K_MAX_PTSIZE to account for
pagesize.  M68K_MAX_KPTSIZE also dependent on pagesize, and was 1/4 the
maximum size of a user pagetable.
2007-06-05 04:52:07 +00:00
mhitch
f8884f1979 Switch amiga to common m68k include files, pcb.h, pmap_motorola.h, and
pte_motrola.h.
2007-06-05 04:46:27 +00:00
briggs
f82d990bc1 Bring in changes from FreeBSD...
* Allocate commands on-demand.
* Update a bunch of constants and some structures.
* Use __attribute__ ((__packed__)) instead of __packed to be consistent.
* Support more commands for devices that can apparently handle them.
* Support a "new comm. interface" present in more recent Adaptec
  firmware.  This reduces the amount of PCI bus traffic in handling
  commands.
* Support larger commands going to the adapter--if the adapter can
  support them.
* Support 64-bit commands for archs where sizeof(bus_addr_t) > 4 and
  for adapters that advertise SGMAP64.
* Handle the WINDOW4G option and NO4GB quirk by excluding 2G-4G window
  unless we have the WINDOW4G capability without the NO4GB quirk.
* Ask the adapter more about its capabilities and try to use those if
  they seem sane.
* Do our bus_dmamap_sync() inside dequeue_fib instead of following,
  since we have the information that we need there.
* Provide access functions for some adapters that I haven't seen yet
  (MIPS-based "Rocket" adapters).  Not yet used.
2007-06-05 04:04:13 +00:00
lukem
d5855ca07b Enforce restriction that (http) proxied URL fetchs don't support
being restarted at this time.
PR #28697.
2007-06-05 00:31:20 +00:00
xtraeme
e0ea4d6215 By popular demand, ANSIfy to be able to diff easily with amd64. 2007-06-05 00:12:54 +00:00
xtraeme
abb9640a6e Ansify, de-__P(). 2007-06-04 23:24:14 +00:00
xtraeme
cb24dd04a8 Ansify, de-__P(), unregister. 2007-06-04 23:15:00 +00:00
dsl
3e4175ccc9 Fix select() without a timeout parameter. 2007-06-04 21:02:22 +00:00
christos
a8565cf99b handle fortify, ansify. 2007-06-04 18:19:26 +00:00
christos
2219d66ee7 PR/36440: Martin Husemann: rpcbind complains about non-errors.
Don't complain about EAFNOSUPPORT.
2007-06-04 18:00:51 +00:00
xtraeme
dfa04859c6 Add four missing bits for CPUID2_FLAGS, from FreeBSD. 2007-06-04 16:21:29 +00:00
xtraeme
4b7555434a - Use aprint_verbose for consistency with i386 (suggested by ad).
- Wrap long lines.
2007-06-04 14:45:32 +00:00
xtraeme
1744412928 Print Intel CPUID extended features if they are available, also
simplify ci_feature2_flags and use directly CPUID2_FLAGS on
bitmask_snprintf(9).

Now I can see the same CPUID features than on i386:

$ dmesg|grep -E '(cpu0.*features)'
cpu0: features: bffbfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features: bffbfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,B20,DS,ACPI,MMX>
cpu0: features: bffbfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2: 649d<SSE3,MONITOR,DS-CPL,EST,CID,xTPR>
cpu0: features3: bffbfbff<SYSCALL/SYSRET,XD,EM64T>
$

Ok'ed by Andrew Doran.
2007-06-04 14:34:37 +00:00
martti
fff7fd04df s/iplattach/ipfattach/ and s/ipldetach/ipfdetach/ 2007-06-04 12:38:58 +00:00
jnemeth
8d9552c610 PR/36436 - Joerg Niendorf -- missing "the" 2007-06-04 11:08:36 +00:00
martin
c2534a819b Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
2007-06-04 08:55:18 +00:00