Commit Graph

79444 Commits

Author SHA1 Message Date
gdamore e67db332d1 Remove pointless (unused) dependency upon pb1000 evbmips headers. 2006-02-08 08:49:49 +00:00
uwe 175260c2de sh3_vector_tlbmiss: don't waste perfectly good delay slots. 2006-02-08 02:19:57 +00:00
uwe 33c4e018e2 While here, shave off few bytes and few cycles off of the sh3_vector_tlbmiss.
Since the registers we use are at the very end of address space, we
can load their addresses as small immediate negative constants instead
of loading them from memory.
2006-02-08 00:32:06 +00:00
uwe 9621f44368 Pass untruncated va=TEA to tlb_exception(), not its VPN. 2006-02-07 23:56:20 +00:00
rpaulo 99513cfd59 In pf_socket_lookup() fix copy & paste problem when in6_pcblookup_bind()
returns NULL.
2006-02-07 22:53:03 +00:00
bouyer 36d7bdd35a Add back proper MPBIOS/MPACPI handling. 2006-02-07 20:38:43 +00:00
bouyer c071d3b194 Add another missing ch_ndrive initialization. 2006-02-07 20:37:24 +00:00
wiz 9037345f22 Add a /* CONSTCOND */ for lint. 2006-02-07 20:10:48 +00:00
gdamore d240b42509 renamed pb1000_intr to reflect that it isn't board-specific. Prune unused
pb1000_intr_establish/disestablish calls.

Change was reviewed by folks as part of PCI changes, and should be
non-controversial in any case.
2006-02-07 18:57:12 +00:00
cube 6961689092 Regen, correctly this time. Sorry for the mess. 2006-02-07 17:23:23 +00:00
cube 60c0881da6 I wonder how the leading junk arrive there... 2006-02-07 17:21:56 +00:00
xtraeme ecc3ede39b regen 2006-02-07 17:20:47 +00:00
cube ed82703cc5 Add PLX's 9054 I/O Accelerator. 2006-02-07 17:15:54 +00:00
chs 24b808d88e reduce MAXSSIZ to 32 MB, like most other ports. fixes PR 30918. 2006-02-07 16:55:31 +00:00
simonb 5e4cb2fced Fix END symbol so that it matches START symbol for prom_write. 2006-02-07 11:59:22 +00:00
jmmv ddaa1b349e wsevent cleanup:
- Add a wsevent_inject function that atomically adds a set of events to an
  event queue and change all code that directly messed with a queue to use it.
- Replace the WSEVENT_WAKEUP macro with a regular function.
- Make WSEVENT_QSIZE, PWSEVENT and splwsevent private definitions to
  wsevent.c, instead of exposing them in the header file.
- Make the wsevent_init function take a process to attach to the queue,
  instead of leaving this task to the caller (which always did it).

Reviewed in tech-kern@.
2006-02-07 09:13:02 +00:00
thorpej deb5def967 In the receive interrupt handler, compute the packet length before resetting
m to point to the first buffer in the packet.  The bug would cause the
length of jumbo frames to be incorrect.
2006-02-07 06:20:04 +00:00
macallan dbe2bf713a ansify, de-__P(), sprinkle static 2006-02-07 02:29:28 +00:00
simonb 94fd5272df Use "options<space><tab>". 2006-02-06 23:48:55 +00:00
gdamore 11e96340e9 Forgot to cvs add this file. Doh!
Closes PR port-evbmips/31992.

Adds generalized IRQ routing & reporting support based on different Alchemy
parts.  Reviewed by matt@, simonb@, and izumi@
2006-02-06 23:26:11 +00:00
gdamore eab2d4562e Fix up incorrect ICU reporting, add processor specific switch tables for
IRQ routing and such.

