dragonfly.git
15 years agoAbstract out the location of an m_tag's data by adding a m_tag_data() inline.
Matthew Dillon [Fri, 17 Jun 2005 19:12:23 +0000 (19:12 +0000)]
Abstract out the location of an m_tag's data by adding a m_tag_data() inline.
Replace all instances of 'mtag + 1' with the new inline.

Fix numerous bugs, mainly in ipfw/ipfw2, where the m_tag data was being stored
in the wrong place and corrupting the m_tag, resulting in a panic.  This
primarily occured with the use of divert rules.

Reported-by: Ben Woolley <tautolog@gmail.com>
15 years agoWhen cleaning an mbuf header for reinsertion into the objcache, make sure
Matthew Dillon [Fri, 17 Jun 2005 18:58:02 +0000 (18:58 +0000)]
When cleaning an mbuf header for reinsertion into the objcache, make sure
m_pkthdr.tags is reset.

15 years agotake cvs 1.12.11 sources out of duty
Simon Schubert [Fri, 17 Jun 2005 14:59:07 +0000 (14:59 +0000)]
take cvs 1.12.11 sources out of duty

15 years agoBetter comment for chdir_verify_path()
Max Okumoto [Fri, 17 Jun 2005 10:27:53 +0000 (10:27 +0000)]
Better comment for chdir_verify_path()

15 years agoStyle(9) - add blank line before first statement in a function.
Max Okumoto [Fri, 17 Jun 2005 08:49:49 +0000 (08:49 +0000)]
Style(9) - add blank line before first statement in a function.

15 years agoRemove extra white space.
Max Okumoto [Fri, 17 Jun 2005 08:11:28 +0000 (08:11 +0000)]
Remove extra white space.

15 years agoRemove spaces infront of tabs.
Max Okumoto [Fri, 17 Jun 2005 07:54:24 +0000 (07:54 +0000)]
Remove spaces infront of tabs.

15 years agoFix order of functions Shell_Init() uses ShellMatch()
Max Okumoto [Fri, 17 Jun 2005 07:50:49 +0000 (07:50 +0000)]
Fix order of functions Shell_Init() uses ShellMatch()

15 years agoReduce diffs
Max Okumoto [Thu, 16 Jun 2005 23:33:15 +0000 (23:33 +0000)]
Reduce diffs

15 years agoSome more style(9) stuff and took some comment from FreeBSD.
Max Okumoto [Thu, 16 Jun 2005 23:11:42 +0000 (23:11 +0000)]
Some more style(9) stuff and took some comment from FreeBSD.

15 years agoFix some style(9) errors.
Max Okumoto [Thu, 16 Jun 2005 23:06:56 +0000 (23:06 +0000)]
Fix some style(9) errors.

15 years agoFreeBSD-Date: 2005/06/14 12:50:52
Max Okumoto [Thu, 16 Jun 2005 22:59:15 +0000 (22:59 +0000)]
FreeBSD-Date: 2005/06/14 12:50:52
Author: ru

Markup and wording fixes.
Approved by:   re (blanket)

15 years agoFreeBSD-Date: 2005/05/25 17:06:14
Max Okumoto [Thu, 16 Jun 2005 22:46:48 +0000 (22:46 +0000)]
FreeBSD-Date: 2005/05/25 17:06:14
Author: harti

Under certain conditions the condition parser would go one past end of
the string. Until now this caused no harm, because the buffer code used
to tack two NULs onto buffers. With the new, soon to come, parsing code
this isn't the case anymore in all cases, so fix this.

15 years agoReorder functions to reduce determining what harti did.
Max Okumoto [Thu, 16 Jun 2005 22:35:15 +0000 (22:35 +0000)]
Reorder functions to reduce determining what harti did.

15 years agoFreeBSD-Date: 2005/05/25 09:46:31
Max Okumoto [Thu, 16 Jun 2005 22:02:36 +0000 (22:02 +0000)]
FreeBSD-Date: 2005/05/25 09:46:31
Author: harti

Document why there is a dependency of certain object files from the
Makefile.

Requested by:   ru

15 years agoFreeBSD-Date: 2005/05/24 16:48:10
Max Okumoto [Thu, 16 Jun 2005 21:50:50 +0000 (21:50 +0000)]
FreeBSD-Date: 2005/05/24 16:48:10
Author: harti

Make shell.o dependend on the Makefile just in case someone changes
the default shell in the Makefile.

15 years agoFreeBSD-Date: 2005/05/24 16:45:11
Max Okumoto [Thu, 16 Jun 2005 21:47:38 +0000 (21:47 +0000)]
FreeBSD-Date: 2005/05/24 16:45:11
Author: harti

