Commit Graph

159263 Commits

Author SHA1 Message Date
tls 67fcd29261 Do not include internal header files from libpcap without setting the
feature-test macros they use.  Really, of course, this code should not
include such header files at all.
2007-05-28 11:55:19 +00:00
hubertf a91b802739 Give a bit more details on what the 'ppcoea-renovation' branch is about.
OK'd by garbled@
2007-05-28 09:29:18 +00:00
mrg 8c454927d9 regenerate. 2007-05-28 05:55:10 +00:00
mrg f08e949808 add ALi M5261 ethernet (tulip clone) 2007-05-28 05:54:07 +00:00
tls 7d2d02742e Revert previous: the readline support here does unspeakable things with
the history buffer that require knowledge of the readline internals to
make safe (it "knows" that GNU readline mallocs certain returned data,
and thus, with libedit, happily calls free on static variables).
2007-05-28 03:28:58 +00:00
cube 62e0f430f0 p needs to be const. [hi christos!] 2007-05-28 00:39:00 +00:00
mhitch 5a0ae3b2c5 Oops. I thought I had caught this before commiting the CMAP[12] removal,
but obviously I didn't.  Non-DEBUG kernels were unbootable because I left
some code inside an #ifdef DEBUG group.
2007-05-27 21:33:55 +00:00
christos 1b3a5dad50 turn on command line editing. 2007-05-27 19:46:31 +00:00
christos 2d9dad6f00 Add rl_completion_matches, fix remove_history 2007-05-27 19:45:37 +00:00
dyoung f5c27b7a80 Remove remarks that insinuate that gre(4) still supports the hack
that let us set a route over the tunnel to the tunnel's decapsulating
host.  Thanks, Andreas Wrede, for pointing it out.
2007-05-27 19:15:48 +00:00
uwe 19eb8fc1bc Need to use atop() when adjusting kernend for ksyms.
XXX: This code has obviously bit-rotted.

Pointed out by Anders Gavare on port-sh3.
2007-05-27 18:30:01 +00:00
tls e87faddb31 Gross workaround for PR 36390: don't overwrite the stack with zeroes when
using struct sockaddr_dl in an ifreq.
2007-05-27 18:11:38 +00:00
cube 8b523203e0 Tyop. 2007-05-27 16:58:17 +00:00
tls be45f4d02a For FORTIFY_SOURCE: do not pretend to convert code from b* to mem* by
using a #define to turn one into the other, this is pointless and causes
more portability issues than it solves (admittedly, in the year 1702 when
this code was written the opposite may have been the case).
2007-05-27 16:31:41 +00:00
tls ac016a7fc2 Changes required for FORTIFY_SOURCE: don't rely on #define read (etc.)
before system header file inclusion magically causing what "read" is
#defined to to pick up a read-like prototype.  For sanity's sake, put
prototypes for revolting trace_mr stuff in their own header file (instead
of nowhere at all and using the trick referenced above).
2007-05-27 16:27:57 +00:00
jmmv fadca732d6 Guess the terminal size on each change instead of during program startup.
This allows the mouse to be used properly in consoles with different sizes:
before this change it was restricted to the size reported by the console
used to start the daemon.

Problem reported by Blair Sadewitz.
2007-05-27 15:05:00 +00:00
tsutsui 2fc470a315 Reorder IPL_SOFTSERIAL and IPL_SOFTCLOCK properly. 2007-05-27 14:22:36 +00:00
tsutsui cd02a491e7 - Don't clear BSS in mach_init() if a kernel is loaded
by our native bootloader.
- Restore lwp0.l_cpu (which is required for curcpu()) and
  cpu_info_store.ci_curlwp after clearing BSS in case
  a kernel is loaded by the firmware directly since these
  values are in BSS and initilized before mach_init() is called.
  (actually they are restored in mips_machdep.c:mips_vector_init()
   but we use curcpu() earlier than that point)

Fixes silent hang right after boot on cobalt.
2007-05-27 14:10:49 +00:00
tsutsui 5964c0cd2d Pass correct args to lwp_startup() in lwp_trampoline().
Should fix "panic: TLB out of universe" on MIPS3 machines.
2007-05-27 13:57:30 +00:00
uwe 269ff6629e In sh3_tlb_update we need to ensure we are not interrupted while
meesing with the TLB.  That would usually show up as misterious kernel
crashes under heavy load.

Prettify the code while here so that traversal of the memory mapped
TLB arrays looks congruent in all functions.

Fixes PR 34706
2007-05-27 12:21:24 +00:00
he e0ce1262e3 Bump SYMTAB_SPACE so that it fits again. 2007-05-27 11:47:11 +00:00
skrll f27ffb061f Fix up the frame sanity checking to not bitch when taking interrupts in
the sti ROM code.

Fixes PR/34715.