Closes PR port-evbmips/31992.
Reviewed by simonb@, matt@, and izumi@
2006-02-06 23:23:53 +00:00
jmmv cd5689ac5a Fix build by correcting pbms_ioctl's prototype. 2006-02-06 20:13:25 +00:00
jmmv 2f1b4d0c28 Include files.usb earlier so that "pbms at uhidbus" works. 2006-02-06 19:23:17 +00:00
wiz 8a66dad2cb Fix typo in pbms description. 2006-02-06 17:53:32 +00:00
jmmv 81c1972823 Regen. 2006-02-06 17:34:08 +00:00
jmmv f555f5ff1f Add the Apple extended keyboard, its internal hub and the Logitech Marble Mouse. 2006-02-06 17:33:26 +00:00
hamajima b0ff3653c2 Add support for the Atmark Techno Armadillo-210.
Armadillo-210 is subset model of Armadillo-9.
2006-02-06 14:03:22 +00:00
abs 51cff5fbfb regen to add SIS 190 ethernet, as found in ASUS T2-AE1 2006-02-06 12:41:02 +00:00
abs b14514b460 Add SIS 190 Ethernet, as found in ASUS T2-AE1 2006-02-06 12:40:44 +00:00
gdamore 9e9a382790 Renamed PB1000 to ALCHEMY (config supports all generic ALCHEMY dev boards).
Reviewed by simonb@
2006-02-06 03:43:46 +00:00
gdamore d8b2de51a1 Add a bus_space that makes use of wired TLB entries, as required for PCI,
PCMCIA, and perhaps other devices on Alchemy parts.

Closes PR port-evbmips/32298
Reviewed as part of PCI changes by matt@, izumi@, and probably also simonb@.

This implementation has been tested seperately with my PCI code.  This commit
does not add the necessary changes to configuration files to include this in
current configurations yet, as I intend to add that when I add the
multi-platform configuration support for evbmips/alchemy (which will be
required for PCI anyway.)
2006-02-06 03:07:44 +00:00
xtraeme 2d45c66ceb Add a pbms(4) manpage. Remove it from the source code and update TODO. 2006-02-05 18:38:34 +00:00
christos fb038910ea glue for powerbook mouse. 2006-02-05 18:10:57 +00:00
christos 8d7d99b57c powerbook 15" mouse driver from Johan Wallen. 2006-02-05 18:06:50 +00:00
jmmv 8b589aee17 Add support to automatically repeat mouse button events in wsmouse(4) and
change wsconsctl(4) so that this is configurable.

This is specially useful for mice that provide page up/down buttons instead
of a real wheel and that do not send events repeatedly from the hardware.
(E.g.: Logitech Marble Mouse.)

No objections in tech-kern@.
2006-02-05 17:38:33 +00:00
jmmv f1b65bb01b Revert previous; Multiboot makes no sense in Xen. Pointed out by bouyer@. 2006-02-05 17:06:38 +00:00
rpaulo be72809857 Add preliminary/not tested support for IPv6. 2006-02-05 16:44:55 +00:00
jmmv 9f3be9d257 Enable Multiboot support by default since this kernel is the one to most
likely benefit from this feature.  Per anonymous suggestion in my blog.
2006-02-05 15:39:20 +00:00
xtraeme fd8cfc5edb Add missing $NetBSD$ tags and __KERNEL_RCSID(). 2006-02-05 06:03:26 +00:00
mrg 9ceed4147f these configs have not been used for years. (in reality, the machine
splode is now more like the POWEROFSEVEN config.)
2006-02-05 05:47:17 +00:00
cube 6ff13154dd Remove 'count' argument for pseudo-devices that ignore it
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
2006-02-05 05:01:48 +00:00
uwe 0fc70b4831 Add bswap16.c and bswap32.c to SRCS. We need fallback versions for
kernels compiled without optimization (and thus without inlining of
bswap16 and bswap32)
2006-02-04 23:33:37 +00:00
dyoung e46f0f4008 In rtw_{rx,tx}ring_fixup, do not set the tx/rx ring index to
something out of bounds if we read an invalid pointer form the
hardware.  Prevents a panic when an rtw@cardbus is ejected.
2006-02-04 23:22:27 +00:00
reinoud 979954f179 VND and harddiscs have their own defect free space management. 2006-02-04 23:21:43 +00:00
uwe e7b43156c5 Truncate the argument to 16 bit with extu.w 2006-02-04 22:24:26 +00:00
xtraeme 452f660f6f Add missing ';' missed in previous. 2006-02-04 22:08:01 +00:00
reinoud 8c7d758cbc Change a comment into a TODO and fix up case where we could return an
illegal allready-freed memory space.
2006-02-04 21:29:11 +00:00
reinoud c0dbf19c1e Add support for SCSI MMC feature 0x0024: hardware assisted defect
management to be passed in mmc_discinfo's device capabilities.