Fix a 64-bit warning by casting an int64_t to intmax_t and printing it
with %jd.

15 years ago- Make rwhod now use poll(2) instead of signals
Liam J. Foy [Thu, 16 Jun 2005 21:39:50 +0000 (21:39 +0000)]
- Make rwhod now use poll(2) instead of signals

If anyone can test this further than me, please do!

Taken from: OpenBSD with my timing modifications
Reviewed by: Joerg@

15 years agoRemove all remaining SPL code. Replace the mtd_cpl field in the machine
Matthew Dillon [Thu, 16 Jun 2005 21:12:49 +0000 (21:12 +0000)]
Remove all remaining SPL code.  Replace the mtd_cpl field in the machine
dependant thread structure and the CPL field in the interrupt stack frame
with dummies (so structural sizes do not change, yet).  Remove all interrupt
handler SPL mask and mask pointer code.  Remove all spl*() functions except
for splz().

Note that doreti uses a temporary CPL mask internally to accumulate a bitmap
of FAST interrupts which could not be executed due to not being able to get
the BGL.  This mask has no outside visibility.

Note that gd_fpending and gd_ipending still exist to support critical section
interrupt deferment.

15 years agoRenamed ProcExec() to Proc_Exec() to follow code conventions in make.
Max Okumoto [Thu, 16 Jun 2005 20:51:04 +0000 (20:51 +0000)]
Renamed ProcExec() to Proc_Exec() to follow code conventions in make.

Noticed by harti

15 years agoSome DDEFSHELLNAME cleanups noted by harti
Max Okumoto [Thu, 16 Jun 2005 20:44:13 +0000 (20:44 +0000)]
Some DDEFSHELLNAME cleanups noted by harti

15 years agoFreeBSD-Date: 2005/05/24 14:14:23
Max Okumoto [Thu, 16 Jun 2005 20:42:58 +0000 (20:42 +0000)]
FreeBSD-Date: 2005/05/24 14:14:23
Author: harti

Another shell attribute 'unsetenv' that will cause to unsetenv("ENV")
before executing the shell. Until now this was done when the default
shell was the ksh. This failed if the default shell was sh or csh and
the user switched to ksh.

15 years agoMoved free() out of both branches of if statement.
Max Okumoto [Thu, 16 Jun 2005 20:39:13 +0000 (20:39 +0000)]
Moved free() out of both branches of if statement.

Noticed by harti.

15 years agoFreeBSD-Date: 2005/05/24 11:59:08
Max Okumoto [Thu, 16 Jun 2005 20:33:12 +0000 (20:33 +0000)]
FreeBSD-Date: 2005/05/24 11:59:08
Author: harti

Describe the meta and builtins attributes for the .SHELL special
target.

15 years agoFreeBSD-Date: 2005/05/24 11:55:00
Max Okumoto [Thu, 16 Jun 2005 20:32:41 +0000 (20:32 +0000)]
FreeBSD-Date: 2005/05/24 11:55:00
Author: harti

Describe the -x option and the .WARN pseudo-target.

15 years agoAdd meta to free routine
Max Okumoto [Thu, 16 Jun 2005 20:29:23 +0000 (20:29 +0000)]
Add meta to free routine

Ideas taken from Harti's work
FreeBSD-Date: 2005/05/24 08:45:49

15 years agoUse new meta and builtins fields, to process command to be executed.
Max Okumoto [Thu, 16 Jun 2005 20:28:52 +0000 (20:28 +0000)]
Use new meta and builtins fields, to process command to be executed.

Ideas taken from Harti's work
FreeBSD-Date: 2005/05/24 08:45:49

15 years agoRestructure .SHELL parser
Max Okumoto [Thu, 16 Jun 2005 20:27:53 +0000 (20:27 +0000)]
Restructure .SHELL parser

Ideas taken from Harti's work
FreeBSD-Date: 2005/05/24 08:45:49

15 years agoAdd Shell_Dump()
Max Okumoto [Thu, 16 Jun 2005 20:27:17 +0000 (20:27 +0000)]
Add Shell_Dump()

Taken from Harti's work
FreeBSD-Date: 2005/05/24 08:45:49

15 years agoAdd meta and builtins to ShellMatch()
Max Okumoto [Thu, 16 Jun 2005 20:26:27 +0000 (20:26 +0000)]
Add meta and builtins to ShellMatch()

Ideas taken from Harti's work
FreeBSD-Date: 2005/05/24 08:45:49

