summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Remove the leading underscore from all symbols defined in x86 asmjake2001-02-2550-1287/+961
| | | | | | | | | | | and used in C or vice versa. The elf compiler uses the same names for both. Remove asnames.h with great prejudice; it has served its purpose. Note that this does not affect the ability to generate an aout kernel due to gcc's -mno-underscores option. moral support from: peter, jhb
* Allow the eiface node to be made as a module (not linked into build yet)julian2001-02-251-0/+7
|
* Drop the 'count' from the aha device specspeter2001-02-255-5/+5
|
* Add a node that looks to all the word like an ethernet but delivers itsjulian2001-02-252-0/+733
| | | | | | | | | | ehternet frames to a netgraph hook. Submitted by: "Vitaly V. Belekhov" <vitaly@riss-telecom.ru> translated to 5.0 by me. man page not yet written. This node still needs a little work.. don't use yet. Not yet linked into the build.
* Make the sample netgraph node compileable again.julian2001-02-251-6/+3
| | | | | Makes it easier for people if they can start with something that actually compiles.
* Add a Makefile for the sample node so It can be compiled.julian2001-02-251-0/+7
| | | | | | This helps to stop it from geting out of sync. It is not part of the normal build but I can use it with all the others when I make changes to netgraph to ensure it is buildable.
* Move netgraph spimlock order entries out ofjulian2001-02-253-6/+6
| | | | the #ifdef SMP section. They need to be there for UP too.
* - Rename the lcall system call handler from Xsyscall to Xlcall_syscalljake2001-02-2511-89/+46
| | | | | | | | | to be more like Xint0x80_syscall and less like c function syscall(). - Reduce code duplication between the int0x80 and lcall handlers by shuffling the elfags into the right place, saving the sizeof the instruction in tf_err and jumping into the common int0x80 code. Reviewed by: peter
* Add "ELFOSABI_NONE" which is the symbol used in a copy of the old ELF spec,obrien2001-02-241-0/+1
| | | | as an alias for "ELFOSABI_SYSV".
* MFS: bring the consistent `compat_3_brand' support into -CURRENTobrien2001-02-244-10/+19
| | | | | (the work was first done in the RELENG_4 branch near a release during a MFC to make the code cleaner and more consistent)
* Grrr, s/INVARIANTS_SUPPORT/INVARIANT_SUPPORT/.jhb2001-02-243-3/+3
|
* - Axe RETIP() as it was very i386 specific and unwieldy. Instead, use thejhb2001-02-243-39/+36
| | | | | | | | | | | | | | | | | | passed in filename and line number in the KTR tracepoint message. - Even though it is #if 0'd code, change the code to detect that a process is an interrupt thread to check p->p_ithd against NULL rather than checking non-existant process flags from BSD/OS. - Use '%p' to print pointers in KTR log messages instead of assuming sizeof(int) == sizeof(void *). - Don't set p_mtxname to NULL when releasing a mutex. It doesn't hurt to leave it set (we don't clear w_mesg for example) and at least at one time in the past, there used to be race conditions in the kernel that would result in setting this to NULL causing the kernel to dereference NULL. - Make the _mtx_assert() function be compiled in if INVARIANTS_SUPPORT is defined rather than if INVARIANTS is defined so that a KLD compiled with INVARIANTS that uses mtx_assert() can be used with a kernel that just has INVARIANT_SUPPORT compiled in.
* In the SCSI_NO_SENSE_STRINGS case, properly fill the table with thegibbs2001-02-241-1/+1
| | | | | | | asc and ascq pair rather than asc, asc. PR: 25291 Submitted by: Stephen Ferrari <sferrari@yahoo.com>
* sched_swi -> swi_schedjhb2001-02-241-1/+1
|
* Don't include machine/mutex.h and relocate sys/mutex.h's include to bejhb2001-02-241-2/+1
| | | | closer to alphabetical order and identical to that of the alpha.
* Add back in INVARIANT_SUPPORT and expand the comments in NOTES about itjhb2001-02-243-0/+27
| | | | to include the reasoning Eivind justifiably thwapped me over the head with.
* Clockframes have a trapframe stored in a cf_tf member, not ct_tf.jhb2001-02-241-1/+1
|
* Whitespace nits.jhb2001-02-241-2/+2
|
* Pass in process to mark ast on to aston().jhb2001-02-241-1/+1
|
* Make md/mdconfig do kld.phk2001-02-241-4/+35
| | | | Submitted by: dcs
* Introduce API for sequential reads/writes (build/dissect) of mbuf chains.bp2001-02-248-1/+721
| | | | | | | Reviewed by: Ian Dowse <iedowse@maths.tcd.ie>, Bosko Milekic <bmilekic@technokratis.com>, Julian Elischer <julian@elischer.org> and arch@/net@ Obtained from: smbfs
* Add knowledge of the netgraph spinlocks into the Witness code.julian2001-02-244-5/+18
| | | | Well, at least I think that's how it's done.
* - Assert that the proc to return is not NULL in runq_choose thejake2001-02-241-0/+2
| | | | | | same as runq_remove. - bzero the whole struct runq in runq_init just in case its not statically allocated.
* Bump FreeBSD version to correspond to addition of CPUTYPE make variable.kris2001-02-241-1/+1
|
* It turns out the kernel console works fine and thus doesn't need quite thisjhb2001-02-241-23/+0
| | | | much extra testing.
* Add an EV_SET() convenience macro for initializing struct kevent priorjlemon2001-02-242-2/+11
| | | | | | to the call to kevent(). Update the copyright notices as well.
* Introduce a NOTE_LOWAT flag for use with the read/write filters, whichjlemon2001-02-242-0/+9
| | | | | | | | | | allow the watermark to be passed in via the data field during the EV_ADD operation. Hook this up to the socket read/write filters; if specified, it overrides the so_{rcv|snd}.sb_lowat values in the filter. Inspired by: "Ronald F. Guilmette" <rfg@monkeys.com>
* When returning EV_EOF for the socket read/write filters, also returnjlemon2001-02-241-0/+2
| | | | | | | the current socket error in fflags. This may be useful for determining why a connect() request fails. Inspired by: "Jonathan Graehl" <jonathan@graehl.org>
* Stricter style(9) conformance - remove unnecessary blank lines in previouspeter2001-02-231-2/+0
| | | | commit.
* When converting soft error into a hard error, drop the connection. Thejlemon2001-02-232-6/+14
| | | | | | | | | | | | | error will be passed up to the user, who will close the connection, so it does not appear to make a sense to leave the connection open. This also fixes a bug with kqueue, where the filter does not set EOF on the connection, because the connection is still open. Also remove calls to so{rw}wakeup, as we aren't doing anything with them at the moment anyway. Reviewed by: alfred, jesper
* Allow ICMP unreachables which map into PRC_UNREACH_ADMIN_PROHIB tojlemon2001-02-234-182/+38
| | | | | | | | | | | | | | | | reset TCP connections which are in the SYN_SENT state, if the sequence number in the echoed ICMP reply is correct. This behavior can be controlled by the sysctl net.inet.tcp.icmp_may_rst. Currently, only subtypes 2,3,10,11,12 are treated as such (port, protocol and administrative unreachables). Assocaiate an error code with these resets which is reported to the user application: ENETRESET. Disallow resetting TCP sessions which are not in a SYN_SENT state. Reviewed by: jesper, -net
* Fix typo in comment (knode -> knote).jlemon2001-02-231-1/+1
|
* Add a NOTE_REVOKE flag for vnodes, which is triggered from within vclean().jlemon2001-02-234-0/+24
| | | | | | | Use this to tell a filter attached to a vnode that the underlying vnode is no longer valid, by returning EV_EOF. PR: kern/25309, kern/25206
* Test out the kernel console just before launching the AP's.jhb2001-02-231-0/+24
|
* Use correct list pointer when detaching knote from list.jlemon2001-02-231-1/+2
|
* Introduce per-swap area accounting in the VM system, and exportrwatson2001-02-234-3/+44
| | | | | | | | | | | this information via the vm.nswapdev sysctl (number of swap areas) and vm.swapdevX nodes (where X is the device), which contain the MIBs dev, blocks, used, and flags. These changes are required to allow top and other userland swap-monitoring utilities to run without setgid kmem. Submitted by: Thomas Moestl <tmoestl@gmx.net> Reviewed by: freebsd-audit
* Shuffle sysctls a bit (thankyou whoever made them dynamic for modules)julian2001-02-235-7/+59
| | | | | | | | | | | | and add a sysctl to pppoe to activate non standard ethertypes so that idiot ISPs (apparently in France) who use equipment from idiot suppliers (rumour says 3com) who use nonstandard ethertypes can still connect. "yep, sure we do pppoe, we use a different identifier to that dictated in the standard, but sure it's pppoe!" sysctl -w net.graph.stupid_isp=1 enables the changeover.
* Free lock before calling panic so that subsequent attempt to write outmckusick2001-02-231-62/+191
| | | | | buffers does not re-panic with `locking against myself'. This change should not affect normal operations of soft updates in any way.
* Additional enhancments to allow IBM Etherjet cards to be probed,imp2001-02-234-111/+137
| | | | | | | | | | | | | | | | | attached and ifconfigable. The card doesn't interrupt yet. Also, move towards bus space by introducing new macros/inline functions which make such a move much easier than before. These inline functions are setup now to work around an IBM EtherJet pccard cardbus bridge incompatibility. The card works in 8 bit mode, but not in 16-bit mode when it is connected to a cardbus bridge for reasons unknown. The Linux driver also has a similar workaround in it. Future work will include making the above workaround runtime conditional rather than compile time conditional, as well as fixing the interrupts in pccards and converting it to bus space.
* Fix a longstanding bug- we had the sense of what bit 14mjacob2001-02-233-12/+27
| | | | | | | | | | | | | | | for the ICB firmware options meant- *I* had taken it to mean that if you set it, Node Name would be ignored and derived from Port Name. Actually, it meant the opposite. As a consequence- change ICBOPT_USE_PORTNAME to the define ICBOPT_BOTH_WWNS- makes more sense. Fix wrong input bitmap for MBOX_DUMP_RAM command. Call ISP_DUMPREGS if we get a f/w crash. Add ISPCTL_RUN_MBOXCMD control command (so outer layers can run a mailbox command directly) and add a ISPASYNC_UNHANDLED_RESPONSE hook so outer layers can understand response queue entries we might not know about.
* If the symbolic links @ or machine exist, do not depend on them.imp2001-02-231-3/+12
| | | | | | | This fixes the problem where if src/sys or src/sys/$MACHINE_ARCH/include changed at all, all the modules would be rebuilt. Reviewed by: bde
* Display the Joliet Extension 'level' in the log message.alfred2001-02-232-2/+2
| | | | PR: kern/24998
* Sigh, nobody ever got back to me about this. So, here it is..peter2001-02-231-8/+35
| | | | Implement auto scsi scan at insert time for the aic driver.
* Activate USER_LDT by default. The new thread libraries are going topeter2001-02-2334-143/+20
| | | | | | | | depend on this. The linux ABI emulator tries to use it for some linux binaries too. VM86 had a bigger cost than this and it was made default a while ago. Reviewed by: jhb, imp
* Remove undefined and unreferenced doreti_syscall_ret globl. While I'mjhb2001-02-231-3/+1
| | | | | here, adjust comment block above doreti. We don't have the old MP lock anymore.
* Redo the security update done in rev 1.54 of src/sys/netinet/tcp_subr.cjesper2001-02-225-74/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | and 1.84 of src/sys/netinet/udp_usrreq.c The changes broken down: - remove 0 as a wildcard for addresses and port numbers in src/sys/netinet/in_pcb.c:in_pcbnotify() - add src/sys/netinet/in_pcb.c:in_pcbnotifyall() used to notify all sessions with the specific remote address. - change - src/sys/netinet/udp_usrreq.c:udp_ctlinput() - src/sys/netinet/tcp_subr.c:tcp_ctlinput() to use in_pcbnotifyall() to notify multiple sessions, instead of using in_pcbnotify() with 0 as src address and as port numbers. - remove check for src port == 0 in - src/sys/netinet/tcp_subr.c:tcp_ctlinput() - src/sys/netinet/udp_usrreq.c:udp_ctlinput() as they are no longer needed. - move handling of redirects and host dead from in_pcbnotify() to udp_ctlinput() and tcp_ctlinput(), so they will call in_pcbnotifyall() to notify all sessions with the specific remote address. Approved by: jlemon Inspired by: NetBSD
* Streamline updating of switchtime (don't copy code from kern_sync.c).tegge2001-02-221-4/+2
| | | | Submitted by: jhb
* Backout previous commit. sched_lock is held, thus interrupts are preventedtegge2001-02-221-14/+6
| | | | | | here. Submitted by: jhb
* Protect update of the per processor switchtime variable againsttegge2001-02-222-7/+19
| | | | | | | | | interrupts. Protect usage of the per processor switchtime variable against interrupts in calcru(). This seem to eliminate the "microuptime() went backwards" warnings.
* The p_md.md_regs member of proc is used in signal handling to referencejhb2001-02-223-0/+3
| | | | | | | | | | | | | | | the the original trapframe of the syscall, trap, or interrupt that entered the kernel. Before SMPng, ast's were handled via a psuedo trap at the end of doerti. With the SMPng commit, ast's were broken out into a separate ast() function that was called from doreti to match the behavior of other architectures. Unfortunately, when this was done, the p_md.md_regs member of curproc was not updateda in ast(), thus when signals are handled by userret() after an interrupt that returns to userland, we end up using a stale trapframe that will result in the registers from the old trapframe overwriting the real trapframe and smashing all the registers right before we return to usermode. The saved %cs:%eip from where we were in usermode are saved in the trapframe for example.
OpenPOWER on IntegriCloud