When a device reports support for this the hardware will automatically
remap sectors on read- or write-errors. CD-MRW, DVD+MRW, DVD-RAM and BR-RE
support these.
2006-02-04 21:26:15 +00:00
uwe 708fa89a18 Revert previous. It just attempts to hide bugs in libkern of affected
ports: after the src/common merge, bswapNN are not renamed correctly
for some of the ports.
2006-02-04 21:23:43 +00:00
elad 02e23f0fb1 move setid core externs near defcorename, as requested by yamt@. 2006-02-04 16:11:36 +00:00
simonb 25e557419f Prototypes for i386-related clock functions. 2006-02-04 15:50:19 +00:00
simonb c5c308b498 Replace file somehow removed from HEAD instead of simonb-timecounters
branch.
2006-02-04 15:45:18 +00:00
simonb 278244db9c Don't need old i8254 microtime() with timecounters. 2006-02-04 15:08:44 +00:00
christos ec39469a12 PR/32730: Ed Shouten: setting WS_DEFAULT_[FB]G does not change colors entirely 2006-02-04 14:54:56 +00:00
dsl 758e638b69 We don't need syscall_fancy() unless KTRACE or SYSTRACE is defined.
There also must be a better way to define these (almost equivalent) routines,
not to mention the one in mach_syscall.c
2006-02-04 14:11:34 +00:00
xtraeme d13dcd1df2 Move sysctllog inside the _LKM block. Reported by Jukka Salmi. 2006-02-04 14:01:08 +00:00
yamt e31143d772 vndthread: fix an integer overflow. fix a panic reported by Simon Burge. 2006-02-04 13:40:38 +00:00
yamt 9e261d2477 vndstrategy: do bounds_check_with_mediasize. 2006-02-04 13:38:04 +00:00
martin 70bb3713ea Fix cursor size. From Ed Schouten in PR port-playstation2/32728. 2006-02-04 12:13:05 +00:00
yamt 5a3e361753 for some random places, use PNBUF_GET/PUT rather than
- on-stack buffer
	- malloc(MAXPATHLEN)
2006-02-04 12:09:50 +00:00
yamt 14962199bf nestiobuf_iodone: remove a comment which is no longer true. 2006-02-04 12:02:35 +00:00
yamt e57cc1fc5c vfs_buf_print: print b_rawblkno as well. 2006-02-04 12:01:26 +00:00
yamt ffadcb89d9 vn_read: don't bother to allocate read-ahead context here.
it will be done in uvn_get if necessary.
2006-02-04 11:58:08 +00:00
yamt 6e6449891d vndthread: play with b_vp and v_numoutput as it used to do,
for "strange" filesystems like nfs.  PR/32671 from Simon Burge.

although i'm not really happy with this "fix", i think that the code will
be replaced with direct i/o anyway, sooner or later...
2006-02-04 11:52:32 +00:00
dsl d85485aca1 Use any inlined functions provided by machine/byte_swap.h even when
optimisation is disabled (mmm bloated code..).
Fixes hp700 kernel build.
2006-02-04 11:44:48 +00:00
jmmv 9485c8d272 Now that my idea to fix the detection of the boot device cannot work, reword
the 'XXX' comment and remove the marker.  Also, in case there is no match,
fall back to wd0 instead of nothing.
2006-02-04 11:28:54 +00:00
jmmv 6cf8f1a5d9 Revert yesterday's change that attempted to fix the detection of the
boot device when using a Multiboot boot loader.  It couldn't work because
these boot loaders do not pass a checksum of the disk so matchbiosdisk()
cannot really find any matches.  I should have gone to sleep before
commiting...