15 years agospl->critical section conversion.
Matthew Dillon [Thu, 16 Jun 2005 17:55:58 +0000 (17:55 +0000)]
spl->critical section conversion.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Thu, 16 Jun 2005 16:39:54 +0000 (16:39 +0000)]
Convert to critical sections.

15 years agoConvert to critical section.
Joerg Sonnenberger [Thu, 16 Jun 2005 16:31:34 +0000 (16:31 +0000)]
Convert to critical section.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Thu, 16 Jun 2005 16:29:39 +0000 (16:29 +0000)]
Convert to critical sections.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Thu, 16 Jun 2005 16:21:30 +0000 (16:21 +0000)]
Convert to critical sections.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Thu, 16 Jun 2005 16:18:06 +0000 (16:18 +0000)]
Convert to critical sections.

15 years agospl->critical section conversion.
Matthew Dillon [Thu, 16 Jun 2005 16:08:58 +0000 (16:08 +0000)]
spl->critical section conversion.

15 years agoLet the compiler decide what code should be inlined and what not.
Joerg Sonnenberger [Thu, 16 Jun 2005 16:04:28 +0000 (16:04 +0000)]
Let the compiler decide what code should be inlined and what not.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Thu, 16 Jun 2005 16:06:40 +0000 (16:06 +0000)]
Convert to critical sections.

15 years agospl->critical section conversion. Also fixes a missed spl in DGM.
Matthew Dillon [Thu, 16 Jun 2005 16:03:12 +0000 (16:03 +0000)]
spl->critical section conversion.  Also fixes a missed spl in DGM.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Thu, 16 Jun 2005 16:00:11 +0000 (16:00 +0000)]
Convert to critical sections.

15 years agospl->critical section conversion.
Matthew Dillon [Thu, 16 Jun 2005 15:53:38 +0000 (15:53 +0000)]
spl->critical section conversion.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Thu, 16 Jun 2005 15:51:34 +0000 (15:51 +0000)]
Convert to critical sections.

15 years agoRip out bad spl manipulating junk from mpt and clean it up.
Matthew Dillon [Thu, 16 Jun 2005 15:48:59 +0000 (15:48 +0000)]
Rip out bad spl manipulating junk from mpt and clean it up.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Thu, 16 Jun 2005 15:38:36 +0000 (15:38 +0000)]
Convert to critical sections.

15 years agoRemove now unused variables.
Joerg Sonnenberger [Thu, 16 Jun 2005 14:51:55 +0000 (14:51 +0000)]
Remove now unused variables.

15 years agoCorrect some spelling errors
Max Okumoto [Thu, 16 Jun 2005 08:38:24 +0000 (08:38 +0000)]
Correct some spelling errors

Pointed out by Jonathon McKitrick

15 years agoAdd notes how to get xauth forwarding going with pkgsrc
Simon Schubert [Thu, 16 Jun 2005 08:14:02 +0000 (08:14 +0000)]
Add notes how to get xauth forwarding going with pkgsrc

15 years agoThe callout timer init code was using { SI_SUB_CPU , SI_ORDER_FIRST }.
Matthew Dillon [Thu, 16 Jun 2005 04:43:27 +0000 (04:43 +0000)]
The callout timer init code was using { SI_SUB_CPU , SI_ORDER_FIRST }.
Recent changes to conf/files caused the kernel to reorder the timer init
to prior the SMP cpu init, causing the timer init to believe that only
one cpu existed.

Fix the ordering by setting it to SI_ORDER_SECOND.

15 years ago- Small message
Liam J. Foy [Wed, 15 Jun 2005 21:29:21 +0000 (21:29 +0000)]
- Small message

15 years ago1) When randomly placing ships, allow them to be anywhere on the board
Sascha Wildner [Wed, 15 Jun 2005 20:59:13 +0000 (20:59 +0000)]
1) When randomly placing ships, allow them to be anywhere on the board
   instead of unconditionally restricting the range of the random number
   by the ship's length.

2) Fix an off by one error in checkplace(). The ship starts on the current
   position.

Fix 1 submitted by: Craig Dooley <xlnxminusx@gmail.com>

15 years agoConvert to critical sections.
Joerg Sonnenberger [Wed, 15 Jun 2005 19:29:30 +0000 (19:29 +0000)]
Convert to critical sections.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Wed, 15 Jun 2005 18:46:54 +0000 (18:46 +0000)]
Convert to critical sections.

15 years agoConvert to critical sections. Rename a local variable from s to i,
Joerg Sonnenberger [Wed, 15 Jun 2005 18:29:30 +0000 (18:29 +0000)]
Convert to critical sections. Rename a local variable from s to i,
since it is now only used as index.

