aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Various updates to support new pc-sysinstall directiveWarner Losh2010-08-1912-35/+358
| | | | | | | | | | | "installPackages" that will install packages and all package dependencies. PR: 148606 Submitted by: John Hixon Notes: svn path=/head/; revision=211485
* First cut at mips n64 ABI supportWarner Losh2010-08-191-0/+20
| | | | Notes: svn path=/head/; revision=211484
* Unbreak the LINT kernel on powerpc64. Note that the LINT kernelNathan Whitehorn2010-08-193-1/+9
| | | | | | | | | | configuration is TARGET_ARCH specific and must be generated with TARGET_ARCH set. Reviewed by: imp Notes: svn path=/head/; revision=211483
* Remove now unused 'reg'.Adrian Chadd2010-08-191-1/+0
| | | | Notes: svn path=/head/; revision=211482
* Initialise the USB system using cpuops rather than the AR71XX specific method.Adrian Chadd2010-08-191-16/+1
| | | | Notes: svn path=/head/; revision=211481
* Migrate the CPU reset path to use the new cpuops.Adrian Chadd2010-08-191-3/+1
| | | | Notes: svn path=/head/; revision=211480
* Remove the now-unused DDR flush register value.Adrian Chadd2010-08-191-1/+0
| | | | Notes: svn path=/head/; revision=211479
* Make the PCI initialisation path use the new cpuops rather than directlyAdrian Chadd2010-08-191-8/+4
| | | | | | | programming the reset register. Notes: svn path=/head/; revision=211478
* Make if_arge use the new cpuops rather than hard coding the DDR flush registers.Adrian Chadd2010-08-191-22/+8
| | | | Notes: svn path=/head/; revision=211477
* Preparation work for supporting the AR91xx and AR724x.Adrian Chadd2010-08-1910-32/+417
| | | | | | | | | | | | | | | | | | * Implement a SoC probe function, from Linux, which determines the SoC family, type and revision. This only probes the AR71xx series SoC and (currently) panics on others. * Migrate some of the AR71XX specific hardware init (USB device, determining system frequencies) into using the cpuops introduced in an earlier commit. Other SoC specific hardware stuff (per-device flush/WB, GPIO pin wiring, Ethernet PLL setup, other things I've likely missed) will be introduced in subsequent commits. Reviewed by: imp@ Obtained from: (partially) Linux Notes: svn path=/head/; revision=211476
* Check return value of dup(), it could be -1 when the system is runningXin LI2010-08-191-1/+8
| | | | | | | | | | | out of file descriptors for instance. Found with: Coverity Prevent(tm) CID: 6084 MFC after: 1 month Notes: svn path=/head/; revision=211475
* More tests.Pawel Jakub Dawidek2010-08-1815-135/+120
| | | | Notes: svn path=/head/; revision=211474
* sh: Add a test for break from a trap action.Jilles Tjoelker2010-08-182-0/+13
| | | | Notes: svn path=/head/; revision=211467
* If a TCP connection has been idle for one retransmit timeout or moreAndre Oppermann2010-08-182-15/+28
| | | | | | | | | | | | | | | | | | | | | | it must reset its congestion window back to the initial window. RFC3390 has increased the initial window from 1 segment to up to 4 segments. The initial window increase of RFC3390 wasn't reflected into the restart window which remained at its original defaults of 4 segments for local and 1 segment for all other connections. Both values are controllable through sysctl net.inet.tcp.local_slowstart_flightsize and net.inet.tcp.slowstart_flightsize. The increase helps TCP's slow start algorithm to open up the congestion window much faster. Reviewed by: lstewart MFC after: 1 week Notes: svn path=/head/; revision=211464
* - Refactor file reading code to use pure syscalls and an internal bufferGabor Kovesdan2010-08-184-178/+157
| | | | | | | | | | | instead of stdio. This gives BSD grep a very big performance boost, its speed is now almost comparable to GNU grep. Submitted by: Dimitry Andric <dimitry@andric.com> Approved by: delphij (mentor) Notes: svn path=/head/; revision=211463
* Untangle the net.inet.tcp.log_in_vain and net.inet.tcp.log_debugAndre Oppermann2010-08-183-5/+29
| | | | | | | | | | | | | | | | | | | sysctl's and remove any side effects. Both sysctl's share the same backend infrastructure and due to the way it was implemented enabling net.inet.tcp.log_in_vain would also cause log_debug output to be generated. This was surprising and eventually annoying to the user. The log output backend is kept the same but a little shim is inserted to properly separate log_in_vain and log_debug and to remove any side effects. PR: kern/137317 MFC after: 1 week Notes: svn path=/head/; revision=211462
* Remove bintime_cmp() function, unused since r200086.Alexander Motin2010-08-181-15/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=211455
* MIPS n64 support - continued...Jayachandran C.2010-08-184-234/+214
| | | | | | | | | | | | | | | | | | | | | | | 1. On n64, use XKPHYS to map page table pages instead of KSEG0. Maintain just one freepages list on n64. The changes are mainly to introduce MIPS_PHYS_TO_DIRECT(pa), MIPS_DIRECT_TO_PHYS(), which will use KSEG0 in 32 bit compilation and XKPHYS in 64 bit compilation. 2. Change macro based PMAP_LMEM_MAP1(), PMAP_LMEM_MAP2(), PMAP_LMEM_UNMAP() to inline functions. 3. Introduce MIPS_DIRECT_MAPPABLE(pa), which will further reduce the cases in which we will need to have a special case for 64 bit compilation. 4. Update CP0 hazard definitions for CPU_RMI - the cpu does not need any nops Reviewed by: neel Notes: svn path=/head/; revision=211453
* For some setups sending data in 128kB chunks makes communication very slow. NoPawel Jakub Dawidek2010-08-181-2/+1
| | | | | | | | | | idea why. 32kB on the other hand seems to work properly everywhere. Reported by: Thomas Steen Rasmussen <thomas@gibfest.dk> MFC after: 3 weeks Notes: svn path=/head/; revision=211452
* When calculating the expected memory size for userspace, also take theBjoern A. Zeeb2010-08-181-1/+1
| | | | | | | | | | | number of syncache entries into account for the surplus we add to account for a possible increase of records in the re-entry window. Discussed with: jhb, silby MFC after: 1 week Notes: svn path=/head/; revision=211451
* Revert r211436; it was a good idea, but not fully thought out.Dag-Erling Smørgrav2010-08-181-9/+2
| | | | Notes: svn path=/head/; revision=211450
* Add a DDR flush function, inspired by both Linux and if_arge.c.Adrian Chadd2010-08-181-0/+10
| | | | Notes: svn path=/head/; revision=211449
* Add a further register definition for USB device initialisation.Adrian Chadd2010-08-181-0/+2
| | | | | | | Obtained from: Linux Notes: svn path=/head/; revision=211448
* Bring over the first cut of the Atheros-specific SoC operations.Adrian Chadd2010-08-181-0/+108
| | | | | | | | | | Each of these SoCs have different devices, different hardware initialisation methods and, quite likely, different quirks. These functions will abstract out the SoC differences and keep these differences out of the drivers (eg USB init, if_arge, etc.) Notes: svn path=/head/; revision=211447
* Make return statements style(9) compliant in MIPS pmap.cJayachandran C.2010-08-181-12/+15
| | | | | | | | | Reported by: neel Reviewed by: neel (earlier version) Notes: svn path=/head/; revision=211445
* Import initial AR91XX and AR724X CPU register definitions.Adrian Chadd2010-08-182-0/+164
| | | | | | | Obtained from: Linux Notes: svn path=/head/; revision=211440
* Keep the process locked when calling ktrops() or ktrsetchildren() insteadJohn Baldwin2010-08-171-12/+13
| | | | | | | of dropping the lock only to immediately reacquire it. Notes: svn path=/head/; revision=211439
* For every instance of '.if ${CC} == "foo"' or '.if ${CC} != "foo"' inRui Paulo2010-08-178-22/+22
| | | | | | | | | | | | | | | | Makefiles or *.mk files, use ${CC:T:Mfoo} instead, so only the basename of the compiler command (excluding any arguments) is considered. This allows you to use, for example, CC="/nondefault/path/clang -xxx", and still have the various tests in bsd.*.mk identify your compiler as clang correctly. ICC if cases were also changed. Submitted by: Dimitry Andric <dimitry at andric.com> Notes: svn path=/head/; revision=211437
* Split kernel stage 3.2 (build everything) into 3.2 (build the kernel)Dag-Erling Smørgrav2010-08-171-2/+9
| | | | | | | | | | and 3.3 (build the modules). IMHO, this makes it a little easier to track the progress of a kernel build using whereintheworld et al. MFC after: 3 weeks Notes: svn path=/head/; revision=211436
* Make `ping6 -I' work with net.inet6.ip6.use_defaultzone=1.Hajimu UMEMOTO2010-08-171-2/+5
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=211435
* Now is as good a time as any to find out if we induce breakageMatt Jacob2010-08-171-2/+18
| | | | | | | | | | by issueing aborts for any pending commands when we're decommssioning a disk. MFC after: 3 months Notes: svn path=/head/; revision=211434
* Ensure a minimum "slop" of 10 extra pcb structures when providing aJohn Baldwin2010-08-174-8/+9
| | | | | | | | | | | | memory size estimate to userland for pcb list sysctls. The previous behavior of a "slop" of n/8 does not work well for small values of n (e.g. no slop at all if you have less than 8 open UDP connections). Reviewed by: bz MFC after: 1 week Notes: svn path=/head/; revision=211433
* Add s25sl064a, an 8mb SPI flash part.Adrian Chadd2010-08-171-0/+1
| | | | Notes: svn path=/head/; revision=211432
* Add a new method to the PCI bridge interface, PCIB_POWER_FOR_SLEEP(). ThisJohn Baldwin2010-08-1710-55/+72
| | | | | | | | | | | | | method is used by the PCI bus driver to query the power management system to determine the proper device state to be used for a device during suspend and resume. For the ACPI PCI bridge drivers this calls acpi_device_pwr_for_sleep(). This removes ACPI-specific knowledge from the PCI and PCI-PCI bridge drivers. Reviewed by: jkim Notes: svn path=/head/; revision=211430
* Make sure any -U CFLAGS are not filtered out when calling mkdep, asRui Paulo2010-08-171-6/+6
| | | | | | | | | | | gnu/usr.bin/cc/libiberty first defines the PREFIX macro, and then undefines it again, so mkdep with clang complains. Submitted by: Dimitry Andric <dimitry at andric.com> Reviewed by: ru Notes: svn path=/head/; revision=211427
* - The iMac9,1 needs the PAT workaround as wellPietro Cerutti2010-08-172-2/+4
| | | | | | | Approved by: cognet Notes: svn path=/head/; revision=211424
* MFV of r211420, tzdata2010lEdwin Groothuis2010-08-172-4/+17
|\ | | | | | | | | | | | | | | | | | | | | - Fix start times of DST for Egypt. - clocks were set back one hour at 2010-08-11 00:00:00 local time in Gaza and the West Bank. Obtained from: ftp://elsie.nci.nih.gov/pub/ Notes: svn path=/head/; revision=211422
| * Vendor import of tzdata2010lvendor/tzdata/tzdata2010lEdwin Groothuis2010-08-172-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | - Fix start times of DST for Egypt. - clocks were set back one hour at 2010-08-11 00:00:00 local time in Gaza and the West Bank. Obtained from: ftp://elsie.nci.nih.gov/pub/ Notes: svn path=/vendor/tzdata/dist/; revision=211420 svn path=/vendor/tzdata/tzdata2010l/; revision=211421; tag=vendor/tzdata/tzdata2010l
* | Since top displays the uptime including seconds, there is no need to add 30Rebecca Cran2010-08-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | onto it, which may have been used for rounding purposes in other utilities. PR: bin/147934 Submitted by: Janne Snabb <snabb at epipe.com> Approved by: rrs (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=211419
* | Add simple test to check the functioning of retrieval ofKonstantin Belousov2010-08-172-0/+65
| | | | | | | | | | | | | | | | | | | | | | pagesize()/pagesizes() after change to use aux vector. Note that public function getosreldate() is different from libc-internal __getosreldate() and does not use aux to fetch osreldate value. MFC after: 1 month Notes: svn path=/head/; revision=211418
* | To restart, sysinstall calls execl. Since it will create a new process, weRebecca Cran2010-08-176-28/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | can't check to see if sysinstall is running as init just by checking if the PID is 0. Introduce a new option that sets the RunningAsInit flag, and update the code to check RunningAsInit intstead of getpid(). PR: bin/38854 Submitted by: Peter Sedeffow <peter at trumanbrewery.com> Approved by: rrs (mentor) MFC after: 1 month Notes: svn path=/head/; revision=211417
* | Use aux vector to get values for SSP canary, pagesize, pagesizes array,Konstantin Belousov2010-08-1710-22/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | number of host CPUs and osreldate. This eliminates the last sysctl(2) calls from the dynamically linked image startup. No objections from: kan Tested by: marius (sparc64) MFC after: 1 month Notes: svn path=/head/; revision=211416
* | Add -m and -M options to control the minimum and maximum frequency.Rebecca Cran2010-08-172-8/+88
| | | | | | | | | | | | | | | | | | | | | | PR: bin/145063 Submitted by: Boris Kochergin <spawk at acm.poly.edu> Reviewed by: cperciva Approved by: rrs (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=211415
* | Provide the starting image with the pointer to ELF aux vector. It isKonstantin Belousov2010-08-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | written into the __elf_aux_vector variable, if the symbol is present. Idea from: kan Tested by: marius (sparc64) MFC after: 1 month Notes: svn path=/head/; revision=211414
* | Use the newly provided aux vectors to get pagesize and osreldate information.Konstantin Belousov2010-08-172-10/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use local version of getpagesize(), rtld_getpagesize() in private allocator. Override the __getosreldate() previously fetched from libc_pic.a with local version that uses aux value if present. Note that __getosreldate() is used by rtld indirectly, by mmap(2) libc wrapper. To be able to utilize aux, split digest_dynamic() for use by init_rtld() into two parts, where the first one does not call malloc(), and the second part uses it. init_rtld() is able to initialize global variables before digest_dynamic2() calls. In particular, pagesize and osreldate are set up from the aux values. Now, rtld avoids (two) sysctl calls in startup. Tested by: marius (sparc64) MFC after: 1 month Notes: svn path=/head/; revision=211413
* | Supply some useful information to the started image using ELF aux vectors.Konstantin Belousov2010-08-1712-19/+130
| | | | | | | | | | | | | | | | | | | | | | In particular, provide pagesize and pagesizes array, the canary value for SSP use, number of host CPUs and osreldate. Tested by: marius (sparc64) MFC after: 1 month Notes: svn path=/head/; revision=211412
* | More tests, especially for lchown(2).Pawel Jakub Dawidek2010-08-176-13/+54
| | | | | | | | Notes: svn path=/head/; revision=211410
* | Tweak code a bit to be POSIX compatible, when a cancellation requestDavid Xu2010-08-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is acted upon, or when a thread calls pthread_exit(), the thread first disables cancellation by setting its cancelability state to PTHREAD_CANCEL_DISABLE and its cancelability type to PTHREAD_CANCEL_DEFERRED. The cancelability state remains set to PTHREAD_CANCEL_DISABLE until the thread has terminated. It has no effect if a cancellation cleanup handler or thread-specific data destructor routine changes the cancelability state to PTHREAD_CANCEL_ENABLE. Notes: svn path=/head/; revision=211409
* | sh: Reduce unnecessary testsuite failures with other shells.Jilles Tjoelker2010-08-164-6/+6
| | | | | | | | Notes: svn path=/head/; revision=211408
* | The 'size' variable is there to limit how many bytes we want to copy fromPawel Jakub Dawidek2010-08-161-2/+1
| | | | | | | | | | | | | | | | | | | | 'addr'. It is very likely that size of 'addr' is larger than 'size', so checking strlcpy() return value is bogus. MFC after: 3 weeks Notes: svn path=/head/; revision=211407