summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't ask about CD numbers if not installing from CD.dwhite2005-07-021-6/+8
| | | | Approved by: re
* Remove the CPU_ENABLE_SSE option from the i386 and pc98 architectures,delphij2005-07-0211-38/+7
| | | | | | | | | | | | | | | | | | | | | | | as they are already default for I686_CPU for almost 3 years, and CPU_DISABLE_SSE always disables it. On the other hand, CPU_ENABLE_SSE does not work for I486_CPU and I586_CPU. This commit has: - Removed the option from conf/options.* - Removed the option and comments from MD NOTES files - Simplified the CPU_ENABLE_SSE ifdef's so they don't deal with CPU_ENABLE_SSE from kernel configuration. (*) For most users, this commit should be largely no-op. If you used to place CPU_ENABLE_SSE into your kernel configuration for some reason, it is time to remove it. (*) The ifdef's of CPU_ENABLE_SSE are not removed at this point, since we need to change it to !defined(CPU_DISABLE_SSE) && defined(I686_CPU), not just !defined(CPU_DISABLE_SSE), if we really want to do so. Discussed on: -arch Approved by: re (scottl)
* Fix a buglet that was present in the ia64 code and that got inheritedmarcel2005-07-023-0/+3
| | | | | | | | | | | | | | | | | | by amd64 and i386: For buffered writes we collect data and write it out a ${DEV_BSIZE}-sized block at a time. The fragsz variable is used to keep track of how much data we have collected in the buffer so far and it's reset to zero immediately after writing a block to the dump device. When the last, possibly partially filled buffer is flushed, we didn't reset fragsz to 0 and as such would stop reflecting reality. Since we currently only need to do buffered writes once, this isn't a problem. However, when kernel dumps are made by hand (say by callling doadump from within DDB), the improperly cleared state from the first call to dumpsys causes the next call to dumpsys to create an invalid code file. This change resets fragsz after flushing the partially filled buffer so that it fixes the two problems at once. Approved by: re (scottl)
* Add a missing ** to the 'command' command.dannyboy2005-07-021-1/+1
| | | | | | | | PR: 79877 Submitted by: Kazuaki Oda <ybbkaz@yahoo.co.jp> Reviewed by: ru Approved by: re MFC after: 1 day
* Fix the alpha build by using the correct argument types for _kvm_kvatop().scottl2005-07-021-1/+1
| | | | | Submitted by: marcel Approved by: re (implicit)
* Fix for a bug in the change that defers sack option processing untilps2005-07-014-8/+10
| | | | | | | | | | after PAWS checks. The symptom of this is an inconsistency in the cached sack state, caused by the fact that the sack scoreboard was not being updated for an ACK handled in the header prediction path. Found by: Andrey Chernov. Submitted by: Noritoshi Demizu, Raja Mukerji. Approved by: re
* Fix for a SACK crash caused by a bug in tcp_reass(). tcp_reass()ps2005-07-012-2/+6
| | | | | | | | | | | | does not clear tlen and frees the mbuf (leaving th pointing at freed memory), if the data segment is a complete duplicate. This change works around that bug. A fix for the tcp_reass() bug will appear later (that bug is benign for now, as neither th nor tlen is referenced in tcp_input() after the call to tcp_reass()). Found by: Pawel Jakub Dawidek. Submitted by: Raja Mukerji, Noritoshi Demizu. Approved by: re
* MFi386: r1.221: use simple timecounter that is aware of irq0 being off.peter2005-07-011-7/+34
| | | | Approved by: re
* Mistakingly undefined VN_KNOTE_LOCKED in my previous commit.ssouhlal2005-07-011-1/+1
| | | | | Noticed by: Antoine Brodin <antoine.brodin@laposte.net> Approved by: re (scottl)
* Fix the recent panics/LORs/hangs created by my kqueue commit by:ssouhlal2005-07-0116-75/+176
| | | | | | | | | | | | | | | | | - Introducing the possibility of using locks different than mutexes for the knlist locking. In order to do this, we add three arguments to knlist_init() to specify the functions to use to lock, unlock and check if the lock is owned. If these arguments are NULL, we assume mtx_lock, mtx_unlock and mtx_owned, respectively. - Using the vnode lock for the knlist locking, when doing kqueue operations on a vnode. This way, we don't have to lock the vnode while holding a mutex, in filt_vfsread. Reviewed by: jmg Approved by: re (scottl), scottl (mentor override) Pointyhat to: ssouhlal Will be happy: everyone
* Upon relection, we shouldn't allow the tuple structs to be modified byimp2005-07-013-11/+7
| | | | | | | the functor, so make it a const pointer, and chase down the resulting const-poisoning. Approved by: re (scottl)
* Up the count of busses supported by usbd(8) from 4 to 40. With the adventjhb2005-07-011-1/+1
| | | | | | | | | | of USB2 "duplicate" psuedo busses, it is not at all uncommon for machines to have more than 4 USB busses nowadays. PR: bin/81533 Submitted by: Darren Pilgrim dmp at bitfreak dot org Approved by: re (scottl) MFC after: 1 week
* Use a simpler implementation for the i8254 timecounter when using the lapicjhb2005-07-012-24/+70
| | | | | | | | | | timer since irq0 isn't being driven at hz in that case and we don't need to try to handle edge cases with rollover, etc. that require irq0 to be firing for the timecounter to actually work. Submitted by: phk Tested by: schweikh Approved by: re (scottl)
* Fix what(1) on kernel binaries by duplicating part of version[] in sccs[]jhb2005-07-011-2/+1
| | | | | | | | | | | and stop trying to play cute games so that sccs[] shares space with version[]. Reported by: Jilles Tjoelker jilles at stack dot nl Discussed with: bde, "R. Imura" imura at ryu16 dot org Idea from: NetBSD (via bde) Approved by: re (scottl) MFC after: 1 week
* Remove the NQNFS paper.phk2005-07-013-2016/+0
| | | | | | | | We removed the corresponding code long time ago and the historically interested can find this paper in the cvs repo, there is no point in installing it any more. Approved by: re@
* Use m_uiotombuf() instead of own implementation. This is not justglebius2005-07-011-25/+10
| | | | | | | | | | a cosmetic change. m_uiotombuf() produces a packet header mbuf, while original implementation did not. When kernel is compiled with MAC support, headerless mbuf will cause panic. Reported by: Alexander Nikiforenko <asn rambler-co.ru> Approved by: re (scottl) MFC After: 2 weeks
* - Providing fine-grained malloc statistic by replacing M_DEVBUF withavatar2005-07-019-66/+98
| | | | | | | | | | | | | module-specific malloc types. These should help us to pinpoint the possible memory leakage in the future. - Implementing xpt_alloc_ccb_nowait() and replacing all malloc/free based CCB memory management with xpt_alloc_ccb[_nowait]/xpt_free_ccb. Hopefully this would be helpful if someday we move the CCB allocator to use UMA instead of malloc(). Encouraged by: jeffr, rwatson Reviewed by: gibbs, scottl Approved by: re (scottl)
* Add an entry about absolute PAM module paths, backdated to when thedes2005-07-011-0/+8
| | | | | | | change happened. Submitted by: rwatson Approved by: re (scottl)
* Fix another fallout from the ifnet change that assumed that a softcharti2005-07-016-9/+9
| | | | | | | starts with an ifatm which in turns has an ifnet. Remove also a couple of unneccessary casts that could hide such things in the future. Approved by: re
* Bump document date. Remove EOL whitespace introduced in previouscperciva2005-07-011-3/+4
| | | | | | commit. Start new line at sentence break in previous commit. Approved by: re (implicit, fixing a commit made 5 minutes ago)
* Document some limitations of uid/gid rules.cperciva2005-07-011-0/+11
| | | | | Approved by: re (rwatson) MFC after: 3 days
* When doing ARP load balancing source IP is taken in network byte order,glebius2005-07-011-1/+1
| | | | | | | | so residue of division for all hosts on net is the same, and thus only one VHID answers. Change source IP in host byte order. Reviewed by: mlaier Approved by: re (scottl)
* Make a pass and cleanup the printfs from this driver.imp2005-07-013-21/+11
| | | | Approved by: re (scottl) blanket ep
* Update the diagnostics section with all the messages from the driverimp2005-07-011-2/+35
| | | | | | as of this date. Bump the date as well. Approved by: re (scottl) blanket ep
* Minor cleanup of ep driver and pccard attachment:imp2005-07-013-45/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Grab the MAC address out of the CIS if the card has the special 3Com 0x88 tuple. Most 3Com cards don't have this tuple, but we prefer it to the eeprom since it only appears to be present when the eeprom doesn't have the info. So far, I've only observed this on my 3C362 and 3C362B cards, but the NetBSD driver implies that the 3C362C also has this tuple, and that some 3C574 cards do too (none of mine do). ep_pccard_mac was written after looking at the NetBSD code. o Store the enet addr in the softc for this device, so we can use the overridden MAC to set the station address. o Create a routine to set the station address and use it where we need it. o setup the cmd shitfs and such before we call ep_alloc(), and remove setting up the cmd shift value there. It initializes to 0, and those attachments that need to frob it do so before calling ep_alloc. o Remove some obsolete comments o No longer a need to export ep_get_macaddr, so make it static o ep_alloc already grabs the EEPROM id, so we don't need to grab it again in ep_pccard_attach. o eliminate unit, it isn't needed, fix some printfs to be device_printf instead. # All my pccards except the 3C1 work now. Didn't test ISA or cbus cards # that I have: 3C509B-TP or 3C569B-J-TPO Tested on: 3C589B, 3C589C, 3C589D, 3C589D-TP, 3C562, 3C562B/3C563B, 3C562D/3C563D, 3CCFE574BT, 3CXEM556, 3CCSH572BT, 3C574-TX, 3CCE589EC, 3CXE589EC, 3CCFEM556, 3C1 Approved by: re (scottl)
* Use correct pointer type. This should fix non-functional re(4)yongari2005-07-011-1/+1
| | | | | | driver on 64bit architectures. Approved by: re (scottl)
* Add examples illustrating how to record system-wide profiles andjkoshy2005-07-011-3/+18
| | | | | | | | | | how to convert these to gprof(1) flat profiles. Augment description for the '-g' option. Remove superfluous quotes around a macro argument, bump document date [1]. Reminded by: ru [1] Approved by: re (blanket hwpmc)
* Unbreak tinderbox builds. Remove a debug printf.jkoshy2005-07-011-14/+12
| | | | Approved by: re (blanket hwpmc)
* Add a much-requested feature: The ability for pccard attachments toimp2005-07-014-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | scan the CIS for interesting tuples. 95% of what can be obtained from the CIS is harvested by the pccard layer and presented to the user in standard function calls. However, there are special needs at times where the standard stuff doesn't suffice. This is for those special cases. CARD_SCAN_CIS(device_get_parent(dev), function, argp) scans the CIS of the card, passing each tuple to function with the tuple and argp as its arguments. Returning 0 continues the scan, while returning 1 terminates the scan. The value of the last invocation of function is returned from this function. int (*pccard_scan_t)(struct pccard_tuple *tuple, void *argp) function called for each tuple. Elements of the CIS tuple can be read with pccard_tuple_read_{1,2,3,4,n}(). You are reading the actual tuple memory each time, in case your card has registers in the CIS. # I suppose these things should be documented in pccard(4) or something like # that. # I plan on unifying cardbus CIS support in a similar way. Approved by: re (scottl)
* MFP4:jkoshy2005-06-3013-379/+1662
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - pmcstat(8) gprof output mode fixes: lib/libpmc/pmclog.{c,h}, sys/sys/pmclog.h: + Add a 'is_usermode' field to the PMCLOG_PCSAMPLE event + Add an 'entryaddr' field to the PMCLOG_PROCEXEC event, so that pmcstat(8) can determine where the runtime loader /libexec/ld-elf.so.1 is getting loaded. sys/kern/kern_exec.c: + Use a local struct to group the entry address of the image being exec()'ed and the process credential changed flag to the exec handling hook inside hwpmc(4). usr.sbin/pmcstat/*: + Support "-k kernelpath", "-D sampledir". + Implement the ELF bits of 'gmon.out' profile generation in a new file "pmcstat_log.c". Move all log related functions to this file. + Move local definitions and prototypes to "pmcstat.h" - Other bug fixes: + lib/libpmc/pmclog.c: correctly handle EOF in pmclog_read(). + sys/dev/hwpmc_mod.c: unconditionally log a PROCEXIT event to all attached PMCs when a process exits. + sys/sys/pmc.h: correct a function prototype. + Improve usage checks in pmcstat(8). Approved by: re (blanket hwpmc)
* New release notes: SA-05:13.ipfw, SA-05:14.bzip2, SA-05:15.tcp.bmah2005-06-302-0/+46
| | | | Approved by: re (blanket relnotes)
* Remove REQUIRE and BEFORE lines since this script is not run by rcorderbrooks2005-06-301-2/+0
| | | | | | at startup. Instead it is called by other scripts. Approved by: re (network interface startup blanket)
* Use SCTL_MASK32 to determine that the sysctl call is from a 32bitps2005-06-301-7/+2
| | | | | | binary for kern.cp_time. Approved by: re
* - Retire the Early Adopter's Guide in HEAD.rushani2005-06-306-679/+0
| | | | | | | | | | | - Remove following files since their contents are merged into relnotes/common/new.sgml years ago. relnotes/common/artheader.sgml relnotes/common/intro.sgml relnotes/common/upgrading.sgml Approved by: re (hrs)
* MFi386: revision 1.615 (change kernel crashdump format to ELF).nyan2005-06-301-20/+38
| | | | Approved by: re (scottl)
* Use 'manual page' instead of 'man page' for consistency.hmp2005-06-3010-14/+14
| | | | Approved by: re (hrs)
* Use 'manual page' instead of 'man page' for consistency.hmp2005-06-304-5/+5
| | | | Approved by: re (hrs)
* Use consistent translation for the word ``interface''.rushani2005-06-301-1/+1
| | | | Approved by: re (hrs)
* Merge the following from the English version:rushani2005-06-302-217/+16
| | | | | | | 1.3 -> 1.7 Makefile 1.65 -> 1.73 errata/article.sgml Approved by: re (hrs)
* Update Russian override of dev-auto.sgmlden2005-06-302-3/+23
| | | | | Obtained from: The FreeBSD Russian Documentation Project Approved by: re (blanket)
* Our bsd.*.mk only supports 6 WARNS levels and we should not use higher valuesjohan2005-06-301-1/+1
| | | | | | until it does. Approved by: re (dwhite)
* Merge the following from the English version:den2005-06-306-137/+511
| | | | | | | | | | | | 1.278 -> 1.282 hardware/common/dev.sgml 1.31 -> 1.32 installation/common/install.sgml 1.17 -> 1.19 installation/common/trouble.sgml 1.6 -> 1.7 installation/common/artheader.sgml 1.845 -> 1.879 relnotes/common/new.sgml 1.36 -> 1.37 readme/article.sgml Obtained from: The FreeBSD Russian Documentation Project Approved by: re (blanket)
* Jumbo-commit to enhance 32 bit application support on 64 bit kernels.peter2005-06-3014-44/+908
| | | | | | | | | | | | | | | | | | | | | | | | This is good enough to be able to run a RELENG_4 gdb binary against a RELENG_4 application, along with various other tools (eg: 4.x gcore). We use this at work. ia32_reg.[ch]: handle the 32 bit register file format, used by ptrace, procfs and core dumps. procfs_*regs.c: vary the format of proc/XXX/*regs depending on the client and target application. procfs_map.c: Don't print a 64 bit value to 32 bit consumers, or their sscanf fails. They expect an unsigned long. imgact_elf.c: produce a valid 32 bit coredump for 32 bit apps. sys_process.c: handle 32 bit consumers debugging 32 bit targets. Note that 64 bit consumers can still debug 32 bit targets. IA64 has got stubs for ia32_reg.c. Known limitations: a 5.x/6.x gdb uses get/setcontext(), which isn't implemented in the 32/64 wrapper yet. We also make a tiny patch to gdb pacify it over conflicting formats of ld-elf.so.1. Approved by: re
* Begin promoting the AMD-originated feature flags to first class flags, nowpeter2005-06-303-92/+86
| | | | | | | | | | | | | | | | | that newer Intel cpu hardware implements them too. This includes things like the NX (pte no-execute) flag for execute protection. We'll need to reference this for implementing no-exec in pmap.c at some point. Some feature flags are duplicated in both the Intel-orignated bits and the AMD bits. Suppress the the duplicates correctly - the old code assumed they were a 1:1 mapping which is not correct. We can't just mask off the bits present in cpu_feature. Converge with amd64 where this originated from. Intel cpu's that implement any AMD features will report them in dmesg now. Approved by: re
* Tidy up the markup.ru2005-06-301-214/+285
| | | | Approved by: re (blanket manpages)
* Don't complain when we receive smtp, pop, nntp, www, finger, and ircbrooks2005-06-302-0/+13
| | | | | | | server options. Reported by: Max Boyarov <max_b at tut dot by> Approved by: re (dhclient blanket)
* i386->amd64 syncpeter2005-06-301-0/+2
| | | | | | Add ath_hal and ichwd modules Approved by: re (blanked i386<->amd64 sync)
* Sync i386->amd64.peter2005-06-303-7/+31
| | | | | | | | | | | * Add ichwd (The Intel EM64T folks have an ICH) * Cosmetic comment syncs * Merge cpufreq change over to NOTES * add pbio (it compiles, but isn't useful since no boxes have ISA slots) * copy ath settings (note: wlan disabled here since its in global NOTES) * copy profiling, including fixing a previous i386->amd64 merge typo. Approved by: re (blanket i386 <-> amd64 sync/convergence)
* People like to do RFC violating things with the domain-name option andbrooks2005-06-301-1/+1
| | | | | | | | | | | | include a space seperated list of domains instead of the domain of the host. This is supported on too many platforms to break for now so, remove validation of this option for the moment. The correct solution longer term is to implement RFC 3397 support and then treat domain-name options containing space seperated lists of domains as domain-search options for backwards compatability. Approved by: re (dhclient blanket)
* Fixed two bugs in Perl to C conversion that prevented locale nameru2005-06-301-3/+3
| | | | | | | | from being parsed correctly. OK'ed by: markm Approved by: re (scottl) MFC after: 3 days
OpenPOWER on IntegriCloud