15 years agoFix memory leak, I forgot to free the path when releasing the shell object.
Max Okumoto [Wed, 15 Jun 2005 18:01:47 +0000 (18:01 +0000)]
Fix memory leak, I forgot to free the path when releasing the shell object.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Wed, 15 Jun 2005 17:12:24 +0000 (17:12 +0000)]
Convert to critical sections.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Wed, 15 Jun 2005 16:32:58 +0000 (16:32 +0000)]
Convert to critical sections.

15 years agoConvert to critical sections. Stop messing with the interrupt masks.
Joerg Sonnenberger [Wed, 15 Jun 2005 12:27:20 +0000 (12:27 +0000)]
Convert to critical sections. Stop messing with the interrupt masks.

15 years agoConvert to critical sections. Drop a splz.
Joerg Sonnenberger [Wed, 15 Jun 2005 11:56:03 +0000 (11:56 +0000)]
Convert to critical sections. Drop a splz.

15 years agoFix another bunch of missing ether_ifdetach calls.
Joerg Sonnenberger [Wed, 15 Jun 2005 11:35:22 +0000 (11:35 +0000)]
Fix another bunch of missing ether_ifdetach calls.

15 years agoMissing ether_ifdetach in error path.
Joerg Sonnenberger [Wed, 15 Jun 2005 11:15:37 +0000 (11:15 +0000)]
Missing ether_ifdetach in error path.

Noticed-by: Sepherosa Ziehau <sepherosa@gmail.com>
15 years agoRemove illegal parens from #ifndef.
Matthew Dillon [Wed, 15 Jun 2005 09:26:10 +0000 (09:26 +0000)]
Remove illegal parens from #ifndef.

15 years agoBetter comment for fields in Shell object, and add additional fields
Max Okumoto [Wed, 15 Jun 2005 08:04:42 +0000 (08:04 +0000)]
Better comment for fields in Shell object, and add additional fields
for meta and builtin keywords.

FreeBSD-Date: 2005/05/24 08:45:49

15 years agoBetter function description for Compat_RunCommand()
Max Okumoto [Wed, 15 Jun 2005 07:48:17 +0000 (07:48 +0000)]
Better function description for Compat_RunCommand()

FreeBSD-Date: 2005/05/24 08:45:49

15 years agoRemove extraneous closing brace.
Jeroen Ruigrok/asmodai [Wed, 15 Jun 2005 07:15:03 +0000 (07:15 +0000)]
Remove extraneous closing brace.

Noticed by: Sepherosa Ziehau

15 years agoNuke compatiblity parts.
Joerg Sonnenberger [Tue, 14 Jun 2005 21:19:19 +0000 (21:19 +0000)]
Nuke compatiblity parts.

15 years agotypo
Joerg Sonnenberger [Tue, 14 Jun 2005 20:41:24 +0000 (20:41 +0000)]
typo

15 years agoConvert to critical sections.
Joerg Sonnenberger [Tue, 14 Jun 2005 19:47:30 +0000 (19:47 +0000)]
Convert to critical sections.

15 years agoConvert to critical sections. Stop updating interrupt masks.
Joerg Sonnenberger [Tue, 14 Jun 2005 19:42:08 +0000 (19:42 +0000)]
Convert to critical sections. Stop updating interrupt masks.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Tue, 14 Jun 2005 19:34:26 +0000 (19:34 +0000)]
Convert to critical sections.

15 years agoForgotten from the ALTQ conversion.
Joerg Sonnenberger [Tue, 14 Jun 2005 18:37:26 +0000 (18:37 +0000)]
Forgotten from the ALTQ conversion.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Tue, 14 Jun 2005 18:30:55 +0000 (18:30 +0000)]
Convert to critical sections.

15 years agoUse if_printf.
Joerg Sonnenberger [Tue, 14 Jun 2005 18:15:37 +0000 (18:15 +0000)]
Use if_printf.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Tue, 14 Jun 2005 18:09:47 +0000 (18:09 +0000)]
Convert to critical sections.

15 years agoUse if_printf for TUNDEBUG.
Joerg Sonnenberger [Tue, 14 Jun 2005 17:43:01 +0000 (17:43 +0000)]
Use if_printf for TUNDEBUG.

15 years agosimplify.
Joerg Sonnenberger [Tue, 14 Jun 2005 17:38:36 +0000 (17:38 +0000)]
simplify.

15 years agoConvert to critical sections. Be a bit more conservative for now.
Joerg Sonnenberger [Tue, 14 Jun 2005 17:34:29 +0000 (17:34 +0000)]
Convert to critical sections. Be a bit more conservative for now.

