Commit Graph

74816 Commits

Author SHA1 Message Date
briggs
ef57c7b216 Add twe. 2005-02-12 03:24:39 +00:00
heas
52b0cd6b47 ntohs->htons for ip6 plen (payload length).
It is not technically necessary to set plen here, since ip6_output() starts
off by calculating it, but leaving it keeps it consistent with other code.
2005-02-12 01:24:07 +00:00
matt
4612c7a119 When building kernel for OEA, allow unaligned accesses since OEA
processors will deal with them properly.
2005-02-12 00:03:21 +00:00
rearnsha
dfcdd57e20 Add support for the Artisea device operating in DPA mode.
Approved by briggs.
2005-02-11 21:12:32 +00:00
rearnsha
920296fb7f Add support for Artisea chips operating in DPA mode, which has a
16-bit view of the ATA command registers for extended commands.

Approved by briggs.
2005-02-11 21:11:15 +00:00
jdc
7fa1245cbb Add some PCMCIA devices that were missing.
Add/fix comments.
2005-02-11 18:26:59 +00:00
yamt
18acc63fc4 remove uvm_map_protect from cpu_startup of several ports.
- they shouldn't be needed with the current fault handler.
- they causes assertion failure with the recent vm_map implementation.

discussed on tech-kern@.  reviewed by Chuck Silvers.
PR/29179 from Julio M. Merino Vidal.
2005-02-11 15:03:55 +00:00
ws
b2bdc38871 Prevent integer overflow.
Fixes PR29332.
2005-02-11 11:01:10 +00:00
dsl
05e2f6ebdb Add 'option FFS_SNAPSHOT' to most of the config files.
Commented out for kernels that appear to hace space constraints.
2005-02-11 08:25:53 +00:00
simonb
3cebd9325e White space nit- don't put a space before/after increment/decrement
operators.
2005-02-11 06:21:21 +00:00
chs
467487d274 use vm_map_{min,max}() instead of dereferencing the vm_map pointer directly.
define and use vm_map_set{min,max}() for modifying these values.
remove the {min,max}_offset aliases for these vm_map fields to be more
namespace-friendly.  PR 26475.
2005-02-11 02:12:03 +00:00
chs
9d5ffb80d3 remove redundant initialization of minaddr for uvm_km_suballoc(). 2005-02-11 02:09:39 +00:00
dsl
25579adfb4 Make ffs snapshots be enabled by 'option FFS_SNAPSHOT' 2005-02-10 22:23:19 +00:00
dsl
2f6f4269bd Add a stub file so that snapshot support can be compiled out.
Will allow INSTALL_TINY to fit back in its designated space.
Since the calling code doesn't allow a snapshot mount to fail, this code
will output a warning and delete any snapshots it finds.
This only happend on rw mounts - snapshots don't seem to be created
when mounting ro.
The whole way the snapshots gets mounted is a PITA anyway, the superblock
'last mounted' time should be used to validate that the fs hasn't been
mounted elsewhere.
2005-02-10 22:22:32 +00:00
drochner
342b8a4cf8 Recognize an obscure cpu feature flag bit "xTPR"
which indicates that Task Priority Messages might
be disabled. Not relevant for the kernel for now
(related to interrupt distribution on the APIC bus
afaict), but present on one of my boxes.
Being here, also recognise the future "Vanderpool"
extension.
2005-02-10 20:52:52 +00:00
jmc
9b1c35ec87 Fixes from PR#29289. Need linux_sg.c in here now as well 2005-02-10 17:37:35 +00:00
is
4119a9ec98 This is not a network - use be32toh etc. instead of ntohl... 2005-02-10 16:31:41 +00:00
tsutsui
b611bd6446 Allocate struct todr_chip_handle in struct rtc_softc rather than
using MALLOC(9).
2005-02-10 16:07:38 +00:00
ws
5964df620b Increase max data size, now that the Xserver can grok it.
(It was the only program that couldn't.)
2005-02-10 10:42:04 +00:00
itojun
692c601c25 backout 1.54. heurestic code should never be used. if you experience DAD
failure, suspect your driver, not ND code.
2005-02-10 02:57:17 +00:00
christos
1b198d8f16 size_t should be cast'ed to unsigned long. 2005-02-09 23:42:30 +00:00
ws
5387f7217c Add support for large files (>2GB).
Like Linux, automagically convert old filesystem to use this,
if they are already at revision 1.
For revision 0, just punt (unlike Linux; makes me a bit too nervous.)

There should be an option to fsck_ext2fs to upgrade revision 0 to revision 1.

Reviewd by Manuel (bouyer@).
2005-02-09 23:02:10 +00:00
christos
7651651a23 Don't de-reference a NULL ktd on error. Fix from enami, thanks. 2005-02-09 16:15:16 +00:00
cube
8066f529e3 Fix typo reported by Patrick Welche on current-users. 2005-02-09 16:13:40 +00:00
hannken
8bb5af4d2e Fss device only checks read access to snapshot vode. On snapshot creation
check we are either super-user or owner of the snapshot vnode.
2005-02-09 16:05:29 +00:00
hannken
78f7fe0941 - Unlock backing store vnode in case of error.
- 32 -> sizeof()*NBBY
2005-02-09 15:12:19 +00:00
he
f29d7ec0d8 One can't portably print a size_t with an %u format directive.
Since this might be in the kernel, cast to unsigned int before printing.
Fixes build problem for amd64 (and presumably also our other LP64 ports).
2005-02-09 08:21:27 +00:00
he
c05368e398 Make the declaration of oip in fr_send_ip() conditional on INET,
since it's use is also conditional on that preprocessor macro.
2005-02-09 08:19:24 +00:00
martti
534d9de60b Added -DINET 2005-02-09 06:41:01 +00:00
fvdl
6851058ed5 if 0 out the parts of the code that allocated VM space per CPU for GDTs.
Seperate GDTs are not used on amd64 because it doesn't need any seperate
descriptors per CPU.
2005-02-08 09:02:01 +00:00
fvdl
af5309b07c Change the 'sz' variable in bounds_check_* to int64_t to avoid overflows
when a very large blocknumber is passed in.
2005-02-08 08:56:21 +00:00
he
44315eaaa0 Remove a now-extraneous right parenthesis, after de-__P'ing. 2005-02-08 08:36:22 +00:00
yamt
a8acd82f94 update a comment; malloc doesn't use uvm_kernacc anymore. 2005-02-08 08:22:37 +00:00
martti
a023cb1d19 Upgraded IPFilter to 4.1.5 2005-02-08 07:01:52 +00:00
martti
4d6a62d250 Import IPFilter 4.1.5 2005-02-08 06:52:59 +00:00
yamt
7245b8aa0a remove a mysterious printf(" complete\n"). 2005-02-08 05:52:31 +00:00
briggs
fb9f110c8c Use aprint_*() instead of printf() at attach time. 2005-02-08 05:16:17 +00:00
yamt
9fe116ce3a uvm_fault: fix integer overflow so that MADV_SEQUENTIAL
can work on large files.
2005-02-07 11:57:38 +00:00
augustss
ebb1c32c20 Never deliver HID data to subdrivers if the length is wrong. 2005-02-07 08:54:42 +00:00
christos
a9fed9480a Allow 32K instead of 1K of section headers. Solaris opera binary has 15K
section headers. We only allocate memory for those headers on compat_linux
and compat_ibcs2 while we probe, and although 32K is not such a big number,
we could fix the code in those two places to read section-by-section instead
of all the sections at once as it does now, if we really felt like it.
2005-02-07 00:12:49 +00:00
christos
4cf9bb2fc2 Change an if/panic statement to a KASSERT and disable a chatty printf. 2005-02-06 23:57:29 +00:00
pk
d1a1682842 turbosparc_cache_enable: record the external cache size for informational
puposes.
2005-02-06 20:22:15 +00:00
pk
237a0c2d85 Update tcp_trace() prototype to match implementation. 2005-02-06 20:13:09 +00:00
martin
1bc16b6a61 Add uhci. 2005-02-06 18:27:41 +00:00
skrll
b48e30cb2e Initialize 'error' in all cases in ioctl handler, otherwise it doesn't
compile (and of course might return garbage).  [hi kim!]
2005-02-06 09:33:23 +00:00
cube
d16fd94009 Initialize 'error' in all cases in ioctl handler, otherwise it doesn't
compile (and of course might return garbage).  [hi kim!]
2005-02-06 08:52:08 +00:00
kim
f045f7096d If the interface is up and running, only modify the receive filter
when setting promiscuous or debug mode.  This avoids resetting the
chip unnecessarily.

Fixes PR kern/29126.
2005-02-06 03:15:14 +00:00
tsutsui
ad494d3b04 Change u_int -> uint32_t, u_char,char -> uint8_t where appropriate. 2005-02-06 02:58:15 +00:00
tsutsui
a60e4db92a Oops, backout previous. They are actually needed there. 2005-02-06 02:56:15 +00:00
tsutsui
79969e68f2 Remove function decls which are in <machine/intr.h> 2005-02-06 02:40:14 +00:00
tsutsui
521796afe7 - remove __P()
- use do{}while(0) and remove register decl for DELAY() macro
2005-02-06 02:39:21 +00:00
tsutsui
6930b9d38b one more u_intNN_t -> uintNN_t 2005-02-06 02:36:01 +00:00
oster
04a30b5e78 It's not a bad idea to update the component labels whether or not the
reconstruction was successful.
2005-02-06 02:29:36 +00:00
tsutsui
fd4afa037b Misc cleanup:
- ANSI function decls
- remove __P()
- u_intNN_t -> uintNN_t
- remove register decls
- bcopy -> memcpy, strcpy
- bzero -> memset
- bcmp -> memcmp
- use malloc(9) with M_ZERO
- some KNF
etc.
2005-02-06 02:18:02 +00:00
oster
00b2fb8253 CreateDiskQueueData() doesn't need to use void * for raidPtr.
RF_Raid_t is well known in RF, and there's no reason not to use it here.
2005-02-05 23:53:44 +00:00
chs
86688c638a always map kernel text read-only. 2005-02-05 23:50:05 +00:00
chs
42c10f81be remove some leftover references to a.out symbol names. 2005-02-05 23:48:49 +00:00
oster
339f61b703 rf_GetNextReconEvent() *will* return a valid event, so no need for
the assert.  (we'd have panic'ed in there long before this assert
if that wasn't the case).

Minor whitespace changes.
2005-02-05 23:39:12 +00:00
oster
8ea3f15338 Cleanup function prototypes. 2005-02-05 23:35:33 +00:00
oster
c38bce14f6 Vastly improve the error handling in the case of a read/write error
that occurs during a reconstruction.  We go from zero error handling
and likely panicing if something goes amiss, to gracefully bailing and
leaving the system in the best, usable state possible.

- introduce rf_DrainReconEventQueue() to allow easy cleaning of the
reconstruction event queue

- change how we cleanup the floating recon buffers in
rf_FreeReconControl().  Detect the end of the list rather
than traversing according to a count.

- keep track of the number of pending reconstruction writes.  In the
event of a read error, use this to wait long enough for the pending
writes to (hopefully) drain.

- more cleanup is still needed on this code, but I didn't want to
start mixing major functional changes with minor cleanups.

XXX: There is a known issue with pool items left outstanding due to
the IO failure, and this can show up in the form of a panic at the
tail end of a shutdown.  This problem is much less severe than before
these changes, and the hope/plan is that this problem will go away
once this code gets overhauled again.
2005-02-05 23:32:43 +00:00
chs
37436571dd make this compile with DEBUG. 2005-02-05 16:19:35 +00:00
jmc
c0f021e9fe Put this back to a #define after he patched sys/exec_aout.h. Otherwise errno.h
has to be pulled in for ENOEXEC definition.
2005-02-04 22:45:05 +00:00
he
d9dbfebb70 If cpu_exec_aout_makecmds is a macro, don't declare a prototype
with the same name.  Fixes build problem for the powerpc ports,
since those define cpu_exec_aout_makecmds to ENOEXEC.
2005-02-04 22:35:02 +00:00
jmc
2f6ced07f5 Do the same thing sparc64 does and redefine sbus_promaddr_to_handle to a static
inline'd function. This way prototypes for it still work in the master
dev/sbusvar.h header. Found when the recent de-_P'ing occured
2005-02-04 22:20:55 +00:00
fvdl
6bdba8ddcd The bootinfo_wedge structure must be packed, or the 32bit alignments
used by the bootloader don't match the amd64 kernel.
2005-02-04 22:03:53 +00:00
joff
74f7c604df Make cpu_exec_aout_makecmds() a static inline instead of just #define'ed to
ENOEXEC.  Broken on ARM build from the de-__P'ing, this is the fix.
2005-02-04 19:07:26 +00:00
kanaoka
1054d5cc16 - Deal with status properly,if BMCR_ISO is set.
Fixes kern/29113.
2005-02-04 15:17:31 +00:00
skrll
015f297666 Modernise these to use GCC __builtin_* functions and types.
Also provide a (protected) va_copy.
2005-02-04 12:15:22 +00:00
joff
32262aa8f2 Support a wsdisplay(4) attachment on a tslcd 2005-02-04 06:02:36 +00:00
jmc
89f2c62a84 Add opt_scsipi_debug.h to list since compat_linux pulls in scsipi now for sg
driver
2005-02-04 05:59:51 +00:00
joff
9882b0c41e Structure member misnamed. "rows" should be "cols" 2005-02-04 05:59:27 +00:00
jmc
672ed23467 vfr.c is still needed on the trunk or GENERIC doesn't compile... 2005-02-04 05:59:23 +00:00
joff
5cc20bed82 Support wsdisplay(4) attachments of hd44780 LCD controllers 2005-02-04 05:58:44 +00:00
joff
7d0231bc7f Even though we don't use wscons on cobalt, still bring in dev/wscons/files.wscons
so we can get various opt_*.h generated.
2005-02-04 05:50:38 +00:00
joff
93f6c1c28a keysyms off-by-one in numbering 2005-02-04 05:48:12 +00:00
perry
18db93c7f6 de-__P 2005-02-04 02:10:35 +00:00
perry
b02c92c5bf ANSIfy function declarations 2005-02-03 23:50:33 +00:00
jmc
3fed402d23 Provide lint wrappers around the va_* defs like other ports do so this can
make it through lint (was dying in libpam)
2005-02-03 23:45:37 +00:00
perry
870f206724 ANSIfy function declarations 2005-02-03 23:39:32 +00:00
perry
dcf288607c ANSIfy function declarations 2005-02-03 23:25:22 +00:00
perry
d5c8fcf31c ANSIfy function declarations 2005-02-03 23:13:20 +00:00
perry
71ef63c98f ANSIify function declarations 2005-02-03 23:08:43 +00:00
perry
402f8626b1 ANSIfy function declarations 2005-02-03 22:51:50 +00:00
perry
90789ef318 some ANSIfying, and remove an unsightly tab 2005-02-03 22:45:28 +00:00
perry
babe6a957c KNF + slightly ANSIfy 2005-02-03 22:43:34 +00:00
perry
449436c385 move a prototype back inside an #ifdef -- my GENERIC kernels worked
fine with it in the new place, but compiling another kernel found that
it wasn't a good idea.
2005-02-03 21:54:49 +00:00
bouyer
52a37d39ea vfr.c doesn't exists any more. 2005-02-03 21:38:59 +00:00
perry
35adf4031a de-__P, partially ANSIfy 2005-02-03 21:35:44 +00:00
perry
32a519cece de-__P, partially ANSIfy 2005-02-03 21:08:57 +00:00
perry
2454da651e de-__P, partially ANSIfy 2005-02-03 20:33:05 +00:00
perry
ac90d5411b de-__P 2005-02-03 20:24:25 +00:00
perry
5fbcbbe2bb de-__P 2005-02-03 20:08:55 +00:00
perry
09c542ec15 de-__P, partially ANSIfy 2005-02-03 20:08:44 +00:00
perry
0e1b702cc7 de-__P 2005-02-03 19:20:01 +00:00
perry
d96ee18cd4 de-__P
Also, re-arrange to prevent the #define versions of XtoY functions
from coming before the function prototypes.

XXX This is rather ugly, and someone like kleink should probably check
that I didn't mess up any standards issues.
2005-02-03 19:16:10 +00:00
chs
39b340a6f4 add the early-clobber modifier on the destination reg of ldstub.
in some implementations (eg. sun4c), the hardware modifies the destination
reg before checking for write permission on the memory location.  without
this change, gcc was using the same register for the address and the
destination, so if the store part of the instruction faulted, the address
was already gone when the instruction was retried after resolving the fault.
part of PR 25633, PR 25896.
2005-02-03 16:17:21 +00:00
chs
3cee1cf44e sun4c hardware reports faults by the atomic load/store instructions as
read faults even if the problem was that the memory was read-only.
detect this case and relabel the fault as both read and write.
details cribbed from linux and openbsd.
part of PR 25633, PR 25896.
2005-02-03 16:15:06 +00:00
briggs
ecb75428c0 If we have not gotten the CPU speed yet, get it from OF here and print it.
This gives us the CPU speed for those CPUs that we can't probe in the ppc
common code.
2005-02-03 15:14:39 +00:00
briggs
d6e37f352e Keep track of the CPU's current speed (in kHz) in the cpu info structure,
if we can get it.  May want to expand this in the future to include min
and max speeds for systems where we can adjust the speed.
2005-02-03 14:47:09 +00:00
perry
51ad03a950 ANSIfy function prototypes. (Still have about 3/5ths of the C files in
netinet to go...)
2005-02-03 03:49:01 +00:00