168607 Commits

Author SHA1 Message Date
tsutsui
9dd0b2634a Remove an extra newline added in rev 1.18.
It will be put in the following clockattach().
2008-03-29 15:59:03 +00:00
chris
a3aadfe6ff Fix LOCKDEBUG build on arm by:
* converting simple_{un}lock to mutex_enter/exit
* Using UVM_OBJ_INIT & DESTROY for the uvm_object in the pmap structure
2008-03-29 15:52:09 +00:00
skrll
5886a5273b Need to pull in kobj_machdep.c for options MODULAR 2008-03-29 15:34:19 +00:00
reed
99fa634a69 Reset DHCP values before use. If you first chose DHCP, then later
chose manual, the generated rc.conf has dhclient details instead
of defaultroute.  (Noticed this when dhclient ran successfully,
but network failed so I entered network settings manually.)
Now only defines dhclient rc.conf variables when DHCP is used
else defines the defaultroute.
2008-03-29 15:19:53 +00:00
tsutsui
e9abc1656c Fix typo. 2008-03-29 14:34:13 +00:00
jmcneill
2bd589c8a4 Fix paths in CODE REFERENCES section. 2008-03-29 14:12:59 +00:00
ad
bd9b59aafe selwakeup: convert a while() loop into a do/while() since the first test
isn't needed.
2008-03-29 14:08:35 +00:00
ad
96a6231c10 callout_halt: remove unneeded extern decl. 2008-03-29 14:07:23 +00:00
he
73e50f111b Do like the non-__OPTIMIZE_SIZE__ variant, and compile memset() unless
BZERO is defined, instead of requiring MEMSET to be defined.

Avoids violating the principle of least astonishment, and also fixes
the build of stand/ and kernels for (at least) alpha.
2008-03-29 14:03:22 +00:00
ad
c7e03d2b58 callout_destroy: fix assertion to not fire when a callout is destroying
its own handle. PR kern/38324.
2008-03-29 14:00:55 +00:00
yamt
9230a9b039 ansify. from Christoph Egger. 2008-03-29 13:48:00 +00:00
jmcneill
2529ffb3cf Fix printf in ACPI_DEBUG case, pointed out by mlelstv@ 2008-03-29 13:33:12 +00:00
yamt
c585603ac5 route_intr: fill a correct member of sockproto. (sp_family -> sp_protocol) 2008-03-29 13:00:43 +00:00
tsutsui
64c8120f2a Fix wrong type. 2008-03-29 12:51:49 +00:00
he
a58a2cddc0 Make the size-optimized memset() actually conform to the man page
by returning the first arg.
2008-03-29 12:25:32 +00:00
mjf
e523c765c2 Add lii.0. Pointed out by mlelstv@ 2008-03-29 12:03:47 +00:00
apb
cd12700971 If SHELL_BUILTIN is defined (as will be the case when building external
builtins such as the printf command), then hide a few declarations.

This allows the shell to build again, fixing a problem with
"error" being declared as a function here, and as a variable in
.../usr.bin/printf/printf.c.
2008-03-29 09:58:00 +00:00
apb
d6d9ccc8ad * define SHELL_BUILTIN, which other headers may use to hide some of their
symbols if appropriate.  For example, error.h will use it to hide
  declarations that should not be seen by external builtins such as printf.
* The shell's outfmt() function returns void, but the standard fprintf()
  function returns int.  Similarly for several other functions that are
  redefined via macros in bltin.h.  Add a _RETURN_INT macro to do the
  necessary conversion.