15 years agoAdd additional sanity checks, remove unused arguments to vm_page_startup().
Matthew Dillon [Tue, 14 Jun 2005 17:16:00 +0000 (17:16 +0000)]
Add additional sanity checks, remove unused arguments to vm_page_startup().

15 years agoConvert to critical sections.
Joerg Sonnenberger [Tue, 14 Jun 2005 17:05:58 +0000 (17:05 +0000)]
Convert to critical sections.

15 years ago- convert to critical sections
Joerg Sonnenberger [Tue, 14 Jun 2005 17:01:17 +0000 (17:01 +0000)]
- convert to critical sections
- hook up bus_setup_intr last

15 years agoRemove pcic(4) manpage. This was updated by mistake.
Sascha Wildner [Tue, 14 Jun 2005 16:50:43 +0000 (16:50 +0000)]
Remove pcic(4) manpage. This was updated by mistake.

15 years ago- convert to critical sections
Joerg Sonnenberger [Tue, 14 Jun 2005 16:47:38 +0000 (16:47 +0000)]
- convert to critical sections
- hook up interrupt last in gx_attach
- use gx_detach as common error path

15 years agoAdd missing breaks.
Joerg Sonnenberger [Tue, 14 Jun 2005 16:35:42 +0000 (16:35 +0000)]
Add missing breaks.

15 years agoCorrect item lists.
Sascha Wildner [Tue, 14 Jun 2005 16:29:03 +0000 (16:29 +0000)]
Correct item lists.

15 years agoFix controller names.
Sascha Wildner [Tue, 14 Jun 2005 16:24:34 +0000 (16:24 +0000)]
Fix controller names.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Tue, 14 Jun 2005 15:30:58 +0000 (15:30 +0000)]
Convert to critical sections.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Tue, 14 Jun 2005 15:23:18 +0000 (15:23 +0000)]
Convert to critical sections.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Tue, 14 Jun 2005 15:19:28 +0000 (15:19 +0000)]
Convert to critical sections.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Tue, 14 Jun 2005 15:11:23 +0000 (15:11 +0000)]
Convert to critical sections.

15 years agoUse PCI accessor functions and nuke the port / memory enabling.
Joerg Sonnenberger [Tue, 14 Jun 2005 15:08:16 +0000 (15:08 +0000)]
Use PCI accessor functions and nuke the port / memory enabling.

15 years ago- convert to critical sections
Joerg Sonnenberger [Tue, 14 Jun 2005 15:01:58 +0000 (15:01 +0000)]
- convert to critical sections
- hook up interrupt last, use M_WAITOK for contigmalloc
- use lge_detach as common error path

15 years agoConvert to critical sections.
Joerg Sonnenberger [Tue, 14 Jun 2005 14:44:42 +0000 (14:44 +0000)]
Convert to critical sections.

15 years agoConvert to critical sections.
Joerg Sonnenberger [Tue, 14 Jun 2005 14:35:05 +0000 (14:35 +0000)]
Convert to critical sections.

15 years agoResource allocate now turns on port / memory bit in the PCI command reg,
Joerg Sonnenberger [Tue, 14 Jun 2005 14:19:22 +0000 (14:19 +0000)]
Resource allocate now turns on port / memory bit in the PCI command reg,
so stop doing it by hand.

15 years agoUse local storage instead of ac_enaddr in ti_attach.
Joerg Sonnenberger [Tue, 14 Jun 2005 13:53:25 +0000 (13:53 +0000)]
Use local storage instead of ac_enaddr in ti_attach.

15 years agoNo interrupts, no M_NOWAIT.
Joerg Sonnenberger [Tue, 14 Jun 2005 13:42:14 +0000 (13:42 +0000)]
No interrupts, no M_NOWAIT.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
15 years agoHook up interrupt last. Use ti_detach as common error path.
Joerg Sonnenberger [Tue, 14 Jun 2005 13:41:15 +0000 (13:41 +0000)]
Hook up interrupt last. Use ti_detach as common error path.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
15 years agoFix an uninitialised variable I introduced earlier.
Joerg Sonnenberger [Tue, 14 Jun 2005 13:36:42 +0000 (13:36 +0000)]
Fix an uninitialised variable I introduced earlier.

15 years agoUse PCI accessor functions.
Joerg Sonnenberger [Tue, 14 Jun 2005 13:36:00 +0000 (13:36 +0000)]
Use PCI accessor functions.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
15 years agodevice_printf / if_printf
Joerg Sonnenberger [Tue, 14 Jun 2005 13:34:52 +0000 (13:34 +0000)]
device_printf / if_printf

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>