summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add support for the Samsung S3C2xx0 family of ARM SoCs written byimp2010-03-2022-0/+3883
| | | | | | | | Andrew Turner. The kernel supports the LN2410SBC evaluation board, and likely others. These parts (or similar ones) are in some open hardware designs for phones. Submitted by: Andrew Turner
* - Map EBDA if available and add 64KB above 1MB (high memory), just in case.jkim2010-03-191-33/+113
| | | | | | | - Print the initial memory map when bootverbose is set. - Change the page fault address format from linear to %cs:%ip style. - Move duplicate code into a newly added function. - Add strictly aligned memory access for distant future. ;-)
* The same code is used to import and to create pool.pjd2010-03-191-10/+20
| | | | | | | | | | | | | | | | | | | The order of operations is the following: 1. Try to open vdev by remembered path and guid. 2. If 1 failed, try to find vdev which guid matches and ignore the path. 3. If 2 failed this means either that the vdev we're looking for is gone or that pool is being created and vdev doesn't contain proper guid yet. To be able to handle pool creation we open vdev by path anyway. Because of 3 it is possible that we open wrong vdev on import which can lead to confusions. The solution for this is to check spa_load_state. On pool creation it will be equal to SPA_LOAD_NONE and we can open vdev only by path immediately and if it is not equal to SPA_LOAD_NONE we first open by path+guid and when that fails, we open by guid. We no longer open wrong vdev on import. MFC after: 2 weeks
* Split eventhandler_register() into an internal part and a wrapper functionbz2010-03-194-17/+139
| | | | | | | | | | | | | | | | | | | | | | | | | | that provides the allocated and setup eventhandler entry. Add a new wrapper for VIMAGE that allocates extra space to hold the callback function and argument in addition to an extra wrapper function. While the wrapper function goes as normal callback function the argument points to the extra space allocated holding the original func and arg that the wrapper function can then call. Provide an iterator function for the virtual network stack (vnet) that will call the callback function for each network stack. Provide a new set of macros for VNET that in the non-VIMAGE case will just call eventhandler_register() while in the VIMAGE case it will use vimage_eventhandler_register() passing in the extra iterator function but will only register once rather than per-vnet. We need a special macro in case we are interested in the tag returned as we must check for curvnet and can neither simply assign the return value, nor not change it in the non-vnet0 case without that. Sponsored by: ISPsystem Discussed with: jhb Reviewed by: zec (earlier version), jhb MFC after: 1 month
* Back out revision 205307.delphij2010-03-191-0/+2
| | | | | | | For the record: CPU_ENABLE_SSE enables some code that dynamically enables SSE support but not necessarily enforce execution of SSE instructions.
* Slightly improve my previous commit.ed2010-03-191-1/+1
| | | | | | Just comment out the atrun line instead of completely removing it. It is not a bad idea to leave it as a reference in case someone decides to install atrun by hand afterwards.
* pmap amd64/i386: fix a typo in a commentavg2010-03-192-2/+2
| | | | MFC after: 3 days
* vfs_mount.9: drop cross-reference to a removed manualavg2010-03-191-2/+1
| | | | MFC after: 3 days
* Use the same policy for rejecting / not-reject ACPI tables with incorrectjhb2010-03-192-0/+4
| | | | | | | | | | checksums as the base acpi(4) driver. This fixes a problem where the MADT parser would reject the MADT table during early boot causing the MP Table to be, but then the acpi(4) driver would attach and use non-SMP interrupt routing. Tested by: Alastair Hogge agh of coolrhaug com MFC after: 1 week
* Don't add the atrun-line to the crontab when MK_AT is set.ed2010-03-191-0/+3
| | | | | | This prevents spurious calls to sendmail every 5 minutes. MFC after: 1 week
* Regenkib2010-03-194-53/+123
|
* Remove empty line.kib2010-03-191-1/+0
| | | | MFC after: 2 weeks
* Convert aio syscall registration to SYSCALL_INIT_HELPER.kib2010-03-191-33/+59
| | | | | Reviewed by: jhb MFC after: 2 weeks
* Implement compat32 shims for mqueuefs.kib2010-03-193-68/+328
| | | | | Reviewed by: jhb MFC after: 2 weeks
* Implement compat32 shims for ksem syscalls.kib2010-03-192-70/+141
| | | | | Reviewed by: jhb MFC after: 2 weeks
* Move SysV IPC freebsd32 compat shims from freebsd32_misc.c to correspondingkib2010-03-195-587/+733
| | | | | | | | | | | | | | sysv_{msg,sem,shm}.c files. Mark SysV IPC freebsd32 syscalls as NOSTD and add required SYSCALL_INIT_HELPER/SYSCALL32_INIT_HELPERs to provide auto register/unregister on module load. This makes COMPAT_FREEBSD32 functional with SysV IPC compiled and loaded as modules. Reviewed by: jhb MFC after: 2 weeks
* Move SysV IPC freebsd32 compat shims helpers from freebsd32_misc.c tokib2010-03-193-54/+74
| | | | | | | sysv_ipc.c. Reviewed by: jhb MFC after: 2 weeks
* Introduce SYSCALL_INIT_HELPER and SYSCALL32_INIT_HELPER macros andkib2010-03-194-0/+95
| | | | | | | | | neccessary support functions to allow registering dynamically loaded syscalls from the MOD_LOAD handlers. Helpers handle registration failures semi-automatically. Reviewed by: jhb MFC after: 2 weeks
* FOr SYSCALL_MODULE_HELPER, use "sys/<syscallname>" module name.kib2010-03-192-2/+2
| | | | | | | | | | | | FOr SYSCALL32_MODULE_HELPER, use "sys32/<syscallname>" module name. This avoids modules name conflict when compat32 syscall does not need shims. Note that SYSCALL_MODULE_HELPER is going to be unused in the tree by several next commits. Suggested by: jhb MFC after: 2 weeks
* Make freebsd32_copyiniov() available outside of freebsd32_misc.kib2010-03-192-1/+4
| | | | MFC after: 2 weeks
* Properly handle compat32 calls to sctp generic sendmsd/recvmsg functions thatkib2010-03-191-4/+19
| | | | | | | take iov. Reviewed by: tuexen MFC after: 2 weeks
* Remove dead statement.kib2010-03-191-1/+0
| | | | | Reviewed by: tuexen MFC after: 2 weeks
* Fix two style issues.kib2010-03-191-2/+2
| | | | MFC after: 2 weeks
* Make sure the snmp_pf module will first refresh its entires if necessary,syrinx2010-03-191-12/+12
| | | | | | | | | | | then find a specific entry, and get the requested value. So far, it found the specific entry, refreshed the entry list if necessary, and got the requested value from the found entry. The problem is that refreshing nukes all old entries and replaces them with new ones and the obtained entry pointer was no longer valid after the refresh. Reviewed by: bz, philip MFC after: 1 week
* Fix typo in commentimp2010-03-191-1/+1
|
* SSE is enabled by default about 5 years ago so there is no point pretendingdelphij2010-03-191-2/+0
| | | | | | | | that we support I486 and I586 CPUs in the GENERIC kernel, users wants these support would have to build a custom kernel to explicitly disable SSE anyways. MFC after: 1 month
* - Added support for 5709S/5716S PHYs.davidch2010-03-183-389/+288
| | | | | | | | - Update copyright to 2010. - Add new debug code for RV2P block. - Improve output formatting for various debug functions. MFC after: 2 weeks
* - Added support for 5709S/5716S PHYs.davidch2010-03-183-23/+158
| | | | | Submitted by: pyunyh MFC after: 2 weeks
* turn 205266 in to a no-op until the problem can be properly diagnosedkmacy2010-03-181-1/+1
|
* Detect illegal access to unmapped memory within real mode emulator to aidjkim2010-03-181-9/+44
| | | | debugging. Update copyright date while I am here.
* Properly progress through the list of IPv6 addresses using in6_addr size.ed2010-03-181-1/+1
| | | | | | | | | | | | | | | | | Right now if a jail has multiple IPv6 addresses, it will print them shifting only 4 bytes at a time. Example: 2001:4dd0:ff41::b23f:a9 2001:4dd0:ff41::b23f:aa Becomes: 2001:4dd0:ff41::b23f:a9 ff41::b23f:a9:2001:4dd0 By casting to in6_addr, it uses the correct offsets. MFC after: 1 week
* Update to 9.6.2-P1, the latest patchfix release which deals withdougb2010-03-1857-1858/+2459
| | | | | | | | the problems related to the handling of broken DNSSEC trust chains. This fix is only relevant for those who have DNSSEC validation enabled and configure trust anchors from third parties, either manually, or through a system like DLV.
* For those of us mere mortals who do not aspire to the lofty heightsdougb2010-03-181-0/+2
| | | | | of kernel hackery, add MAKE_JUST_WORLDS so that we can take part in the 'make universe' goodnes without using unecessary time and resources.
* Unbreak build by removing a code bit that is only related to other coderpaulo2010-03-181-1/+1
| | | | in my branch.
* Add support for retrieving labeled pf filter rule counters.syrinx2010-03-183-4/+382
| | | | | PR: bin/132847 Submitted by: Szalai Andras <szalai (dot) bandi (at) gmail.com>
* Simplify loops.pjd2010-03-181-20/+10
|
* Fix a couple of bugs with 802.11n:rpaulo2010-03-184-25/+90
| | | | | | | | | | | o Process the BAR frame on the adhoc, mesh and sta modes o Fix the format of the ADDBA reply frame o Fix references to the spec section numbers Also, print the all the MCS rates in bootverbose. Sponsored by: iXsystems, Inc. Obtained from: //depot/user/rpaulo/80211n/...
* Add ddb support to the "new" link layer code ("new-arp"):bz2010-03-181-0/+136
| | | | | | | | - show all lltables [1] (optional flag to also show the llentries as well) - show lltable <struct lltable *> - show llentry <struct llentry *> MFC after: 6 days
* Remove an unneeded variable.ed2010-03-181-1/+0
| | | | Reported by: tinderbox
* Remove two pieces of code (one disabled in revision 39665 and another deriveddelphij2010-03-182-16/+0
| | | | from the first one) that is not used for the last 12 years.
* Need to set the proper flag bit when inserting ARPqingli2010-03-181-1/+1
| | | | | | entries into the kernel. MFC after: 3 days
* o) Add a keyword to displaying elapsed time in integer seconds, "etimes".jmallett2010-03-174-2/+25
| | | | | | o) Give slightly better (i.e. any) documentation of the format of "etime". Reviewed by: jilles
* Remove two instances of the evil hack to get the ifnet. mii_ifp isimp2010-03-171-12/+2
| | | | set early enough that we don't need to do these hacks anymore.
* o Add support for UltraSparc-IV+:marius2010-03-172-34/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Swap the configuration of the first and second large dTLB as with US-IV+ these can only hold entries of certain page sizes each, which we happened to chose the non-working way around. - Additionally ensure that the large iTLB is set up to hold 8k pages (currently this happens to be a NOP though). - Add a workaround for US-IV+ erratum #2. - Turn off dTLB parity error reporting as otherwise we get seemingly false positives when copying in the user window by simulating a fill trap on return to usermode. Given that these parity errors can be avoided by disabling multi issue mode and the problem could be reproduced with a second machine this appears to be a silicon bug of some sort. - Add a membar #Sync also before the stores to ASI_DCACHE_TAG. While at it, turn of interrupts across the whole cheetah_cache_flush() for simplicity instead of around every flush. This should have next to no impact as for cheetah-class machines we typically only need to flush the caches a few times during boot when recovering from peeking/poking non-existent PCI devices, if at all. - Just use KERNBASE for FLUSH as we also do elsewhere as the US-IV+ documentation doesn't seem to mention that these CPUs also ignore the address like previous cheetah-class CPUs do. Again the code changing LSU_IC is executed seldom enough that the negligible optimization of using %g0 instead should have no real impact. With these changes FreeBSD runs stable on V890 equipped with US-IV+ and -j128 buildworlds in a loop for days are no problem. Unfortunately, the performance isn't were it should be as a buildworld on a 4x1.5GHz US-IV+ V890 takes nearly 3h while on a V440 with (theoretically) less powerfull 4x1.5GHz US-IIIi it takes just over 1h. It's unclear whether this is related to the supposed silicon bug mentioned above or due to another issue. The documentation (which contains a sever bug in the description of the bits added to the context registers though) at least doesn't mention any requirements for changes in the CPU handling besides those implemented and the cache as well as the TLB configurations and handling look fine. o Re-arrange cheetah_init() so it's easier to add support for SPARC64 V up to VIIIfx CPUs, which only require parts of this initialization.
* Set the device capabilities to include dynamic link-state forqingli2010-03-171-0/+2
| | | | | | | those modern drivers. Reviewed by: imp (and suggested by imp) MFC after: 3 days
* Cache line align various structures and move volatile counters tokmacy2010-03-171-6/+14
| | | | | | | not share a cache line with (mostly) immutable state Reviewed by: jeff@ MFC after: 7 days
* - cache line align arcs_lock array (h/t Marius Nuennerich)kmacy2010-03-171-3/+3
| | | | | | | - fix ARCS_LOCK_PAD to use architecture defined CACHE_LINE_SIZE - cache line align buf_hash_table ht_locks array MFC after: 7 days
* Add macros for the VER.impl of SPARC64 II to VIIIfx.marius2010-03-171-1/+8
|
* - Add TTE and context register bits for the additional page sizes supportedmarius2010-03-175-34/+75
| | | | | | | | | by UltraSparc-IV and -IV+ as well as SPARC64 V, VI, VII and VIIIfx CPUs. - Replace TLB_PCXR_PGSZ_MASK and TLB_SCXR_PGSZ_MASK with TLB_CXR_PGSZ_MASK which just is the complement of TLB_CXR_CTX_MASK instead of trying to assemble it from the page size bits which vary across CPUs. - Add macros for the remainder of the SFSR bits, which are useful for at least debugging purposes.
* Fix 2 bugs in mxge_attach()gallatin2010-03-171-3/+3
| | | | | | | | | | | - Don't leak slice resources when mxge_alloc_rings() fails - Start taskq threads only after we know attach will succeed. At boot time, taskqueue_terminate() will loop infinately, waiting for the threads to exit, and hang the system. Submitted by: Panasas MFC After: 3 days
OpenPOWER on IntegriCloud