aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Test for EACCES also when opening FIFO or directory.Pawel Jakub Dawidek2010-08-061-26/+124
| | | | Notes: svn path=/head/; revision=210955
* Test O_RDONLY|O_RDWR flags as potentially invalid.Pawel Jakub Dawidek2010-08-061-1/+2
| | | | Notes: svn path=/head/; revision=210954
* Make description readable.Pawel Jakub Dawidek2010-08-061-1/+1
| | | | Notes: svn path=/head/; revision=210953
* Add missing -U argument to usage.Pawel Jakub Dawidek2010-08-061-1/+1
| | | | Notes: svn path=/head/; revision=210952
* Implement two new syscalls: bind(2) and connect(2) for operating on UNIXPawel Jakub Dawidek2010-08-061-0/+32
| | | | | | | domain sockets. Notes: svn path=/head/; revision=210951
* Fix whitespace nits.Bernhard Schmidt2010-08-062-2/+2
| | | | | | | | | PR: conf/148989 Submitted by: pluknet <pluknet at gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=210947
* Fix a typo introduced in r210936 which broke build.Pyun YongHyeon2010-08-061-1/+1
| | | | Notes: svn path=/head/; revision=210946
* Figure which is the IO and MEM bars- do not assume that they are inMatt Jacob2010-08-061-4/+17
| | | | | | | | | | | a fixed order. PR: 149220 Obtained from: John Baldwin MFC after: 1 month Notes: svn path=/head/; revision=210943
* Remove unnecessary casting and simplify code. We are not there yet. ;-)Jung-uk Kim2010-08-061-3/+1
| | | | Notes: svn path=/head/; revision=210942
* Add links for destroy_dev_drain, destroy_dev_sched, destroy_dev_sched_cb,Stefan Farfeleder2010-08-061-1/+6
| | | | | | | make_dev_cred and make_dev_credf. Notes: svn path=/head/; revision=210941
* Correct argument order of acpi_restorecpu(), which was forgotten in r210804.Jung-uk Kim2010-08-061-1/+1
| | | | Notes: svn path=/head/; revision=210940
* Add a new ipi_cpu() function to the MI IPI API that can be used to send anJohn Baldwin2010-08-0617-30/+202
| | | | | | | | | | | | | | | IPI to a specific CPU by its cpuid. Replace calls to ipi_selected() that constructed a mask for a single CPU with calls to ipi_cpu() instead. This will matter more in the future when we transition from cpumask_t to cpuset_t for CPU masks in which case building a CPU mask is more expensive. Submitted by: peter, sbruno Reviewed by: rookie Obtained from: Yahoo! (x86) MFC after: 1 month Notes: svn path=/head/; revision=210939
* Consistently use architecture specific macros.Jung-uk Kim2010-08-061-3/+3
| | | | Notes: svn path=/head/; revision=210938
* Adjust the interface type in the link layer socket address for vlan(4)John Baldwin2010-08-061-0/+5
| | | | | | | | | | | | | | interfaces to be a vlan (IFT_L2VLAN) rather than an Ethernet interface (IFT_ETHER). The code already fixed if_type in the ifnet causing some places to report the interface as a vlan (e.g. arp -a output) and other places to report the interface as Ethernet (getifaddrs(3)). Now they should all report IFT_L2VLAN. Reviewed by: brooks MFC after: 1 month Notes: svn path=/head/; revision=210937
* Ethernet vlan(4) interfaces have valid Ethernet link layer addresses butJohn Baldwin2010-08-065-2/+9
| | | | | | | | | | | use a different interface type (IFT_L2VLAN vs IFT_ETHER). Treat IFT_L2VLAN interfaces like IFT_ETHER interfaces when handling link layer addresses. Reviewed by: syrinx (bsnmpd) MFC after: 1 week Notes: svn path=/head/; revision=210936
* Add Xen to the list of virtual vendors. In the non PV (HVM) case this fixesChristian S.J. Peron2010-08-061-0/+1
| | | | | | | | | | | the virtualization detection successfully disabling the clflush instruction. This fixes insta-panics for XEN hvm users when the hw.clflush_disable tunable is -1 or 0 (-1 by default). Discussed with: jhb Notes: svn path=/head/; revision=210935
* Fix allocation of multiple pages, which forgot to increase page number.Jung-uk Kim2010-08-061-1/+5
| | | | | | | | Particularly, it caused "vm86_addpage: overlap" panics under VirtualBox. Add a safety check before freeing memory while I am here. Notes: svn path=/head/; revision=210934
* Fix typos and spelling mistakes.Joel Dahl2010-08-0645-57/+57
| | | | Notes: svn path=/head/; revision=210933
* Disable sync cache for the Transcend Jetflash V90. It is more specificKonstantin Belousov2010-08-061-0/+2
| | | | | | | | | | quirk over the general one for transcend sticks. Submitted by: Mykola Dzham <i levsha me> MFC after: 1 week Notes: svn path=/head/; revision=210931
* Typo fixesUlrich Spörlein2010-08-061-9/+9
| | | | | | | | | PR: docs/149314 Submitted by: olgeni MFC after: 3 days Notes: svn path=/head/; revision=210930
* - Some fixes to Ukranian catalogGabor Kovesdan2010-08-061-2/+2
| | | | | | | Submitted by: avg, Alex Kozlov <spam@rm-rf.kiev.ua> Notes: svn path=/head/; revision=210927
* Mark /dev/zero and /dev/null as eternal.Konstantin Belousov2010-08-061-4/+4
| | | | | | | | In collaboration with: pho MFC after: 1 month Notes: svn path=/head/; revision=210926
* Enable shared lookups and externed shared ops for devfs.Konstantin Belousov2010-08-061-1/+2
| | | | | | | | In collaboration with: pho MFC after: 1 month Notes: svn path=/head/; revision=210925
* Add "show cdev" ddb command.Konstantin Belousov2010-08-061-0/+68
| | | | | | | | In collaboration with: pho MFC after: 1 month Notes: svn path=/head/; revision=210924
* Add new make_dev_p(9) flag MAKEDEV_ETERNAL to inform devfs that createdKonstantin Belousov2010-08-069-98/+146
| | | | | | | | | | | | cdev will never be destroyed. Propagate the flag to devfs vnodes as VV_ETERNVALDEV. Use the flags to avoid acquiring devmtx and taking a thread reference on such nodes. In collaboration with: pho MFC after: 1 month Notes: svn path=/head/; revision=210923
* Fix issue reported by alc :Jayachandran C.2010-08-061-5/+3
| | | | | | | | | | | | MIPS doesn't really need to use atomic_cmpset_int() in situations like this because the software dirty bit emulation in trap.c acquires the pmap lock. Atomics like this appear to be a carryover from i386 where the hardware-managed TLB might concurrently set the modified bit. Reviewed by: alc Notes: svn path=/head/; revision=210922
* Enable shared locks for the devfs vnodes. Honor the locking modeKonstantin Belousov2010-08-063-17/+20
| | | | | | | | | | requested by lookup(). This should be a nop at the moment. In collaboration with: pho MFC after: 1 month Notes: svn path=/head/; revision=210921
* Initialize VV_ISTTY vnode flag on the devfs vnode creation instead ofKonstantin Belousov2010-08-061-4/+5
| | | | | | | | | | doing it on each open. In collaboration with: pho MFC after: 1 month Notes: svn path=/head/; revision=210918
* Fix the issue reported by alc:Jayachandran C.2010-08-062-6/+10
| | | | | | | | | | | | | | | | | | | pmap_page_wired_mappings() counts the number of pv entries for the specified page that have the pv entry wired flag set to TRUE. pmap_enter() correctly initializes this flag. However, pmap_change_wiring() doesn't update the corresponding pv entry flag, only the PTE. So, the count returned by pmap_page_wired_mappings() will sometimes be wrong. In the short term, the best fix would be to eliminate the pv entry flag and use only the PTE. That flag is wasting non-trivial memory. Remove pv_wired flag, and use PTE flag to count the wired mappings. Reviewed by: alc Notes: svn path=/head/; revision=210914
* Remove redundant declaration of 'pcib_driver' class from sb_zbpci.c. ThisNeel Natu2010-08-061-1/+0
| | | | | | | | | causes a compilation error. The declaration is provided by sys/dev/pci/pcib_private.h starting from r210864. Notes: svn path=/head/; revision=210913
* Force commit to remind me about MFCing r210909.Pawel Jakub Dawidek2010-08-060-0/+0
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=210912
* Use a signed integer to hold the address of a register.Neel Natu2010-08-061-10/+10
| | | | | | | | This does the right thing by sign extending the address when compiling for the n64 abi. Notes: svn path=/head/; revision=210911
* uint64_t is 'unsigned long' in n64 build, so compiler is unhappy if theNeel Natu2010-08-061-3/+3
| | | | | | | | | format specifier in printf is "%llu". Use "%ju" instead. Notes: svn path=/head/; revision=210910
* Update the arguments to yy_config_parse() to match r210883.Doug Barton2010-08-061-1/+1
| | | | | | | | Choose the more conservative option ('yes' to exit on error) to match the equivalent code in hastd. Notes: svn path=/head/; revision=210909
* Reflect default Tx interrupt moderation timer value change(50ms -> 1ms).Pyun YongHyeon2010-08-061-1/+1
| | | | Notes: svn path=/head/; revision=210905
* Reduce Tx interrupt moderation timer from 50ms to 1ms. The defaultPyun YongHyeon2010-08-061-2/+2
| | | | | | | | | | value resulted in poor performance for UDP packets. With this change, UDP bulk transfer performance is more than 940Mbps. While I'm here fix a wrong register definition. Notes: svn path=/head/; revision=210904
* - Add interrupts counter for PCI devicesOleksandr Tymoshenko2010-08-051-2/+12
| | | | Notes: svn path=/head/; revision=210900
* Document 'none' value for remote.Pawel Jakub Dawidek2010-08-051-1/+6
| | | | | | | | Reviewed by: dougb MFC after: 1 month Notes: svn path=/head/; revision=210892
* Re-add flag register for output. Some BIOS calls actually use it to returnJung-uk Kim2010-08-051-0/+1
| | | | | | | success/failure status. Oops. Notes: svn path=/head/; revision=210887
* Implement configuration reload on SIGHUP. This includes:Pawel Jakub Dawidek2010-08-053-12/+322
| | | | | | | | | | | | | | - Load added resources. - Stop and forget removed resources. - Update modified resources in least intrusive way, ie. don't touch /dev/hast/<name> unless path to local component or provider name were modified. Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com MFC after: 1 month Notes: svn path=/head/; revision=210886
* Do not copy stack pointer and flags. These registers are unconditionallyJung-uk Kim2010-08-051-6/+0
| | | | | | | destroyed from vm86_prepcall(). Notes: svn path=/head/; revision=210885
* Prepare configuration parsing code to be called multiple times:Pawel Jakub Dawidek2010-08-053-58/+111
| | | | | | | | | | | | | - Don't exit on errors if not requested. - Don't keep configuration in global variable, but allocate memory for configuration. - Call yyrestart() before yyparse() so that on error in configuration file we will start from the begining next time and not from the place we left of. MFC after: 1 month Notes: svn path=/head/; revision=210883
* Make control_set_role() more public. We will need it soon.Pawel Jakub Dawidek2010-08-052-10/+20
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=210882
* Allow to use 'none' keywork as remote address in case second cluster nodePawel Jakub Dawidek2010-08-051-2/+12
| | | | | | | | | is not setup yet. MFC after: 1 month Notes: svn path=/head/; revision=210881
* Reset signal handlers after fork().Pawel Jakub Dawidek2010-08-052-0/+6
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=210880
* - Use pjdlog_exitx() to log errors and exit instead of errx().Pawel Jakub Dawidek2010-08-052-5/+7
| | | | | | | | | - Use 'unable to' (instead of 'cannot') consistently. MFC after: 1 month Notes: svn path=/head/; revision=210879
* Enable closefrom(2) here, as we have supported it for some time now.Christian S.J. Peron2010-08-051-4/+0
| | | | | | | | Discussed with: mlaier MFC after: 2 weeks Notes: svn path=/head/; revision=210878
* Implement a simple native VM86 backend for X86BIOS. Now i386 uses nativeJung-uk Kim2010-08-053-77/+268
| | | | | | | | | | | | | | | | VM86 calls instead of the real mode emulator as a backend. VM86 has been proven reliable for very long time and it is actually few times faster than emulation. Increase maximum number of page table entries per VM86 context from 3 to 8 pages. It was (ridiculously) low and insufficient for new VM86 backend, which shares one context globally. Slighly rearrange and clean up the emulator backend to accommodate new code. The only visible change here is stack size, which is decreased from 64K to 4K bytes to sync. with VM86. Actually, it seems there is no need for big stack in real mode. MFC after: 1 month Notes: svn path=/head/; revision=210877
* Assert that various buffers we are large enough.Pawel Jakub Dawidek2010-08-052-10/+13
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=210876
* Problem with assertion is that it logs on stderr. Add two macros:Pawel Jakub Dawidek2010-08-052-0/+33
| | | | | | | | | | | | PJDLOG_ASSERT() and PJDLOG_VERIFY() that will check the given condition and log the problem where appropriate. The difference between those two is that PJDLOG_VERIFY() always work and PJDLOG_ASSERT() can be turned off by defining NDEBUG. MFC after: 1 month Notes: svn path=/head/; revision=210875