summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* When determining whether we trapped while in the PROM don't onlymarius2008-09-041-0/+4
| | | | check for addresses below the PROM range but also those above.
* Use the PROM provided SUNW,set-trap-table to take over the trapmarius2008-09-043-0/+35
| | | | | | | | | | table. This is required in order to set obp-control-relinquished within the PROM, allowing to safely read the OFW translations node. Without this, f.e. a `ofwdump -ap` triggers a fatal reset error or worse things on machines based on USIII and beyond. In theory this should allow to remove touching %tba in cpu_setregs(), in practice we seem to currently face a chicken and egg problem when doing so however.
* Hook up ixgbe(4) to the build. D'oh!brueffer2008-09-041-0/+2
|
* Ensure the caches have the desired configuration (see especiallymarius2008-09-042-0/+2
| | | | cheetah_cache_enable()).
* Flesh out MMU and cache handling of cheetah-class CPUs.marius2008-09-046-7/+171
|
* The physical address space of cheetah-class CPUs has been extendedmarius2008-09-042-5/+17
| | | | | | | | | | to 43 bits so update TD_PA_BITS accordingly. For the most part this increase is transparent to the existing code except for when reading the physical address from ASI_{D,I}TLB_DATA_ACCESS_REG, which we only do in the loader and which was already adjusted in r182478, or from the OFW translations node. While at it, ensure we are only taking valid OFW mapping entries into account.
* Ensure interrupts are off while in {d,i}tlb_va_to_pa_sun4u().marius2008-09-041-2/+10
| | | | | I think this is necessary in order to make sure the workarounds in {d,i}tlb_get_data_sun4u() work correctly.
* style(9)obrien2008-09-041-49/+44
|
* Implement pts(4) packet mode.ed2008-09-044-34/+117
| | | | | | | | | As reported by several users on the mailing lists, applications like screen(1) fail to properly handle ^S and ^Q characters. This was because MPSAFE TTY didn't implement packet mode (TIOCPKT) yet. Add basic packet mode support to make these applications work again. Obtained from: //depot/projects/mpsafetty/...
* Fix an awful bug inside our COMPAT_43TTY code.ed2008-09-042-12/+15
| | | | | | | | | | | | | | | When I migrated tty_compat.c to MPSAFE TTY, I just hooked it up to the build and fixed it until it compiled and somewhat worked. It turns out this was not the smartest thing, because the old TTY layer also had a field called t_flags, which contained a set of sgtty flags. This means our current COMPAT_43TTY code overwrites the TTY flags, causing all strange problems to occur. Fix this code to use a new struct member called t_compatflags. This commit may cause kern/127054 to be fixed, but this still has to be tested/confirmed by the originator. It has to be fixed anyway. PR: kern/127054
* Fix an off-by-one error in the replay detection logic.dfr2008-09-041-1/+1
|
* Unbreak the build.des2008-09-041-2/+2
| | | | Pointy hat to: kevlo
* Recognize 88E1116R phy variation. This part is found on some embedded devices.raj2008-09-042-0/+2
| | | | Obtained from: Semihalf
* If the process id specified is invalid, the system call returns ESRCHkevlo2008-09-042-12/+12
|
* Add one more SII3132 chip PCI ID found on Adaptec Serial ATA II RAID 1220SA.mav2008-09-042-0/+2
| | | | Submitted by: Dmitry S. Luhtionov <mitya@cabletv.dp.ua>
* Eliminate __alpha__ leftover from libstand.raj2008-09-043-16/+0
|
* Markup fix.kientzle2008-09-041-2/+2
| | | | MFC after: 3 days
* Don't destroy the archive until after you finish pulling usefulkientzle2008-09-041-1/+1
| | | | information out of it. As reported by Giorgos Keramidas.
* Additionally clear the STICK bit in the SOFTINT register whenmarius2008-09-031-1/+1
| | | | | receiving a PIL_TICK interrupt. This change was erroneously omitted in r182730.
* Replace a line matching /^ $/ with one matching /^$/.brooks2008-09-031-1/+1
| | | | Obtained from: //depot/projects/vimage-commit2/...
* New file missed vimagification.julian2008-09-031-1/+2
|
* - Fix amd64 local privilege escalation. [08:07]simon2008-09-032-1/+11
| | | | | | | | | | | | | | | | - Fix nmount(2) local privilege escalation. [08:08] - Fix IPv6 remote kernel panics. [08:09] Fix for [08:07] is merge of r181823. Submitted by: kib [08:07], csjp [08:08], bz [08:09] Reviewed by: peter [08:07], jhb [08:07] Reviewed by: jinmei [08:09], rwatson [08:09] Approved by: re (SA blanket) Approved by: so (simon) Security: FreeBSD-SA-08:07.amd64 Security: FreeBSD-SA-08:08.nmount Security: FreeBSD-SA-08:09.icmp6
* Reflect license change of NetBSD code.delphij2008-09-037-56/+7
| | | | | Obtained from: NetBSD MFC after: 3 days
* Catch up with the move from mips32/.obrien2008-09-035-5/+7
|
* Catch up with the move from mips32/.obrien2008-09-032-2/+2
|
* Style(9).obrien2008-09-032-23/+23
|
* Add Marko's pipe node.julian2008-09-032-0/+1226
| | | | | This allows one to do flow modulation similar to dummynet between arbitrary nodes.
* whitespace nitjulian2008-09-031-1/+1
|
* Improve loader support for U-Boot.raj2008-09-033-65/+188
| | | | | | | | | - add new diag commands: devinfo, sysinfo for U-Boot-style details about the system configuration - better memory info summary - style corrections Obtained from: Semihalf
* Show info about net devices in loader's 'lsdev' command. While there fix style.raj2008-09-032-175/+188
|
* - USIII-based machines can consist of CPUs running at differentmarius2008-09-0313-127/+329
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | frequencies (and having different cache sizes) so use the STICK (System TICK) timer, which was introduced due to this and is driven by the same frequency across all CPUs, instead of the TICK timer, whose frequency varies with the CPU clock, to drive hardclock. We try to use the STICK counter with all CPUs that are USIII or beyond, even when not necessary due to identical CPUs, as we can can also avoid the workaround for the BlackBird erratum #1 there. Unfortunately, using the STICK counter currently causes a hang with USIIIi MP machines for reasons unknown, so we still use the TICK timer there (which is okay as they can only consist of identical CPUs). - Given that we only (try to) synchronize the (S)TICK timers of APs with the BSP during startup, we could end up spinning forever in DELAY(9) if that function is migrated to another CPU while we're spinning due to clock drift afterwards, so pin to the CPU in order to avoid migration. Unfortunately, pinning doesn't work at the point DELAY(9) is required by the low-level console drivers, yet, so switch to a function pointer, which is updated accordingly, for implementing DELAY(9). For USIII and beyond, this would also allow to easily use the STICK counter instead of the TICK one here, there's no benefit in doing so however. While at it, use cpu_spinwait(9) for spinning in the delay- functions. This currently is a NOP though. - Don't set the TICK timer of the BSP to 0 during at startup as there's no need to do so. - Implement cpu_est_clockrate(). - Unfortunately, USIIIi-based machines don't provide a timecounter device besides the STICK and TICK counters (well, in theory the Tomatillo bridges have a performance counter that can be (ab)used as timecounter by configuring it to count bus cycles, though unlike the performance counter of Schizo bridges, the Tomatillo one is broken and counts Sun knows what in this mode). This means that we've to use a (S)TICK counter for timecounting, which has the old problem of not being in sync across CPUs, so provide an additional timecounter function which binds itself to the BSP but has an adequate low priority.
* Switch sun4v to back to using its own clock.c, which was ressurectedmarius2008-09-031-1/+1
| | | | | | in 182691, as the sparc64 version is going to be rototilled and sun4v currently can't be verified to still work with the new sparc64 one due to its overall state.
* Use current SP instead of global data ptr for the U-Boot API signature ↵raj2008-09-031-1/+1
| | | | | | | | | | | | search hint. Global data (pointed by R2 on PowerPC) in principle is not guaranteed to be in proximity of U-Boot heap (where the API signature is placed) accross different architectures and platforms. Instead, use U-Boot stack pointer as a hint for the search instead of the global data; this method tends to be more uniform accross different platforms. Obtained from: Semihalf
* Introduce crunchide to the ELF e_machine MIPS values.obrien2008-09-031-0/+8
|
* Make metadata.c shared across all platforms using U-Boot.raj2008-09-033-3/+4
| | | | This will [soon] be needed for ARM.
* Move U-Boot compatibility library to WARNS=2 level.raj2008-09-038-40/+49
|
* Fix the sysctl function parameters. We were only querying Sensor 0.rpaulo2008-09-031-2/+2
| | | | | Noticed by: des MFC after: 3 days
* When calling extattr_check_cred, use V{READ,WRITE}, not I{READ,WRITE}.trasz2008-09-032-7/+7
| | | | Approved by: rwatson (mentor)
* Mention ntpd upgrade to 4.2.4p5.roberto2008-09-031-0/+3
|
* Fix a bug, when a specially crafted ICMPV6 MLD packet could leadbz2008-09-031-4/+4
| | | | | | | | | | | | | to an integer divide by zero panic in the kernel, if the kernel was run with hz<1000. Neither i386, pc98, amd64 or sparc64 are affected in the currently supported branches and default configuration. Submitted by: Miikka Saukko, Ossi Herrala and Jukka Taimisto from the CROSS project at Codenomicon Ltd. via CERT-FI. Reviewed by: bz, rwatson Security: CVE-2008-2464 MFC after: 8 hours
* Regression tests for bugs in gdtoa.das2008-09-031-11/+17
|
* Make strtof() respect the current rounding mode.das2008-09-031-2/+10
|
* Merge gdtoa 20080831. This fixes several bugs, including an infinitedas2008-09-0313-98/+259
| | | | | | loop pointed out by cognet@ that occurs when calling strtod() with a string representing a number between DBL_MAX and 2*DBL_MAX, when the rounding mode is anything other than the default.
* style nit: indent continuation lines correctly, use style(9) styleimp2008-09-031-15/+16
| | | | if() statement.
* minor style(9) police: sort getopt options alphabetically. Theimp2008-09-031-9/+9
| | | | | semi-logical segregation of 'b' and 'h' doesn't seem to make sense and makes it harder to read.
* Style nit. Continued lines are indented 2 spaces in this file.imp2008-09-031-4/+4
|
* Make sure internal rtld malloc routines are not called from unlockedkan2008-09-031-14/+17
| | | | | | | | | | | | | contexts as rtld's malloc is not thread safe and is only supposed to be called with exclusive bind lock already held. The originating PR submitted a patch on top of different pre-requisite workaroud for unsafe dlopen calls, and the patch was midief slighlty to apply to stock sources for the purpose of this commit. Running rtld malloc from unlocked contexts is a bug on its own. PR: 126950 Submited by: Oleg Dolgov
* enable the xen_guest string so that the freebsd xen kernel willkmacy2008-09-031-2/+1
| | | | | | | at least pass muster with the loader on 3.0.3 Note that this doesn't actually make it work as Xen 3.0.3 appears to disallow recursive mappings on the page directory
* Indicate at probe time if device can do offload and which revision it iskmacy2008-09-021-1/+4
| | | | MFC after: 3 days
* Add support for t3c to cxgbtoolkmacy2008-09-021-0/+3119
| | | | Obtained from: Chelsio Inc.
OpenPOWER on IntegriCloud