Found by xtraeme@.
2006-02-04 11:24:42 +00:00
dsl 8d7fb15302 Add .MAKE to targets that run ${MAKE} so that parallel makes work properly. 2006-02-04 11:23:45 +00:00
yamt b38b1510eb vnd_cget: remove a wrong comment. 2006-02-04 11:19:59 +00:00
yamt fe1aa7db74 vnd_destroy: don't access freed memory. 2006-02-04 10:48:32 +00:00
simonb a85acbf618 Import FreeBSD i386 TSC timecounter support as of 4th Feb 2006. 2006-02-04 10:47:04 +00:00
skrll dc3b2a7f32 Put the __RENAME before the __attribute__((__const__)) so gcc can parse
the bswap{16,32} declarations.
2006-02-04 10:34:43 +00:00
he 021927bcf2 Bump SYMTAB_SPACE to make it fit again. 2006-02-04 09:11:32 +00:00
simonb 769d33c547 Import main FreeBSD timecounter support files as of 4th Feb 2006. 2006-02-04 08:06:23 +00:00
rpaulo fe78fe0b46 bpfilter doesn't accept count anymore. 2006-02-04 03:48:18 +00:00
rpaulo ae6add6af0 bpfilter is already supported. 2006-02-04 03:47:41 +00:00
rpaulo 926f98bcbb bpfilter doesn't accept count anymore. 2006-02-04 03:43:24 +00:00
rpaulo 23b8c23173 bpfilter doesn't accept count anymore. 2006-02-04 03:33:20 +00:00
gdamore 9eebd03f2e port-evbmips/31910
Forgot to include this file in the last commit... oops!
2006-02-04 03:33:16 +00:00
rpaulo 806f7632b5 bpfilter doesn't accept count anymore. 2006-02-04 03:29:57 +00:00
rpaulo dfedc07975 bpfilter doesn't accept count anymore. 2006-02-04 03:18:58 +00:00
gdamore bfacbb80e4 Provide streaming bus_space methods that don't swap if bus is otherwise
swapped from host byte order.
Closes PR port-mips/31910
Reviewed by <izumi>, <matt>, and <simonb>
2006-02-04 03:18:10 +00:00
rpaulo e1c6b6ed0f bpfilter doesn't accept count anymore. 2006-02-04 02:53:13 +00:00
rpaulo df5390003c bpfilter doesn't accept count anymore. 2006-02-04 02:42:27 +00:00
rpaulo 21c1d240bc bpfilter doesn't accept count anymore. 2006-02-04 02:31:12 +00:00
rpaulo 6d1dc467f2 regen 2006-02-04 02:27:23 +00:00
rpaulo 9093dbb4e6 bpfilter doesn't accept count anymore. 2006-02-04 02:25:57 +00:00
rpaulo cc9f3c8ae6 regen 2006-02-04 02:25:21 +00:00
rpaulo 4866e74b23 bpfilter doesn't accept count anymore. 2006-02-04 02:25:08 +00:00
uwe 82046cc108 Move __END_DECLS back to the end of declarations.
Fix #endif comment to reflect #if condition.
2006-02-04 01:31:48 +00:00
uwe 47df5bafdd Declare bswapNN as __attribute__((__const__)). 2006-02-04 01:08:30 +00:00
uwe 726372b06a There's no reason to cast the return value of bswapNN to uintNN_t in
one particular place (little endian ntohl &co).
2006-02-04 01:07:20 +00:00
uwe 1e11a37d0c Move #include <machine/bswap.h> back into the same nesting inside ifdefs.
Assembler sources don't care about optimized inline versions of bswap.
Undo the changes to the namespace.
Hi, dsl.
2006-02-04 00:01:36 +00:00
jmmv 62c98fdb8d When booting an i386 kernel with Multiboot, properly detect the boot device
by looking it up in the x86_alldisks table (instead of trying to match it
to 'wd*' manually).

In order to do this, move the cpu_rootconf function from x86 common code
to amd64 and i386 specific one.  This way, i386 can do an extra step (call
the appropriate Multiboot code) in the appropriate place (after
x86_matchbiosdisks and before findroot()).
2006-02-03 23:33:30 +00:00
dsl 801edd9a37 Use uint32_t and uint16_t not in_addr_t and in_port_t 2006-02-03 22:05:21 +00:00
bouyer aea4d25db5 Split move interrupt-related PCI functions from pci_machdep.c to
pci_intr_machdep.c. In Xen-3 registers access is done the normal way but
interrupts need custom setup. Proposed on port-amd64, port-i386 and
port-xen a week ago.
2006-02-03 19:58:20 +00:00
bouyer fc23e0389e Change repne to rep for {ins,outs}{b,s,l} as proposed
to port-amd64, port-i386 and port-xen 2 weeks ago. Under Xen-3, a repne won't
loop (only the first value is read/written) while rep works as expected.
Linux and FreeBSD use rep, and documentation suggests that repne should
not be used with ins and outs instructions.
See http://mail-index.netbsd.org/port-xen/2006/01/22/0000.html for
details.
2006-02-03 19:55:58 +00:00
xtraeme d736d4967d Enable POWERNOW_K7 now that the main problem was fixed. 2006-02-03 17:36:38 +00:00
rpaulo 1e167a0ff0 Remove comments stating the the routine in6_cksum() doesn't support
jumbograms. The routine already uses the ``len'' argument and not the
ip6->ip6_plen which would cause problems with jumbograms.

Spotted by JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp>.
2006-02-03 14:40:03 +00:00
tsutsui a1242109f2 Add commented out file-system TMPFS and UDF.
XXX Is it better to make GENERIC really generic and change GENERIC32
XXX to use "no options" and "no makeoptions" features of newer config(1)?
2006-02-03 13:59:18 +00:00