summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Replace all calls to minor() with dev2unit().ed2008-09-2772-194/+194
| | | | | | | | | | | | | | | After I removed all the unit2minor()/minor2unit() calls from the kernel yesterday, I realised calling minor() everywhere is quite confusing. Character devices now only have the ability to store a unit number, not a minor number. Remove the confusion by using dev2unit() everywhere. This commit could also be considered as a bug fix. A lot of drivers call minor(), while they should actually be calling dev2unit(). In -CURRENT this isn't a problem, but it turns out we never had any problem reports related to that issue in the past. I suspect not many people connect more than 256 pieces of the same hardware. Reviewed by: kib
* Static-ify procedures in init(8).delphij2008-09-271-80/+80
|
* Move getosreldate(3) prototype from the machine generated <osreldate.h>peter2008-09-262-10/+2
| | | | | | to <unistd.h> in the BSD section. Suggested by: kib
* Move CTASSERT from header file to source file, per implementation note nowemaste2008-09-262-7/+7
| | | | in the CTASSERT man page.
* Move CTASSERT from header file to source file, per implementation note nowemaste2008-09-262-4/+4
| | | | | | in the CTASSERT man page. Submitted by: Ryan Stone
* The previous commit re-introduced sade on platformsmarcel2008-09-261-0/+2
| | | | | where it doesn't work. Re-limit sade to amd64 and i386.
* Don't forget to initialize `int error' in ttydev_open().ed2008-09-261-1/+1
| | | | | | | | | | I've had some reports in the past that opening an already opened TTY through, for example, /dev/tty can fail with random error codes. Looking at ttydev_open(), I can see there is a way `error' is returned without initialising it. Even though I haven't had any confirmation this fixes the bug, I'll fix it anyway. Reported by: Andrzej Tobola <ato iem pw edu pl>
* Advertise bit 26 as sse2.cognet2008-09-261-1/+1
| | | | Spotted out by: gahr
* Add -D_OSRELDATE_H to CFLAGS to prevent the declaration ofmarcel2008-09-261-1/+1
| | | | | | | | getosreldate() in assembler source files. We still get the definition of __FreeBSD_version this way, because it's outside the standard multiple-inclusion protection trick. All this is specific to ia64.
* Save previous content of the td_fpop before storing the currentkib2008-09-262-12/+33
| | | | | | | | | | | | | | | filedescriptor into it. Make sure that td_fpop is NULL when calling d_mmap from dev_pager_getpages(). Change guards against td_fpop field being non-NULL with private state for another device, and against sudden clearing the td_fpop. This could occur when either a driver method calls another driver through the filedescriptor operation, or a page fault happen while driver is writing to a memory backed by another driver. Noted by: rwatson Tested by: rnoland MFC after: 3 days
* Rename the `minor' argument of make_dev(9) to `unit'.ed2008-09-263-18/+18
| | | | | | | | | To prevent any further confusion about device minor and unit numbers, we'd better just refer to device unit numbers. Many people still think the numbers we show inside devfs have any relation to the numbers passed to make_dev(9), which is not the case. Discussed with: kib
* Remove unit2minor() use from kernel code.ed2008-09-2620-25/+25
| | | | | | | | | | | | | | | When I changed kern_conf.c three months ago I made device unit numbers equal to (unneeded) device minor numbers. We used to require bitshifting, because there were eight bits in the middle that were reserved for a device major number. Not very long after I turned dev2unit(), minor(), unit2minor() and minor2unit() into macro's. The unit2minor() and minor2unit() macro's were no-ops. We'd better not remove these four macro's from the kernel, because there is a lot of (external) code that may still depend on them. For now it's harmless to remove all invocations of unit2minor() and minor2unit(). Reviewed by: kib
* Add support for the ITE 8213 controller.sos2008-09-262-51/+139
| | | | | | | | | Thanks goes to ITE who provided docs and feedback and made this possible. Minor fixups to the Intel ICH code for bugs found while doing this. (ITE8213 is very semilar to an Intel ICH) MFC after: 1 week
* move ipi_pcpu to evtchn.ckmacy2008-09-263-18/+17
|
* Re-add getosreldate(3) function prototype in the form that I've been usingpeter2008-09-261-1/+10
| | | | | | for quite some time now. While I'm not sure if it'll break IA64 again, this way doesn't cause problems with my builds of XFree86/Xorg and the way they #include <osreldate.h> via cpp in the imake system.
* Use some casting to get the right addresses. This is likely unwiseimp2008-09-261-2/+3
| | | | | | | code, but will be OK until there's a 64-bit siba... With this change, SENTRY5 kernel now compiles for mips, the last of the holdouts.
* Catch up to latest tty, kdb and SYSINIT changes. Modeled after theimp2008-09-261-115/+51
| | | | | dev/ofw changes, since this driver appears to have used that as a start years ago...
* Update xen/interface includes to the latest in mercurialkmacy2008-09-2636-725/+1941
| | | | MFC after: 1 month
* The Ultra2 never had a CFE console or CFE boot loader. Kill obviousimp2008-09-261-1/+1
| | | | cut-n-paste leftover.
* Remove reference to machine/tlb.h. It no longer exists, and isn'timp2008-09-261-1/+0
| | | | needed as this compiles fine w/o it.
* Support for the siba bus found in many broadcom products.imp2008-09-266-0/+1385
| | | | | Submitted by: bms@ Obtained from: p4 mips branch
* Support for CFE boot loaders. Initially the support is for MIPS, butimp2008-09-267-0/+1544
| | | | | | | other processors will work too. Submitted by: bms@ Obtained from: p4 mips2 branch
* GC empty directory eBones.delphij2008-09-250-0/+0
|
* Add support for installing 32-bit system calls from kernel modules. Thisjhb2008-09-253-2/+110
| | | | | | | | includes syscall32_{de,}register() routines as well as a module handler and wrapper macros similar to the support for native syscalls in <sys/sysent.h>. MFC after: 1 month
* must do a deep copy of mcast packets as they can be modified after dispatchsam2008-09-251-1/+1
| | | | Submitted by: "Jared Go" <jared@hobnob.com>
* Sort includes and add multiple include guards.jhb2008-09-251-5/+9
|
* Regen.jhb2008-09-2510-45/+33
|
* Tidy up a few things with syscall generation:jhb2008-09-254-39/+35
| | | | | | | | | | | | | | | | - Instead of using a syscall slot (370) just to get a function prototype for lkmressys(), add an explicit function prototype to <sys/sysent.h>. This also removes unused special case checks for 'lkmressys' from makesyscalls.sh. - Instead of having magic logic in makesyscalls.sh to only generate a function prototype the first time 'lkmnosys' is seen, make 'NODEF' always not generate a function prototype and include an explicit prototype for 'lkmnosys' in <sys/sysent.h>. - As a result of the fix in (2), update the LKM syscall entries in the freebsd32 syscall table to use 'lkmnosys' rather than 'nosys'. - Use NOPROTO for the __syscall() entry (198) in the native ABI. This avoids the need for magic logic in makesyscalls.h to only generate a function prototype the first time 'nosys' is encountered.
* Initialize the DDB command list when initializing DDB so that the basicjhb2008-09-253-3/+4
| | | | | | commands are available from 'boot -d'. Suggested by: dfr
* Use existing GDB routines for parsing the section table of klds injhb2008-09-251-36/+23
| | | | | | the 'add-kld' command instead of doing it more by hand. MFC after: 1 week
* As a follow-on to r183323, correct another case where ip_output() wasrwatson2008-09-251-1/+17
| | | | | | | | | called without an inpcb pointer despite holding the tcbinfo global lock, which lead to a deadlock or panic when ipfw tried to further acquire it recursively. Reported by: Stefan Ehmann <shoesoft at gmx dot net> MFC after: 3 days
* Use db_printsym to lookup and print the function pointers.thompsa2008-09-251-40/+46
|
* - Don't do a WITNESS_SAVE() on the interlock if it is Giant in the conditionjhb2008-09-252-4/+14
| | | | | | variable wait routines. DROP_GIANT() already manages that state in the Giant interlock case. - Assert that Giant is held when it is passed as a sleep interlock.
* Some people's 6to4 routers seem to have been blowing up because ofdwmalone2008-09-251-6/+30
| | | | | | | | | | | | | the unlocked route caching in if_stf. Add a mutex that protects access to cached route. This seemed to fix problems for Pekka Savola. Nick Sayer had similar problems, and in his case completly disabling the route cache seemed to help. Add a sysctl net.link.stf.route_cache that can be used to turn off route caching in if_stf. PR: 122283 MFC after: 2 weeks Tested by: Pekka Savola, Nick Sayer.
* - Add libbsdxml and libsbuf required by bsdlabel.nyan2008-09-253-8/+3
| | | | | - Remove the mknod from pc98 fixit and also the ftp from pc98 small fixit to avoid disk full.
* Tell umass to leave Huawei radio devices alone so ubsa(4) willphk2008-09-251-0/+7
| | | | be able to kick them into shape.
* Make the ubsa(4) work with Huawei Exxx (tested with E169) 3G radio devices:phk2008-09-251-2/+61
| | | | | | | | | | Kick the device into the right mode if it comes up as a flash-disk. Set the buffers to a sensible 1024 bytes instead of a far too small default. Don't attempt to change speed, baud, parity and such, the device does not understand it.
* Add a flag, -T, that tells syslogd to always replace the timestamp ondwmalone2008-09-252-7/+24
| | | | | | | | | | messages from the network. We already replace malformatted timestamps and this option lets us replace timestamps that are correctly formatted but wrong. PR: 120891 Submitted by: Thomas Vogt <thomas@bsdunix.ch> MFC after: 1 week
* Add another hardware bug workaround for Yukon II controllers thatyongari2008-09-252-7/+62
| | | | | | | | | | | | | | | have hardware ram buffer. The silicon bug seem to be triggered by pause frames if receive buffer is not aligned on FIFO word(8 bytes). To workaround the issue, make sure to align Rx buffers on 8 bytes. Unfortunately this workaround requires yet another Rx fixup for strict alignment architecture machines to align IP header. For newer hardwares that lacks ram buffer may not have this bug so check number of available ram buffer size to see the existence of ram buffer. Reported by: Ian Freislich (ianf <at> clue dot co dot za), das Tested by: Ian Freislich (ianf <at> clue dot co dot za)
* add initial ipi definitionskmacy2008-09-251-6/+32
| | | | MFC after: 1 month
* add ipi mappingkmacy2008-09-251-1/+3
| | | | MFC after: 1 month
* add NPGPTD_SHIFT for the nkpt calculationkmacy2008-09-251-0/+2
| | | | MFC after: 1 month
* Make nkpt dependent on the size of the initial memory allocationkmacy2008-09-252-10/+9
| | | | MFC after: 1 month
* reflect header change in netfrontkmacy2008-09-251-1/+1
| | | | MFC after: 1 month
* partial update to interface headers to 3.2kmacy2008-09-2513-60/+411
| | | | MFC after: 1 month
* fix insta-panic:kmacy2008-09-252-0/+9
| | | | | | | - determine which ext_arg offsets to use based on the version number Submitted by: Chelsio Inc. MFC after: 1 day
* - Use bus_{read,write}_*(9) instead of bus_space_{read,write}_*(9) etcmarius2008-09-245-173/+140
| | | | | | and take advantage of rman_get_rid(9) in order to save some softc members. - Provide and consume module dependency information for lebuffer(4).
* MFV "xmalloc: zero size" fix.des2008-09-241-1/+2
| | | | MFC after: 1 week
* Undocument dead option.des2008-09-241-10/+0
| | | | MFC after: 3 days
* Add back ar(1) which was accidentally decoupled in r183242.marius2008-09-241-0/+1
| | | | Approved by: sam
OpenPOWER on IntegriCloud