* Delete some declarations that appear in error.h.
* Add comments on some #else/#endif lines.
2008-03-29 09:55:40 +00:00
apb
074a931bf5 Remove trailing ';' in definitions of out1c and out2c macros. 2008-03-29 09:49:52 +00:00
ragge
a24df7ca50 Include sys/param.h before file.h, to avoid redefinition of MIN. 2008-03-29 09:40:41 +00:00
blymn
ec0989aac6 Remove erroneous byteswap of flags - the flags are byteswapped when
assigned to the tx struct.
2008-03-29 09:38:42 +00:00
blymn
7c7e3e8c0d Clean up trailing whitespace. 2008-03-29 09:36:29 +00:00
tsutsui
30a5080cfd One more missed file on migration of struct device sc_dev -> device_t sc_dev. 2008-03-29 09:16:19 +00:00
tsutsui
8d17a1295b Split softc/device_t for oosiop(4) and osiop(4), with misc cosmetic changes. 2008-03-29 09:11:35 +00:00
mlelstv
23aa31d043 PPC systems predating prep and running the mvmeppc port
have compatible hardware.
2008-03-29 09:01:35 +00:00
tsutsui
7b2990dafa - split softc/device_t
- adjust attach messages for sbdio devices
- misc cosmetics
2008-03-29 08:14:40 +00:00
tsutsui
92c1d7b259 Fix thinko. 2008-03-29 07:35:04 +00:00
tsutsui
33ce2fbee5 Fix wrong type. 2008-03-29 07:20:01 +00:00
tsutsui
440f7c7b53 Split device_t/softc, and misc cosmetic changes. 2008-03-29 06:47:07 +00:00
tsutsui
58561d05b5 Use CFATTACH_DECL_NEW().
XXX: this one looks a bit strange because it's attached via nvram_pnpbus.c
2008-03-29 06:16:54 +00:00
tsutsui
d54d70b6a7 We have to use device_private() to get softc from cd_devs[]. 2008-03-29 06:13:44 +00:00
tsutsui
d062717c3f Don't forget to set sc_dev. 2008-03-29 05:48:33 +00:00
tsutsui
4090172b20 Don't forget to initialize sc_dev. 2008-03-29 05:42:45 +00:00
dholland
19f2a45a44 Correct/clarify the default setting of USETOOLS in the previous version.
Noted by apb.
2008-03-29 05:22:42 +00:00
nakayama
136678d875 Fix ohci brokenness in previous commit. 2008-03-29 02:20:41 +00:00
tsutsui
50cafe93bd Use device_private(), missed in the previous. 2008-03-29 02:14:29 +00:00
mjf
1078d801e0 Include lii(4). 2008-03-29 01:24:30 +00:00
mjf
09bf00f6dc Add man page for Atheros L2 Fast-Ethernet device driver. 2008-03-29 01:15:03 +00:00
cube
b5ab5ab5d8 Add and enable lii(4) in amd64 configurations, too, as it is very likely
the hw is used on amd64-capable otherboards, although it is not confirmed
yet.
2008-03-29 01:14:25 +00:00
cube
f154459e7a Mention the addition of lii(4). 2008-03-29 00:42:22 +00:00
cube
819aee2ff1 Add lii(4) where it makes sense. 2008-03-29 00:40:02 +00:00
cube
88b9a9b2e7 Add and enable lii(4). 2008-03-29 00:21:01 +00:00
cube
8b01a3db30 Add lii. 2008-03-29 00:20:08 +00:00
cube
2bfb1e4fe0 Add a driver for the Atheros/Attansic L2 Fast-Ethernet chip found on a
series of hardware that includes Asus's famous EeePC.

The linux driver was used as documentation.

Many thanks to all the people who helped or at least supported me while I
was fighting that bug that made the EeePC freeze.  At the top of that list,
Matt J. Fleming (mjf@) and David Gwynne (from the OpenBSD fame).
2008-03-29 00:16:26 +00:00
nakayama
5a9b71307f Don't read fplwp content in delay slot for considering the case fplwp was
modifiled.

Reported by Chris Ross on port-sparc64.
2008-03-28 23:22:53 +00:00
apb
e6806c2c83 Adapt to changes in m68k/060sp/asm2gas script: pass SED=${TOOL_SED:Q}
instead of TOOL_SED=${TOOL_SED:Q} in the environment.
2008-03-28 22:29:16 +00:00
apb
87f370a116 Synchronise the two asm2gas scripts in sys/arch/m68k/060sp and
sys/arch/m68k/fpsp:

* The fpsp/asm2gas sed script previously hardcoded the fact that
  registers needed a '%' prefix, and the 060sp/asm2gas sed scrip
  previously did not have rules related to inserting '%' before register
  names.  Now, both scripts have the same rules, but the rules are
  parapeterised to use "$P", which is set to '' or '%' as appropriate.

* Some other minor changes to the sed scripts.

The new asm2gas scripts have been verified to produce identical output
to the old asm2gas scripts, for all inputs in 060sp/dist/*.sa and
fpsp/*.sa, except for some differences inside comments.

Thanks to Izumi Tsutsui for suggesting that these scripts should be
synchronised.
2008-03-28 22:27:33 +00:00
ad
58420c122f mutex_vector_exit: add another panicstr check. 2008-03-28 22:19:39 +00:00
ad
6c180fd421 Pull in sys/cpu.h for cpu_intr_p(). 2008-03-28 21:58:43 +00:00
christos
5ae92982aa properly fix the variable stack allocation code. 2008-03-28 21:18:45 +00:00