Commit Graph

85204 Commits

Author SHA1 Message Date
tls
aa99a9cd13 Add --param ssp-buffer-size=1 if USE_SSP as for userspace.
Add kern_exit_43.c to VARSTACK -- it isn't, really, but it causes an error
because it has a 0-element array on the stack and SSP always emits the
error that it is not protecting such a small array (ssp-buffer-size=0 is
not supported, so, really, it should not emit this error!).
2006-12-18 22:37:36 +00:00
gdt
38eac16b69 Use agp_machdep.c from the new location (x86, not i386). 2006-12-18 20:07:36 +00:00
nonaka
964e61ba35 compile again. 2006-12-18 15:32:10 +00:00
nonaka
751c643773 Bump up SYMTAB_SPACE. 2006-12-18 15:31:30 +00:00
nonaka
405a97b628 Fix evbarm compile again. 2006-12-18 15:30:56 +00:00
nonaka
225dafea20 cosmetic 2006-12-18 13:50:58 +00:00
nonaka
9dc4fd032d Remove unused files. 2006-12-18 13:36:47 +00:00
christos
03f66b5764 Moved from i386/pci/agp_machdep.c; from Blair Sadewitz 2006-12-18 12:11:33 +00:00
christos
75cde65fed move to x86/pci/agp_machdep.c from Blair Sadewitz 2006-12-18 12:10:42 +00:00
christos
8e5125c9ca Attach agp too. 2006-12-18 12:07:40 +00:00
christos
f9a3a10e65 Don't cleanup memory mappings twice. From Blair Sadewitz 2006-12-18 12:01:48 +00:00
skrll
03c2b891e6 Update uvm_grow to support stacks that grow upwards.
Use on hppa and fix a bug in the hppa trap handler.
2006-12-18 09:39:14 +00:00
ad
f48eb2511b __cpu_simple_unlock(): add a note about memory ordering and why this is
correct, contrary to Intel's documentation.
2006-12-18 07:34:42 +00:00
elad
711e88f6f4 Split handling of unmount in Veriexec, where veriexec_unmountchk() will do
the permission check only, and the removal of the table/entries will be
done by fileassoc(9) after a successful unmount.

Prompted by and okay yamt@.
2006-12-18 06:43:12 +00:00
simonb
346a126e90 Handle KSEG0 addresses specifically in pmap_extract(), similar
to how other KSEG-style pmaps (alpha, sh3, sh5) do.

Add a DIAGNOSTIC panic for KSEG1 addresses (nothing should touch
uncached memory, right?)