Thanks to David H. Gutteridge.
2007-05-27 09:41:25 +00:00
christos e3277e1c36 don't look at the wrong structure to bring the interface down. Also keep
track of state, and bring the interface back up. This should be pulled to
4.0.
2007-05-27 03:15:34 +00:00
christos 1681ee0f39 unregister the read socket when we deinit, otherwise the stale socket stays
in the select mask, select fails with EBADFD and wpa_supplicant exits. This
should be pulled to 4.0.
2007-05-27 03:14:32 +00:00
christos 8231a12bf8 remove the rest of the libc cruft. 2007-05-26 23:00:22 +00:00
christos 26cf69237f This does not appear to need rpc_generic.c 2007-05-26 22:58:43 +00:00
bouyer 098304a55f Add infos about ACPI (now enabled by default) and cdrom images. 2007-05-26 20:45:12 +00:00
christos 99d821089c Fix reversed test and missing +; from Joerg Niendorf 2007-05-26 18:48:48 +00:00
briggs f5462cf43d Clear interrupt status at once instead of piecemeal.
Enable a few more bits in the I/O requested by ld and check for the fast
response bit when reading back from the queue.
Both changes come from reading the FreeBSD driver and testing on a Dell
CERC SATA controller.
2007-05-26 18:10:46 +00:00
agc f1a5908695 In /proc/<pid>/statm, avoid leaking buffer space if the attempt to get
vmspace information fails.

Return the nice value properly to userland via the /proc/<pid>/stat entry.

Use vm sizes from vmspace, rather than rusage structs, for the same
reasons as mentioned previously - see the comment in
kvm_proc.c::kvm_getproc2() about rusage values and zombie processes.
2007-05-26 16:21:04 +00:00
tnozaki ec36328c0e s/approprate/appropriate/ 2007-05-26 13:14:13 +00:00
briggs a21419937e Import code from FreeBSD to tell the controller how much physical RAM the
system has.  This has the (scary-because-we've-been-running-so-long-
without-it) commit message (for the first version of the change):
        Tell the controller how much physical memory we have.  Without this
        there was a chance that our DMA regions would collide with the
        memory window used by the cache on the controller.  The result would
        be massive data corruption.  This seemed to mainly affect systems with
        >2GB of memory.
2007-05-26 12:45:02 +00:00
dyoung 8c4b63fb77 Do not run ctags on sys/dev/usb/usb_port.h. Its #defines shadow
NetBSD symbols, such as clalloc(), that one might one to tag to.
2007-05-26 05:34:04 +00:00
tsutsui 19c950bfd5 Fix a typo in RFACT of the second 3.3Vcc of W83627EHF. From OpenBSD. 2007-05-26 04:19:29 +00:00
tsutsui 2ae2a9ae1e Update function names in comments. 2007-05-26 03:26:49 +00:00
briggs d851f0f321 Note that aac(4) now compiles and runs on amd64. 2007-05-26 03:02:28 +00:00
briggs 98fa060bce Enable aac(4) and ld at aac. 2007-05-26 03:02:02 +00:00
briggs ffe5a7921a Don't use pointers in device structures.
Bring in some newer stuff for the init structure from FreeBSD.
2007-05-26 02:09:40 +00:00
tsutsui 2c07c8ddd5 Use consistent cast. 2007-05-26 00:08:32 +00:00
tsutsui ba1003bc61 Remove an obsolete file after yamt-idlelwp merge. 2007-05-26 00:02:28 +00:00
tsutsui aee64784f3 proc_trampoline -> lwp_trampoline in comment. 2007-05-25 23:58:43 +00:00
uwe 6a75919c1e Clarify comments in pmap_enter. 2007-05-25 23:55:13 +00:00
agc 12003e8756 Use a bit more common code for the MULTIPROCESSOR and !MULTIPROCESSOR
cases.

Use the lwp's priority when returning the priority value, rather than
returning the nice value.
2007-05-25 22:26:14 +00:00
agc 15a3a67ede Various changes for better Linux emulation:
+ in /proc/<pid>/statm emulation, use the memory values from vmspace,
rather than struct rusage, since the rusage values appear to be 0 for
all processes except zombies.  cf dsl's comment in
kvm_proc.c::kvm_getproc2()

+ in /proc/<pid>/stat, instead of returning the tv_sec value, return the
number of ticks we've had (roughly equivalent to the Linux jiffies).
Calculate these values from the tv_usec values.

Also:

+ enclose CPU_INFO_ITERATOR and CPU_INFO_FOREACH usage in #ifdef
MULTIPROCESSOR, at the request of Nick Hudson

Together, these changes allow htop to work on NetBSD.
2007-05-25 19:20:06 +00:00
macallan 98d7e24ac1 add ofctl 2007-05-25 18:28:53 +00:00
macallan b1563bcc6b build ofctl on sparc 2007-05-25 18:27:25 +00:00
macallan 74ab4a8402 make this work with OBP2 2007-05-25 18:27:05 +00:00
yamt 68f37fd0aa amd64nbsd_supply_pcb: as dumpsys() was changed to prepare switchframe,
always use switchframe.  fixes a build problem after yamt-idlelwp.
update some comments.  reviewed by Frank van der Linden.
2007-05-25 15:14:21 +00:00
yamt 8e69ce0726 dumpsys: build a fake switchframe for postmortem debugging.
reviewed by Frank van der Linden.
2007-05-25 15:09:50 +00:00
yamt 2d653f2875 yamt-lazymbuf: some notes 2007-05-25 14:34:11 +00:00