Commit Graph

183188 Commits

Author SHA1 Message Date
dsl f155f3b8b9 The code that attempted to sort large files by sorting each chunk by the
first key byte and writing to a temp file, then sorting the records from
each temp file that had the same first key byte (and repeating for upto
4 key bytes) was a nice idea, but completely doomed to failure.
Eg PR/9308 where a 70MB file has all but one record the same and short keys.
Not only does the code not work, it is rather guaranteed to be slow.
Instead always use a merge sort for fully sorted chunk of records (each
temporary file contains one lot of sorted records).
The -H option already did this, so just rip out all the code and variables
that can't be used when -H was specified.
Further cleanup to come ...
2009-08-18 18:00:28 +00:00
thorpej 2864afa106 Delete some vanity configs, esp. now that the machines no longer exist. 2009-08-18 17:52:30 +00:00
dyoung 5a395386a7 Let us detach ichlpcib(4) and its children.
XXX More testing is needed.  I've tested this on a Dell Dimension 3000,
XXX but that system does not attach every possible device that I try to
XXX detach with this code:

ichlpcib0 at pci0 dev 31 function 0
ichlpcib0: vendor 0x8086 product 0x24d0 (rev. 0x02)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
ichlpcib0: TCO (watchdog) timer configured.
isa0 at ichlpcib0
2009-08-18 17:47:46 +00:00
drochner 05a121bdc4 use __builtin_va_start rather than __builtin_stdarg_start for gcc>=4.1,
I don't know why it was made that inconsistent at that time, but
the in-tree gcc-4.1 works with that, and gcc-4.4.1 removes builtin
support for old style varargs.
2009-08-18 17:40:39 +00:00
plunky b486cef1fe update the "Class of Device" information, now that the Assigned Numbers
documents are available at www.bluetooth.com
2009-08-18 17:40:31 +00:00
dyoung 78e9d89046 Make the 'tags' target work by borrowing stuff from sys/arch/i386/Makefile. 2009-08-18 17:21:51 +00:00
dyoung 1a1d6a2158 Remove code bracketed by #ifdef __FreeBSD__. 2009-08-18 17:20:20 +00:00
dyoung 9b779d6eb6 Allow detachment and re-attachment of an ISA bus at an PCI-ISA bus
bridge, isa0 at pcib0.
2009-08-18 17:15:10 +00:00
jmcneill d24e908507 Build fixes for NetBSD. 2009-08-18 17:13:09 +00:00
jmcneill 6d58ca2204 Build fix for amd64. 2009-08-18 17:09:25 +00:00
dyoung 62dca01035 Add a bus-independent detachment routine. In the attachment routine,
save some device state to restore during detachment.
2009-08-18 17:06:35 +00:00
dyoung 47b66b70d9 These are stragglers from my last commit ("Let us safely detach
the ISA bus and devices attaching to the ISA bus").  Define
isa_detach_hook() in MD ISA implementations.  Define isa_dmadestroy().
2009-08-18 17:02:00 +00:00
jmcneill 4f823b1d6b Add intel-public license. 2009-08-18 16:53:29 +00:00
dyoung 40bc016e8a Let us safely detach the ISA bus and devices attaching to the ISA
bus:

1 Add isadetach() for detaching the ISA bus, and add some helper
  routines that release resources held for ISA DMA.

2 In isachilddetached(), forget references to child devices.

While I am here, change ISA_DMA_DRQ_ISFREE(...) == 0 to the simpler
expression, !ISA_DMA_DRQ_ISFREE(...).
2009-08-18 16:52:42 +00:00
jmcneill b8d6b79b67 acpi(4): Updated ACPICA to 20090730. This release includes full
support for the ACPI 4.0 specification. [jmcneill 20090818]
2009-08-18 16:49:24 +00:00
jmcneill a8fec90e57 acpica has been moved to src/sys/external/intel-public/acpica 2009-08-18 16:44:10 +00:00
jmcneill b0fb7abfad Switch to ACPICA 20090730, and update for API changes. 2009-08-18 16:41:02 +00:00
jmcneill 1448e5faf7 config glue for acpica 2009-08-18 16:38:51 +00:00
jmcneill 2e3763cf26 Build fixes for NetBSD. 2009-08-18 16:26:10 +00:00
jmcneill 70fe0f31af initial import of acpica-20090730 2009-08-18 16:23:28 +00:00
skrll 3734e9d3e6 Make binutils stuff conditional on HAVE_BINUTILS being 216. 2009-08-18 15:11:25 +00:00
skrll 6d622a3f1b Build binutils 2.19.1 if HAVE_BINUTILS is 219 2009-08-18 15:08:51 +00:00
skrll 530afcf96c Add HAVE_BINUTILS and default to 2.16 2009-08-18 14:53:00 +00:00
drochner eec7391fde remove some "inline" from functions which are defined in a .c file
but used elsewhere -- gcc-4.4.1 doesn't like it and I doubt it
had any effect
2009-08-18 11:22:09 +00:00
drochner c8bb344c69 put some strange text within an "#if 0"'d section into a comment
additionally to appease picky parsers
2009-08-18 11:15:43 +00:00
drochner c3b5cc8150 comparision with a string literal by "==" can't work (found by gcc-4.4.1),
replace with strcmp()
2009-08-18 11:12:05 +00:00
drochner 652d1aa912 rename a macro which is used to typecast constant strings from "U"
to "UC" -- there is a draft paper (ISO/IEC DTR 19769) which defines
that U"xxxx" is a UTF-32 literal, and gcc-4.4.1 implements this
with -std=gnu99
2009-08-18 11:08:37 +00:00
skrll 2a6b7db32d Import binutils 2.19.1 as requested by matt@
OK'ed by board@
2009-08-18 10:16:42 +00:00
he 8813af9cf2 No longer rely on <sys/exec.h> including <sys/exec_aout.h>.
Hi, matt@!
2009-08-18 09:22:47 +00:00
vanhu e2ffc89458 typo: algoritym -> algorithm 2009-08-18 08:21:12 +00:00
cegger d708daccf1 fix multicast. 2009-08-18 06:02:36 +00:00
cegger f68c98340e don't read/write 1000baseT specific MII registers on 10/100M only device.
from OpenBSD.
2009-08-18 05:50:55 +00:00
yamt 3327cc53ca fix whitespace. no functional changes. 2009-08-18 05:05:56 +00:00
dogcow 9098338f79 Instead of exiting with an obscure error message if -N /kernelname isn't
specified, blithely assume the kernel will consume around 20 megs.
2009-08-18 04:02:39 +00:00
yamt f97310f398 whitespace fixes. no functional changes. 2009-08-18 02:43:49 +00:00
yamt 9373b602f6 uvm_mmap: remove a dead conditional. 2009-08-18 02:41:31 +00:00
christos d78b2ab1fc 1. some of the video24linux structs are not as machine independent as their
authors want them to be. For the buffer ioctls, define new ioctls with
   the 32 bit buffer sizes. For the format struct, define it as packed
   so it is the same on 32 and 64 bit. (I might need to version this)
2. the mmapped buffers need to be page aligned, otherwise mmap(2) does
   not work. Make it so.
All this makes my ricoh camera work with emul-linux and skype running on
amd64. Next is sound!
2009-08-18 02:17:09 +00:00
christos f73ec80b69 more debugging for mmap 2009-08-18 02:04:14 +00:00
christos fc0d883cc1 add the video ioctls so that the 32 bit skype works with video
more commits to come
2009-08-18 02:02:58 +00:00
macallan f969e73dbf we need sys/exec_aout.h here
CV: Enter Log.  Lines beginning with `CVS:' are removed automatically
2009-08-18 00:15:37 +00:00
dyoung 40ca2d34bc Delete trailing whitespace. 2009-08-17 22:58:28 +00:00
bouyer 7095ec7992 fix pasto: UFS_WAPBL_FLAGS_CREATE_LOG is "create-log" not "clear-log" 2009-08-17 21:28:24 +00:00
dsl bd1feaa197 Add support for R_ARM_PC24 relocations and fix R_ARM_ABS32.
Changes from PR/40309, but structure changed so there is a common error printf.
Compiles ok, but my quick kernel build failed to find module_init_md().
2009-08-17 19:44:32 +00:00
thorpej 84c3000008 pmap_page_remove(), pmap_test_attrs(), pmap_clear_attrs(): We're passed in
a vm_page, so there is little point in the DIAGNOSTIC test to see that we
have been passed a managed page.
2009-08-17 19:33:07 +00:00
matt ee30a0da61 Use mips3_sd instead of two 32bit stores. 2009-08-17 18:57:34 +00:00
matt 852d6f5d31 Only include md_uptes if USPACE > PAGE_SIZE 2009-08-17 18:56:09 +00:00
matt e7693e1d73 Don't install aout_machpep.h and bsd-aout.h 2009-08-17 18:55:11 +00:00
cegger f7b6b09d0b Apply fix from upstream:
http://git.moblin.org/cgit.cgi/acpica/commit/?id=26a2eea9f4a18acb0ba2a92070d945d9835df948

I uncovered the bug by having the console flooded with:

ACPI Error (evgpe-0896): No handler or method for GPE[ 0], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[ 1], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[ 2], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[ 4], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[ 5], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[ 6], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[ 7], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[ 8], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[ 9], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[ A], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[ B], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[ C], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[ D], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[ E], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[ F], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[10], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[11], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[12], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[13], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[14], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[15], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[16], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[17], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[18], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[19], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[1A], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[1B], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[1C], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[1D], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[1E], disabling event [20080321]
ACPI Error (evgpe-0896): No handler or method for GPE[1F], disabling event [20080321]

and with breaking into ddb:

ACPI Error (evgpe-0899): No handler or method for GPE[ 0], disabling event [20080321]
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip ffffffff8020c1fd cs e030 rflags 296 cr2  0 cpl 8 rsp ffffffff80f32c98
Stopped in pid 0.1 (system) at  netbsd:breakpoint+0x5:  leave
breakpoint() at netbsd:breakpoint+0x5
AcpiEvGpeDispatch() at netbsd:AcpiEvGpeDispatch+0x9f
AcpiEvGpeDetect() at netbsd:AcpiEvGpeDetect+0x136
AcpiEvSciXruptHandler() at netbsd:AcpiEvSciXruptHandler+0x46
Xresume_xenev6() at netbsd:Xresume_xenev6+0x55

With this merged fix console is no longer flooded and I get in dmesg:

ACPI Exception (evevent-0165): AE_BAD_ADDRESS, Unable to initialize fixed events [20080321]
acpi0: unable to enable ACPI: AE_BAD_ADDRESS

Upstream fix pointed out by jmcneill@, merged fix ok'd by joerg@.
2009-08-17 15:36:10 +00:00
mbalmer 7f90e7624f Add struct pcib_softc to the gscpcib's softc, it is needed since we call
pcibattach() later.  This fixes the driver and lets the GPIO pins attach.
While here, remove the empty gscpcib_childdetach function.  Fixes GPIO
on my Soekris net4801 where I can now control the error LED...

"please commit" joerg@
2009-08-17 14:18:58 +00:00
joerg 81e49626c4 GCC doesn't trace switch (foo & 7) completely, so add a default: abort()
to avoid warnings about unused variables.
Consistently use \t for the output function.
2009-08-17 14:15:07 +00:00