Clean up the the pmapdebug printfs a little too (athough with
more ugly #ifdef DEBUG bits of code).
XXX: should use DPRINTF() type printfs here.


Fixes panic running regress/sys/kern/umount on MIPS platforms
reported by Martin Husemann.
2006-12-18 00:40:26 +00:00
cube
0786b7cfa3 Add a NetBSD RCS tag. 2006-12-17 23:08:12 +00:00
bouyer
ea4f35dcd0 Add bnx(4), a driver for Broadcom NetXtreme II 10/100/1000 Ethernet device.
Ported from OpenBSD by cube@, with some bus_dma fixes by me.
Tested on i386 and amd64.
2006-12-17 23:02:06 +00:00
bouyer
462dc620e3 Add mfi(4), a driver for LSI Logic & Dell MegaRAID SAS RAID controller.
Ported from OpenBSD, tested on i386 and amd64.
2006-12-17 22:57:14 +00:00
macallan
b2bac7650b don't pretend to support 8kHz since the chip really doesn't
noticed by Marco Trillo
2006-12-17 21:26:04 +00:00
christos
ae91f9ec0a According to ANSI c the only portably defined bitfields are unsigned int ones. 2006-12-17 20:07:36 +00:00
peter
636b3f6446 Add zaurus. 2006-12-17 16:11:56 +00:00
peter
d939731248 Add WSKBD_TYPE_ZAURUS (Sharp Zaurus keyboard). 2006-12-17 16:08:44 +00:00
peter
d2bbe532c1 Add zaurus. 2006-12-17 16:08:09 +00:00
peter
f19ed1a8fa Update from the latest Zaurus source from NONAKA Kimihiro.
- LCD screen and keyboard are working now.
- Add bootstrap loader.
2006-12-17 16:07:11 +00:00
peter
ac86e5557a Update from the latest Zaurus source from NONAKA Kimihiro.
Includes drivers for I2C, I2S, PCMCIA controller, USB device controller,
OHCI USB controller (from OpenBSD) and some improvements to the LCD
controller driver.
2006-12-17 16:03:33 +00:00
nonaka
4ed55699c1 Bump up SYMTAB_SPACE. 2006-12-17 10:27:33 +00:00
ober
9dd043ccd4 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:57:48 +00:00
ober
c657d4868d Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:42:42 +00:00
ober
953d3b5b66 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:17:58 +00:00
ober
d429c3dc76 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 05:07:52 +00:00
macallan
b6131134e7 make this compile without wsdisplay 2006-12-16 05:05:50 +00:00
ober
dbc112ba13 Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
2006-12-16 03:35:51 +00:00
macallan
af3a3c2797 (hopefully) fix a panic when ofb attaches without being console 2006-12-16 03:31:46 +00:00
tsutsui
b2261339c5 Fix and reenable HW VLAN tagging on re(4):
- clear re_vlanctl in DMA descriptors before starting TX and RX
  to avoid stale tags
- use bswap16() rather than be16toh() or htons() on VLAN tag access
  since we already use htole32()

Closes PR kern/32643 and also fixes HW VLAN tagging on big endian machines.
2006-12-16 02:52:17 +00:00
joerg
eb04733c4e Introduce new helper functions to abstract the route caching.
rtcache_init and rtcache_init_noclone lookup ro_dst and store
the result in ro_rt, taking care of the reference counting and
calling the domain specific route cache.
rtcache_free checks if a route was cashed and frees the reference.
rtcache_copy copies ro_dst of the given struct route, checking that
enough space is available and incrementing the reference count of the
cached rtentry if necessary.
rtcache_check validates that the cached route is still up. If it isn't,
it tries to look it up again. Afterwards ro_rt is either a valid again
or NULL.
rtcache_copy is used internally.

Adjust to callers of rtalloc/rtflush in the tree to check the sanity of
ro_dst first (if necessary). If it doesn't fit the expectations, free
the cache, otherwise check if the cached route is still valid. After
that combination, a single check for ro_rt == NULL is enough to decide
whether a new lookup needs to be done with a different ro_dst.
Make the route checking in gre stricter by repeating the loop check
after revalidation.
Remove some unused RADIX_MPATH code in in6_src.c. The logic is slightly
changed here to first validate the route and check RTF_GATEWAY
afterwards. This is sementically equivalent though.
etherip doesn't need sc_route_expire similiar to the gif changes from
dyoung@ earlier.

Based on the earlier patch from dyoung@, reviewed and discussed with
him.
2006-12-15 21:18:52 +00:00
yamt
fc88d88996 put ->K loaned pages on the page queue, so that page loaning doesn't
disturb pagedaemon/pdpolicy.
2006-12-15 13:51:30 +00:00
christos
f05c39985f explicitly set clk to 1 or 0. 2006-12-14 22:35:20 +00:00
kleink
94dd6117cd Un-break clock selection after -Wsign-compare cleanup in rev. 1.43;
from Stephen Ma in PR kern/35220.
2006-12-14 22:27:12 +00:00
elad
a4e596d708 oops, forgot KAUTH_PROCESS_STOPFLAG.
noted by Jukka Salmi, thanks.
2006-12-14 18:27:59 +00:00
elad
238ad51d2d - moves 'nice' access semantics to secmodel code,
- makes sysctl_proc_find() just lookup the process,
- use KAUTH_PROCESS_CANSEE requests to determine if the caller is
  allowed to view the target process' corename, stop flags, and
  rlimits,
- use explicit kauth(9) calls with KAUTH_PROCESS_CORENAME,
  KAUTH_REQ_PROCESS_RESOURCE_NICE, KAUTH_REQ_PROCESS_RESOURCE_RLIMIT,
  and KAUTH_PROCESS_STOPFLAG when modifying the aforementioned.
- sync man-page and example skeleton secmodel with reality.

okay yamt@

this is a pullup candidate.
2006-12-14 11:45:08 +00:00
elad
aa4d8a2d6c PR/35252: YAMAMOTO Takashi: veriexec doesn't handle unmount
Call veriexec_table_delete() in the cases where we won't be failing the
unmount request.
2006-12-14 11:15:27 +00:00
yamt
4cfe5a1b41 - just associate fileassoc "table" to struct mount.
because the latter is always available during the lifetime of the former,
  there is little point to use another global list to keep track of them.
  it also allows to remove an #ifdef FILEASSOC.

- avoid some operations (memory allocation and VOP) in fileassoc_file_lookup,
  when fileassoc table is not used.

ok'ed by elad.
2006-12-14 09:24:54 +00:00
elad
52944a66d2 entry-type is uint8 2006-12-14 05:15:33 +00:00
christos
3e978579d3 add missing initializer. 2006-12-13 16:51:27 +00:00
yamt
24d0248e5f lookup: add more missing vput(). 2006-12-13 13:36:19 +00:00
chs
e53d6bd175 in lookup(), vput() the starting vnode in the case where
we return with both ni_dvp and ni_vp being NULL.
2006-12-13 06:36:35 +00:00
matt
8861fab664 Don't apply a window scale to the window size in a SYN packet. 2006-12-13 03:45:48 +00:00
macallan
65ea75bafa various minor fixes:
- avoid virtual resolution < physical resolution (Marco Trillo)
- don't use hardware-accelerated putchar() on R3xx
- clear screen when attaching wsdisplay
2006-12-13 00:19:01 +00:00
christos
64c377519a use -fstack-protector instead of -fstack-protector-all since this breaks
on amd64 (it works on sparc64).
2006-12-12 21:31:58 +00:00
yamt
e4e829e9d1 make fileassoc_tables static. 2006-12-12 14:22:07 +00:00