summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change gcc to assume a default machine architecture of 486 instead of 386jhb2009-10-211-1/+1
| | | | | | | | | | on "i386". Doing it in the compiler is deemed to be less fragile then attempting to provide a default -march setting via bsd.cpu.mk. FreeBSD itself has not supported plain 386 CPUs since 5.x. Suggested by: kan Requested by: rdivacky MFC after: 1 month
* Handle the case where there is only one PMC in the system.fabient2009-10-211-4/+4
| | | | | Approved by: jkoshy (mentor) MFC after: 3 days
* Review previous change. It has no relation to the I-cache coherencymarcel2009-10-211-1/+1
| | | | | | changes and thus unintentional. Spotted by: rdivacky@
* o Introduce vm_sync_icache() for making the I-cache coherent withmarcel2009-10-2120-74/+196
| | | | | | | | | | | | | | | | | | | | | the memory or D-cache, depending on the semantics of the platform. vm_sync_icache() is basically a wrapper around pmap_sync_icache(), that translates the vm_map_t argumument to pmap_t. o Introduce pmap_sync_icache() to all PMAP implementation. For powerpc it replaces the pmap_page_executable() function, added to solve the I-cache problem in uiomove_fromphys(). o In proc_rwmem() call vm_sync_icache() when writing to a page that has execute permissions. This assures that when breakpoints are written, the I-cache will be coherent and the process will actually hit the breakpoint. o This also fixes the Book-E PMAP implementation that was missing necessary locking while trying to deal with the I-cache coherency in pmap_enter() (read: mmu_booke_enter_locked). The key property of this change is that the I-cache is made coherent *after* writes have been done. Doing it in the PMAP layer when adding or changing a mapping means that the I-cache is made coherent *before* any writes happen. The difference is key when the I-cache prefetches.
* Make input parsing in Farhenheit actually work.ed2009-10-211-5/+5
| | | | | | | | | | | | Don't clobber *p with '\0' when testing whether it has the value of 'F'. Just use the semantics of strtof() properly. If it returns p, we know that it parsed the string until it reached 'C' or 'F'. The code has not changed since it has been imported (r161951, Sep 3, 2006). Submitted by: Alexandre Perrin <kaworu@kaworu.ch> MFC after: 1 week
* PR: 139751fabient2009-10-211-1/+1
| | | | | | Approved by: des Obtained from: Xavier Heiny <xavier.heiny@netasq.com> MFC after: 3 weeks
* o Align function on a 32-byte boundary so that the core's front-endmarcel2009-10-211-3/+7
| | | | | | can deliver 2 bundles per cycle to the back-end. o Mark syscall stubs with a special unwind ABI tag so that unwind libraries know how to unwind.
* Set CSTD in all cases except when CC=icc and NO_WARNS is set. Thisrdivacky2009-10-211-1/+1
| | | | | | | | way we can set desired C standard even for cross tools etc. Tested by: make universe Approved by: ed (maintainer) OK by: das
* MFp4:mav2009-10-211-4/+4
| | | | Do not search for bus when it is not needed,
* Check pointer for NULL before dereferencing it, not after.brueffer2009-10-211-1/+2
| | | | | | | PR: 138383 Submitted by: Patroklos Argyroudis <argp@census-labs.com> Reviewed by: rnoland MFC after: 1 week
* MFp4:mav2009-10-212-174/+29
| | | | | | | Separate CAM_DEV_IDENTIFY_DATA_VALID flag from CAM_DEV_INQUIRY_DATA_VALID. Add workaround for very old devices without support for mode setting. Add some PATA bus scanning support. Remove some SCSIsms.
* Check pointer for NULL before dereferencing it, not after.brueffer2009-10-211-1/+1
| | | | | | PR: 138384 Submitted by: Patroklos Argyroudis <argp@census-labs.com> MFC after: 1 week
* MFp4:mav2009-10-211-85/+111
| | | | | | | Add support for PIO-only devices. Fix maxio values and 256 sectors transactions for 28bits commands. Implement periodic ordered commands insertion, sames as da driver does. Remove some SCSIsms.
* Add a missing free() call.brueffer2009-10-211-0/+2
| | | | | | | PR: 138379 Submitted by: Patroklos Argyroudis <argp@census-labs.com> Reviewed by: gibbs MFC after: 1 week
* MFp4:mav2009-10-213-3/+4
| | | | | Report real max_target = 15. SIM doesn't need to know that target 15 is PMP. It is XPT business.
* MFp4:mav2009-10-211-7/+26
| | | | Freeze device queue on error to permit periph driver to do proper recovery.
* - Introduce new option BCE_JUMBO_HDRSPLIT that allows user to enable headerstas2009-10-214-47/+54
| | | | | | | | splitting in bce(4) instead of (ab)using ZERO_COPY_SOCKETS that was not propagated into if_bce.c anyway. It is disabled by default. Approved by: davidch MFC after: 3 days
* MFp4:mav2009-10-212-37/+79
| | | | | | | | | | | On error, freeze device queue, to allow periph driver to do proper recovery. Freeze SIM queue only in some cases, when it is needed to protect SIM. Implement better command timeout detection logic for non-queued commands. This fixes false positives when command with short timeout waiting for the long one. For example, when hald tastes CD during burning process. Read and clear SERR register on interrupt.
* - On entrance to the rx_eof sync RX rings maps with POSTWRITE flagstas2009-10-211-4/+7
| | | | | | | | | | | | | | | | instead of POSTREAD: the hardware do not touch this memory (CPU updates it). It is already synchronized as PREWRITE after the processing is done. - Synchronize RX return ring memory in rx_eof. This is needed as the deviced updates this memory when receives packets. - Decouple the synchronization of BGE status block in the interrupt service routine: perfrom PREREAD synchronization only all accesses to this block are finished. This seems to be more natural. Reviewed by: yongari, marius MFC after: 2 weeks
* Introduce 'netDev=ANY' support for scripted (install.cfg) installs, which ↵rink2009-10-211-10/+73
| | | | | | | | results in the first ethernet interface with physical link being selected. While here, fix a minor typo causing an 'if' to be missed. Submitted by: randi
* The tunefs utility does not work on active filesystems.remko2009-10-211-2/+2
| | | | | | PR: docs/139705 Submitted by: Warren Block <wblock at wonkity dot com> Approved by: imp (mentor, implicit)
* Add empty watchdogd_flags.brueffer2009-10-211-0/+1
| | | | | | PR: 136620 Submitted by: amdmi3 MFC after: 3 days
* Improve the description of the malofw kernel module installation.brueffer2009-10-211-5/+10
| | | | | | | PR: 132193 Submitted by: Frank Staals <frank@fstaals.net> Based on a patch by: gavin MFC after: 3 days
* Change from CAM_TID_INVALID to CAM_SEL_TIMEOUT error code when the usb devicethompsa2009-10-201-2/+3
| | | | | | | | | | | | | | has been yanked, this works around a cam recounting bug when CAM_DEV_UNCONFIGURED is set late in the detach. In certain conditions the reference to the XPT device would not be released which would cause the usb explore thread to sleep forever on "simfree", preventing any new usb devices to be found/ejected on the bus. This is intended to be a quick workaround to the problem without touching CAM so it can be merged to 8.0. Suggested by: mav MFC after: 3 days
* The flow-table function flowtable_route_flush() may be calledqingli2009-10-201-7/+11
| | | | | | | | | | during system initialization time. Since the flow-table is designed to maintain per CPU flow cache, the existing code did not check whether "smp_started" is true before calling sched_bind() and sched_unbind(), which triggers a page fault. Reviewed by: jeff MFC after: immediately
* Fix a case where rename actually succeeds, which is also expected behaviourpjd2009-10-201-2/+3
| | | | | | according to POSIX. This fixes ZFS on Solaris testing. Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>
* Make mxge do a better job recovering from NIC h/w faultsgallatin2009-10-201-13/+37
| | | | | | | by checking PCI config space when the NIC is not transmitting. Previously, a h/w fault would not have been detected if the NIC was down, or handling an RX only workload.
* In the ARP callout timer expiration function, the current time_secondqingli2009-10-201-9/+9
| | | | | | | | | | | | | is compared against the entry expiration time value (that was set based on time_second) to check if the current time is larger than the set expiration time. Due to the +/- timer granularity value, the comparison returns false, causing the alternative code to be executed. The alternative code path freed the memory without removing that entry from the table list, causing a use-after-free bug. Reviewed by: discussed with kmacy MFC after: immediately Verified by: rnoland, yongari
* Random number generator initialization cleanup:ru2009-10-203-2/+15
| | | | | | | | | | | | | | | | | | | | | - Introduce new SI_SUB_RANDOM point in boot sequence to make it clear from where one may start using random(9). It should be as early as possible, so place it just after SI_SUB_CPU where we have some randomness on most platforms via get_cyclecount(). - Move stack protector initialization to be after SI_SUB_RANDOM as before this point we have no randomness at all. This fixes stack protector to actually protect stack with some random guard value instead of a well-known one. Note that this patch doesn't try to address arc4random(9) issues. With current code, it will be implicitly seeded by stack protector and hence will get the same entropy as random(9). It will be securely reseeded once /dev/random is feeded by some entropy from userland. Submitted by: Maxim Dounin <mdounin@mdounin.ru> MFC after: 3 days
* Unloading of the nfscl module is unsupported because newnfslock doesn'tjh2009-10-202-0/+14
| | | | | | | | | support unloading. It's not trivial to implement newnfslock unloading so for now just admit that unloading is unsupported and refuse to attempt unload in all nfscl module event handlers. Reviewed by: rmacklem Approved by: trasz (mentor)
* Fix ordering of nfscl_modevent() and ncl_uninit(). nfscl_modevent() mustjh2009-10-201-1/+1
| | | | | | | | be called after ncl_uninit() when unloading the nfscl module because ncl_uninit() uses ncl_iod_mutex which is destroyed in nfscl_modevent(). Reviewed by: rmacklem Approved by: trasz (mentor)
* Fix comment typos.jh2009-10-201-4/+4
| | | | | Reviewed by: rmacklem Approved by: trasz (mentor)
* ichwd.4: fix r198272, restore watchdogd(8) referenceavg2009-10-201-0/+1
| | | | | | | | | In r198272 I didn't notice that watchdog(8) and watchdogd(8) are different things and instead of fixing watchdogd markup I simply nuked the line. Noticed by: emaste Pointy hat to: avg
* Update package list for 8.0-REL.kensmith2009-10-201-14/+17
| | | | | Reviewed by: re@, portmgr@ MFC after: 1 day
* minor: fix sorting of some amd* entries in some makefilesavg2009-10-202-3/+3
| | | | MFC after: 1 week
* Allow KMOD with hypens and dots.fjoe2009-10-201-7/+9
| | | | MFC after: 1 week
* ichwd.4: remove a stray lineavg2009-10-201-1/+0
| | | | | Nod from: des MFC after: 3 days
* add amdtemp to i386 NOTESavg2009-10-201-0/+2
| | | | | | essentially this is a MFamd64 Nod from: rpaulo
* MFV of tzdata2009o:edwin2009-10-202-11/+102
| | | | | | | | - Somoa has not moved to DST this year (comment only) - Bangladesh stays on DST for now. - Pakistan went back to standard time in 1 October 2009 MFC after: 1 week
* Instead of having to know which timezone was picked last time, youedwin2009-10-202-16/+80
| | | | | | | now can run "tzsetup -r" which will reinstall the last choice. This data is recorded in /var/db/zoneinfo. MFC after: 1 week
* Use callout_init_mtx on FreeBSD versions recent enough. This closeskan2009-10-204-21/+40
| | | | | | | | | | | the race where interrupt thread can complete the request for which timeout has fired and while mpt_timeout has blocked on mpt_lock. Do a best effort to keep 4.x ang Giant-locked configurartions compiling still. Reported by: ups Reviewed by: scottl
* Fix a bug in composing PERR frames introduced by latest draft update.rpaulo2009-10-191-1/+2
| | | | MFC after: 3 days
* Remove a redundant option ROM check, which was never meant to be committed.jkim2009-10-191-3/+2
|
* Add opt_gdb.h which is now needed by ucom.thompsa2009-10-191-1/+1
|
* Add support for newer WinChipHead CH341 chips, previously in the uch341 driver.thompsa2009-10-192-116/+58
| | | | Submitted by: HPS
* Remove the newly added uch341 driver, it will be merged into uchcom instead.thompsa2009-10-194-570/+3
| | | | | Suggested by: takawata Submitted by: HPS
* Make the usage of the default zoneinfo file to install clearer.edwin2009-10-191-5/+6
| | | | MFC after: 1 week
* When tzsetup is run as non-root and the "CMOS clock question onedwin2009-10-191-1/+3
| | | | | | | UTC" is answered as No, it would abort without properly ending the dialog session. MFC after: 1 week
* Fix a copy-and-pasto in the previous commit.jkim2009-10-191-1/+1
|
* Rewrite x86bios and update its dependent drivers.jkim2009-10-1913-708/+944
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Do not map entire real mode memory (1MB). Instead, we map IVT/BDA and ROM area separately. Most notably, ROM area is mapped as device memory (uncacheable) as it should be. User memory is dynamically allocated and free'ed with contigmalloc(9) and contigfree(9). Remove now redundant and potentially dangerous x86bios_alloc.c. If this emulator ever grows to support non-PC hardware, we may implement it with rman(9) later. - Move all host-specific initializations from x86emu_util.c to x86bios.c and remove now unnecessary x86emu_util.c. Currently, non-PC hardware is not supported. We may use bus_space(9) later when the KPI is fixed. - Replace all bzero() calls for emulated registers with more obviously named x86bios_init_regs(). This function also initializes DS and SS properly. - Add x86bios_get_intr(). This function checks if the interrupt vector is available for the platform. It is not necessary for PC-compatible hardware but it may be needed later. ;-) - Do not try turning off monitor if DPMS does not support the state. - Allocate stable memory for VESA OEM strings instead of just holding pointers to them. They may or may not be accessible always. Fix a memory leak of video mode table while I am here. - Add (experimental) BIOS POST call for vesa(4). This function calls VGA BIOS POST code from the current VGA option ROM. Some video controllers cannot save and restore the state properly even if it is claimed to be supported. Usually the symptom is blank display after resuming from suspend state. If the video mode does not match the previous mode after restoring, we try BIOS POST and force the known good initial state. Some magic was taken from NetBSD (and it was taken from vbetool, I believe.) - Add a loader tunable for vgapci(4) to give a hint to dpms(4) and vesa(4) to identify who owns the VESA BIOS. This is very useful for multi-display adapter setup. By default, the POST video controller is automatically probed and the tunable "hw.pci.default_vgapci_unit" is set to corresponding vgapci unit number. You may override it from loader but it is very unlikely to be necessary. Unfortunately only AGP/PCI/PCI-E controllers can be matched because ISA controller does not have necessary device IDs. - Fix a long standing bug in state save/restore function. The state buffer pointer should be ES:BX, not ES:DI according to VBE 3.0. If it ever worked, that's because BX was always zero. :-) - Clean up register initializations more clearer per VBE 3.0. - Fix a lot of style issues with vesa(4).
OpenPOWER on IntegriCloud