summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* We do want to print '\n'/'\r'.pjd2005-02-031-0/+1
| | | | Pointed out by: stefanf
* 'c' cannot be -1.pjd2005-02-031-1/+0
| | | | Submitted by: stefanf
* - Move gets() function to libkern (I want to use it outside vfs_mount.c).pjd2005-02-034-44/+71
| | | | | | | | | | - Add buffer size limitations (overflow will not be possible anymore). - Add 'visible' option, which will allow for passphrase reading in the future. - Remove special treatment of '@' and '#', those two are only confusing. Discussed with: rwatson MFC after: 2 weeks
* Parse "getifname" using the standard parse string type.ru2005-02-034-57/+12
| | | | | | | Fixed an off-by-one error when dealing with interface name (if_xname is NUL-terminated). Don't waste time making a copy of if_xname in constructor.
* Fixed an off-by-one error when dealing with interface nameru2005-02-031-9/+6
| | | | | | (if_xname is NUL-terminated). Don't waste time making a copy of if_xname in attach().
* Fixed an off-by-one error when dealing with interface nameru2005-02-033-6/+6
| | | | (if_xname is IFNAMSIZ-sized and NUL-terminated).
* Added ASCII version of the NGM_EIFACE_GET_IFNAME message, "getifname".ru2005-02-032-14/+10
|
* Removed unused includes.ru2005-02-031-3/+0
|
* When entering siocnputc() with (kdb_active), don't acquire (orrwatson2005-02-031-5/+9
| | | | | | | | | | | release) the sio spin mutex, as use of synchronization primitives in the debugger can result in substantial problems. With this patch in place entering the debugger via a serial console is made substantially more reliable. MFC after: 1 week Tested by: kris Discussed with: bde
* Fix alignment in the last commit.ru2005-02-031-2/+2
|
* - remove NO_MODULES since they've been working for some timegrehan2005-02-031-3/+5
| | | | | | - add -fno-omit-framepointer to CFLAGS if DDB is enabled so backtraces will still work when optimization is enabled. Stolen from Makefile.amd64.
* Don't build syscons, uart or vpo on PPC.grehan2005-02-031-3/+8
|
* Fix up assignment of negative number to char. Char's are unsigned bygrehan2005-02-031-1/+1
| | | | | | default on PowerPC. Approved by: mdodd
* MF dev/wi: merge the pccard lists.imp2005-02-031-11/+19
| | | | | | # this hasn't compiled for two weeks and no one noticed! MFC After: 7 days or so
* Don't lose the frame pointer for PPC modules: backtrace doesn't work.grehan2005-02-021-1/+1
|
* - Use a seperate malloc tag for saved inode contents to help in debuggingjeff2005-02-021-4/+5
| | | | | | memory modified after free errors. Sponsored by: Isilon Systems, Inc.
* - Correct a typo in kern_rename. tvfslocked should be initialized fromjeff2005-02-022-2/+2
| | | | | | | | tond and not fromnd. This could lead us to leak Giant, or unlock it twice, depending on the filesystems involved. renames within a single filesystem would not have caused any problems. Sponsored by: Isilon Systems, Inc.
* Define SI_SUB_AUDIT, the system boot event to initialize the auditrwatson2005-02-021-0/+1
| | | | | | | subsystem. Obtained from: TrustedBSD Project Submitted by: Wayne Salamon <wsalamon at computer dot org>
* Add a stub audit_kevents.h, which defines exactly one audit event:rwatson2005-02-021-0/+38
| | | | | | AUE_NULL. This is a place-holder to allow other audit infrastructure to be introduced, such as an updated syscalls.master file format, while the license on the real audit_kevents.h is fixed.
* Back out previous commit, bde@ provided an example of something thiskensmith2005-02-021-6/+0
| | | | breaks.
* Fix the comment.ru2005-02-021-2/+2
|
* Whitespace and "const" changes to reduce diffs to RELENG_4.ru2005-02-022-88/+90
| | | | (Gives the same object when compiled without NETGRAPH_DEBUG.)
* Add a place-holder f_label void * for a future struct label pointerrwatson2005-02-021-0/+1
| | | | | required for the port of SELinux FLASK/TE to FreeBSD using the MAC Framework.
* Fix "Duplicate mbuf free panic".yongari2005-02-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cause of "Duplicate mbuf free panic" is in the programming error of hme_load_txmbuf(). The code path of the panic is the following. 1. Due to unknown reason DMA engine was freezed. So TX descritors of HME become full and the last failed attempt to transmit a packet had set its associated mbuf address to hme_txdesc structure. Also the failed packet is requeued into interface queue structure in order to retrasmit it when there are more available TX descritors. 2. Since DMA engine was freezed, if_timer starts to decrement its counter. When if_timer expires it tries to reset HME. During the reset phase, hme_meminit() is called and it frees all associated mbuf with descriptors. The last failed mbuf is also freed here. 3. After HME reset completed, HME starts to retransmit packets by dequeing the first packet in interface queue.(Note! the packet was already freed in hme_meminit()!) 4. When a TX completion interrupt is posted by the HME, driver tries to free the successfylly transmitted mbuf. Since the mbuf was freed in step2, now we get "Duplicate mbuf free panic". However, the real cause is in DMA engine freeze. Since no fatal errors reported via interrupts, there might be other cause of the freeze. I tried hard to understand the cause of DMA engine freeze but couldn't find any clues. It seems that the freeze happens under very high network loads(e.g. 7.5-8.0 MB/s TX speed). Though this fix is not enough to eliminate DMA engine freeze it's better than panic. Reported by: jhb via sparc64 ML
* It was noticed that we do not change a file's access time when it getskensmith2005-02-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | executed. This appears to violate most of the UNIX-ish standards. One example quote from: http://www.opengroup.org/onlinepubs/009695399/functions/exec.html Upon successful completion, the exec functions shall mark for update the st_atime field of the file. If an exec function failed but was able to locate the process image file, whether the st_atime field is marked for update is unspecified. Should the exec function succeed, the process image file shall be considered to have been opened with open(). This appears to take care of it for ufs filesystems, doing the necessary sanity checks (read-only filesystem, etc) without violating any other standards (setting atime for any open appears to be allowed in any standards I could find). Noticed by: cperciva Reviewed by: kan, rwatson
* - Or MPSAFE with the correct set of flags in stat(). This affected onlyjeff2005-02-012-2/+2
| | | | | | the LOOKUP_SHARED case. Spotted by: jhb
* Forgot to mark the IRQ as MPSAFE.phk2005-02-011-1/+5
|
* The two PLANEX cards listed in pccarddevs, identified only by theirimp2005-02-013-14/+13
| | | | | | | | | | | | | | | | | | CIS, weren't actually used anywhere (other than the generic PC Card code when certain variables are defined). They aren't used in NetBSD either. Make things simpler by removing them. Change PLANEX_2 to PLANEX and tweak wi and owi to use that instead. The PLANEX id seems to actually be pci ID assigned to planex, not its pcmcia id. Ooops. I don't know if this is a reporting error from where this entry came from, or if it is a mistake on PLANEX's part. I suspect the latter, as ACTIONTEC and NEWMEDIA made the same mistake (although new media may be because it uses an advansys chip inside). Make a note of this in the file. The 0xc entires may be JEITA assigned, so note that as well. # This leaves just 3 entries that are totally unknown: airvast, archos # and edimax although the arivast number is the same assigned to # avertec in usb...
* Add a IEEE488 driver for PCIIA compatible cards.phk2005-02-013-0/+429
| | | | | | | | | | | | | | This driver implements "unaddressed listen only mode", which is what printers and plotters commonly do on GP-IB busses. This means that you can capture print/plot like output from your instruments by configuring them as necessary (good luck!) and cat -u /dev/gpib0l > /tmp/somefile Since there is no way to know when no more output is comming you will have to ctrl-C the cat process when it is done (that is why the -u is important).
* In case of various tunneling protocols, mbuf may pass several interfacesglebius2005-02-011-3/+5
| | | | | | | | | before entering ng_netflow. In this case it will have not NULL m_pkthdr.rcvif. However, it will enter ng_iface soon with another index. So let in_ifIndex value configured by user override m_pkthdr.rcvif. Reported by: Damir Bikmuhametov MFC after: 1 week
* - change all u_int_XX to uint_XXgrehan2005-02-011-39/+39
| | | | - cast param for atomic_subtract_long, since Netgraph uses it.
* BUS_SPACE_UNRESTRICTED shouldn't be used with the bus_alloc_resourceimp2005-02-012-6/+6
| | | | interface. Instead, move to the convenience _any interface.
* Sort functions.njl2005-02-011-4/+4
|
* Update copyright, remove "all rights reserved" (since they are notbmilekic2005-02-011-5/+1
| | | | | | all reserved, as the lisence makes clear), and strike the third clause (now this is a 2-clause liberal BSDL as are the rest of files I hold copyright over).
* add cpu_idle support for 21066A based lca systemsticso2005-01-314-1/+41
|
* Use a taskqueue to handle port status changes.akiyama2005-01-313-2/+54
| | | | | | Calling ucom layer directly from interrupt context make a panic. MFC after: 1 week
* nit in /*-imp2005-01-312-2/+2
|
* Yikes! Fix a typo in a function name that managed to occur twice.scottl2005-01-311-2/+2
| | | | Submitted by: yongari
* Add the keyboard system device before we probe for the keyboard.marcel2005-01-311-2/+13
| | | | | | | | | | | The presence or absence of a keyboard does not change whether an UART is designed as a keyboard port or not and thus whether we can use the port as a TTY or not. We now call sunkbd_attach() even when we didn't previously find a keyboard. Emit a useful message stating that no keyboard was found, but don't do anything else. MFC after: 5 days
* Revert rev. 1.5.marcel2005-01-311-1/+1
| | | | | | | It should be safe to attach to all Z8530 controllers again. In fact, the keyboard works on Ultra 2 machines. MFC after: 5 days
* Update an additional reference to the rate of ISN tick callouts that wasrwatson2005-01-312-2/+2
| | | | | | | | missed in tcp_subr.c:1.216: projected_offset must also reflect how often the tcp_isn_tick() callout will fire. MFC after: 2 weeks Submitted by: silby
* Remove a dead vtophys() reference.scottl2005-01-311-6/+0
|
* Change the state allocator from using regular malloc to usingcsjp2005-01-311-2/+7
| | | | | | | | | | a UMA zone instead. This should eliminate a bit of the locking overhead associated with with malloc and reduce the memory consumption associated with each new state. Reviewed by: rwatson, andre Silence on: ipfw@ MFC after: 1 week
* Have tcp_isn_tick() fire 100 times a second, rather than HZ times arwatson2005-01-302-2/+2
| | | | | | | | | second; since the default hz has changed to 1000 times a second, this resulted in unecessary work being performed. MFC after: 2 weeks Discussed with: phk, cperciva General head nod: silby
* Fix a logic bug that caused DSR to never be deasserted.marcel2005-01-301-2/+2
| | | | MFC after: 5 days
* Update the text of an assertion to reflect changes made in revision 1.148.alc2005-01-301-5/+1
| | | | | | | Submitted by: tegge Eliminate an unnecessary, temporary increment of the backing object's reference count in vm_object_qcollapse(). Reviewed by: tegge
* Build "digi" on i386, pc98, and amd64 only.ru2005-01-301-1/+3
|
* Prefer (NULL) spelling of (0) for pointers.rwatson2005-01-301-9/+9
| | | | MFC after: 3 days
* Remove clause three from tcp_syncache.c license per permission ofrwatson2005-01-301-6/+3
| | | | McAfee. Update copyright to McAfee from NETA.
* Add crashdump support to the ips driver. It only works for the more modernscottl2005-01-304-15/+176
| | | | | | | | | ServeRAID 4 - 7 models right now. Support for older cards is possible, but I don't have any hardware to experiment with. Thanks to Jack Hammer at Adaptec for providing debugging hints. Sponsored by: ImproWare AG, Switzerland
OpenPOWER on IntegriCloud