is
80dd3cea87
new world order
2004-12-16 21:51:04 +00:00
tsutsui
25c45d8b5f
Now ctrl_led is set in locore.s so remove it from machdep.c.
2004-12-16 12:14:51 +00:00
tsutsui
b3da46dc10
- Use macro for CTRL_POWER port
...
- Store machine dependent CTRL_LED address in ctrl_led
- Fix LED debug functions to use stored MD values
Actually I only used these debug routines at the very early porting stage
before I got working kernel printf. Heh.
XXX: news1200 has not been tested for many years.
2004-12-15 17:30:46 +00:00
tsutsui
62724bfcae
Add definitions for ports CTRL_POWER and CTRL_LED.
2004-12-15 17:22:11 +00:00
tsutsui
7c2dd89551
Backout previous because:
...
- we should fix genassym.sh to generate proper unsigned values rather than
remove use of such values in each source
- 0xe0dc0000 is port to control LED so INTIOBASE1700_OFF is not proper name
- these LED debug code didn't work on news1200 and it should be fixed anyway
2004-12-15 14:03:52 +00:00
jmc
a00ad2295a
Due to cpp always treating constants as signed and gas no longer accepting
...
X - -Y in any form, need to convert a subtract into + (-1 * val).
2004-12-15 05:21:36 +00:00
jmc
e2fee8d9b1
Convert -MMU_68040 into a form gas will take now (-- isn't valid)
2004-12-15 05:03:23 +00:00
jmc
11ea356c3f
Convert expression for (0xe0dc0000-INTIOBASE1700) directly within a cpp
...
macro as otherwise gas gets handed an X - -Y expression and w 2.15 it won't
treat that as a valid expression
2004-12-15 04:56:13 +00:00
briggs
6aba8dfd50
* Don't try to clear the screen if we failed to map it.
...
* Don't try to call OF_open for /chaos@F0000000/control@B -- it hangs.
2004-12-15 04:52:05 +00:00
jmc
051513394b
Use correct locator name
2004-12-15 04:09:29 +00:00
jmc
60c10a987e
If LKM deal w. locators different
2004-12-15 04:09:16 +00:00
jmc
0c600e6739
Add a missing include for locators.h
2004-12-15 03:56:20 +00:00
tls
c1545077ff
Terminate the domain on RB_HALT, not just on reboot. This avoids looping
...
around a cngetc() that will never return while "halted", which is rude,
and which also requires domain 0 to not just restart us, but kill us
first. Suggestion from Michael Kukat (though this change is not the
same as the one he suggested).
Will cngetc() actually return something when running in domain 0 with a
VGA console? I don't think it will; if it actually does, we should make
this behaviour depend on whether we're in domain 0 or some other domain.
2004-12-14 18:07:42 +00:00
tls
2f6318305f
Change confusing name HYPERVISOR_yield to HYPERVISOR_sched_op as suggested
...
by Michael Kukat.
2004-12-14 17:13:56 +00:00
christos
2294df2c80
Move the definition of sccA from zc.c to machdep.c and always initialize it.
...
This way we save a mess of #ifdefs. XXX: This code is disgusting. Drivers
should not communicate with the rest of the kernel by means of global variables.
2004-12-14 16:28:00 +00:00
chs
267af995b7
use the generated macros in locators.h rather than hard-coded numbers
...
to index the cf_loc[] array. reviewed by allen briggs.
2004-12-14 02:32:02 +00:00
tls
db47b27974
HYPERVISOR_yield is one of the hypervisor calls that's "overloaded"; it
...
does different things depending what's in %ebx.
We weren't setting %ebx here *at all*; so we did not get SCHEDOP_yield,
which was what was wanted; so unpredictable things happened, notably
immediate return to the NetBSD idle loop, in other words spinning on CPU.
Definitely not cool!
Michael Kukat caught this one and suggested this fix on port-xen.
2004-12-13 19:33:56 +00:00
sekiya
c01662e204
Add prototype for r5k_sdcache_wbinv_range_index()
2004-12-13 08:39:50 +00:00
sekiya
07b6e1e982
Implement r5k indexed writeback-invalidate, and fix usage of Page_Invalidate_S.
...
Originally written by rafal@ back in April 2003. Field-tested by many
people since.
(I am not committing the pmap hack at this time; although pmap changes are
necessary to fully address the r5k panic/coma problems, the implementation
needs further thought)
2004-12-13 08:39:21 +00:00
sekiya
d1eab478d8
Remove gratuitous use of MIPS1/MIPS3.
2004-12-13 08:31:54 +00:00
sekiya
d45f3ffb2c
MIPS3_CONFIG_SC is an unreliable indicator for SC presence; r5k_enable_sdcache()
...
will gracefully exit if there is no secondary cache. Rework #ifdef'd out
r5k cache code to take this into account, and remove pointless r10k case.
2004-12-13 08:30:58 +00:00
chs
f873a82973
for drivers that support only one instance, use a global variable to ensure
...
that only one instance is configured rather than requiring that its
unit number be zero.
2004-12-13 02:39:07 +00:00
chs
25c1fe704b
rather than duplicate the contents of the MI version of this file,
...
just include it and redefine the one thing that we want to be different.
2004-12-13 02:36:50 +00:00
chs
fa37aec784
remove an unused macro (which was also removed from the sh3 version of this).
2004-12-13 02:34:03 +00:00
chs
f91d38c18c
adjust for b_bcount changing from long to int.
2004-12-13 02:33:06 +00:00
chs
1da81163d5
for drivers that support only one instance, use a global variable to ensure
...
that only one instance is configured rather than requiring that its
unit number be zero.
2004-12-13 02:31:56 +00:00
chs
0ded74691b
for drivers that support only one instance, use a global variable to ensure
...
that only one instance is configured rather than requiring that its
unit number be zero.
2004-12-13 02:14:13 +00:00
abs
964859d895
Fix comments regarding configration bounaries
2004-12-12 21:03:06 +00:00
abs
5958dd944e
Fix comments slighly
2004-12-12 20:42:53 +00:00
tsutsui
29ec4fefaa
news68k/locore.s directly includes <machine/trap.h> and
...
m68k/copy.s directly includes <sys/errno.h>,
so remove definitions for them from assym.h.
2004-12-12 10:26:36 +00:00
tsutsui
e76635baae
Remove definitions for EFAULT and ENAMETOOLONG.
...
m68k/copy.s directly includes <sys/errno.h>.
2004-12-12 10:22:20 +00:00
tsutsui
3725e9832e
u_intXX_t -> uintXX_t
2004-12-11 03:32:27 +00:00
jmc
d33fb8436c
Fix some improper casts now that b_count is an int
2004-12-10 20:05:05 +00:00
christos
142373a47b
dkvar.h now needs bufq.h, and now xen compiles again.
2004-12-10 18:54:08 +00:00
christos
78db5aa65d
catch up with field name rename.
2004-12-10 18:53:43 +00:00
christos
d0f26be538
Just when I thought it was all working... Unfortunately cpu.h defines
...
clockframe -> intrframe, but that is included too late, because this
file includes systm.h and it is in the path of including systm.h. Fix
it by not including <systm.h>; it was only needed for the panic() calls
which I have disabled, since they look more like debugging calls to me.
Also add forward struct declaration for trapframe.
2004-12-10 18:51:15 +00:00
christos
d4ea0343bc
don't use va_list here; use _BSD_VA_LIST_ because we could be included
...
before va_list is defined. This is common practice for kernel header
files (syslog.h)
2004-12-10 18:49:02 +00:00
christos
174c6b074b
Move the disable_intr and enable_intr functions from xenfunc.h to cpufunc.h,
...
because the x86/intr.h needs them and does not include xenfunc.h. Including
xenfunc.h in cpufunc.h is a clear lose because xenfunc.h needs a boatload
of include functions in order to compile.
2004-12-10 18:47:52 +00:00
matt
eb30eca3e3
Add -Wa,-maltivec so that AltiVec instuctions will be recognized.
2004-12-09 22:57:12 +00:00
briggs
b222b60d4a
Start I/O range at base+0x1000 to avoid 0.
2004-12-09 04:40:20 +00:00
briggs
f31e26a3dd
Several changes from Michael Lorenz. Adapted from PR port-macppc/27680.
...
1. Reset SCSI bus & MESH on reboot to keep OF happy.
2. Tweak interrupt handler to clear interrupt register again if we get a
CMDDONE interrupt with DMA active and a 0 fifocnt. It's not clear why
this is necessary, but is well documented in some other open source
drivers. This enables synchronous mode to work.
3. Dump a little more information if we do get a timeout.
2004-12-09 04:37:30 +00:00
briggs
d6a3e9bb82
Apply patch from Makoto Fujiwara (and Timm Wetzel) in PR port-macppc/15505
...
to enable internal modem for KeyLargo and Pangea.
2004-12-09 03:19:56 +00:00
briggs
a20a28eda2
Add wi devices so that devices can install over wireless LAN.
...
Addresses part of PR port-macppc/26466 from Chris Scott.
2004-12-09 02:54:18 +00:00
briggs
2268345329
Add VIA Rhine to install kernel.
...
Addresses PR port-macppc/26459 from Daan Goedkoop.
2004-12-09 02:46:01 +00:00
briggs
82b7820648
Revamp the old-world interrupt support based on better understanding of
...
the hardware. Inspired by Michael Lorenz with some hints from OpenDarwin
sources. Thanks to Michael for beginnings of the patch and for both
discussion and testing. Thanks to Tim Kelly and Riccardo Mottola for
further testing.
2004-12-09 01:43:37 +00:00
matt
42e9e00c87
Make MSIZE and MCLSHIFT overrideable in <machine/param.h>
2004-12-09 00:37:54 +00:00
reinoud
a80eefb9fc
Accidently added SMBfs support as default wich is still declared as
...
expirimental to my knowledge.
2004-12-08 13:30:10 +00:00
reinoud
4dddbc1c21
Add IPv6 support like all other architectures do and add NetBSD 2.0
...
binary compatibility
2004-12-08 13:28:27 +00:00
reinoud
ce52f6650b
Add NetBSD 2.0 compatibility setting
2004-12-08 13:24:49 +00:00
reinoud
fc45116dff
Add IPv6 support as default since all ports now have it as default; no use
...
to delay NC's since it doesn't that much memory too.
2004-12-08 13:23:45 +00:00
briggs
710cfd7aef
Add MPC7400 to the list of CPUs for which we try to measure the speed.
...
Noticed missing by Tim Kelly.
2004-12-08 03:07:03 +00:00
chs
bc7f8afb31
use the m68k-common procfs_machdep.c on all m68k platforms.
2004-12-08 02:32:33 +00:00
thorpej
dffe7d8e8d
READ_CAPACITY -> READ_CAPACITY_10
2004-12-07 23:14:03 +00:00
thorpej
ce91ac7d6b
USe more appropriate macro/struct names for READ/WRITE (6) and
...
READ/WRITE (10).
2004-12-07 23:07:31 +00:00
thorpej
d5083f78be
Use "struct scsipi_command" in internal command structures so that
...
we have enough space for 16-byte CDBs.
2004-12-07 22:23:45 +00:00
thorpej
a974bfe8ce
- Use the cmdlen specified in the scsipi_xfer structure. Keying off
...
the command group ID won't necessarily work for vendor-specific commands.
- Expand the storage in the SC_REQ structure to account for 16-byte commands.
2004-12-07 21:12:42 +00:00
briggs
f06d48126e
Bring in some code to deal with devices in the lower slots of a UMAX S900
...
and perhaps PowerMac 9500. These slots sit behind a PCI-PCI bridge, and
devices in those slots inherit the PCI-PCI bridge interrupt. Derived from
a patch submitted in PR port-macppc/26341 by Michael Loreny, who was also
diligent in prodding me to look at it.
2004-12-07 15:42:08 +00:00
thorpej
d41e8f00bf
Don't use "struct scsi_generic" in a hardware-defined structure. Instead,
...
use an array of 12 bytes. Check the incoming CDB to see that it will fit,
and print and error and fail the command if it won't.
2004-12-07 14:50:56 +00:00
briggs
6fec1d4f73
OpenFirmware on machines with the "Grackle" bridge assign an 'AAPL,interrupts'
...
property instead of 'interrupt-map' and 'interrupt-map-mask' properties.
Adjust for this by checking for the latter, and if they're not present
(and the parent isn't 'pci-bridge'), then look for 'AAPL,interrupts'.
Problem analyzed and patched by Tim Kelly on port-macppc. I modified the
patch to move the fallback into find_node_intr(), tweaking some previously-
disabled code.
2004-12-07 13:22:51 +00:00
chs
cf58c69b3e
use the m68k-common procfs_machdep.c on all m68k platforms.
2004-12-07 04:33:24 +00:00
cube
99b014db5e
Add ixpide(4).
2004-12-06 19:28:12 +00:00
briggs
52af8374ec
Minor (old) patch from me to correct CPU ID of 604e vs. 604ev.
...
Tested by Tim Kelly.
Also patched from Tim to
- Delay longer for second CPU spinup.
- Only attempt to print CPU speed and cache configuration on certain
CPU types.
2004-12-06 04:15:03 +00:00
chs
2a728789eb
elf2bb is a host program, don't assume that m68k pointer alignment is
...
sufficient. fixes PR 27055.
2004-12-04 16:23:31 +00:00
chs
e3f37f50b8
the arguments to BUS_ADDR() are (space, offset), not the other way around.
...
fixes PR 26472.
2004-12-04 16:19:36 +00:00
matt
080d581a20
Make sure to enable interrupts before lower IPL so we don't block any
...
interrupts (IPI) we shouldn't.
2004-12-04 05:56:28 +00:00
chs
5500ae7993
remove cache_flush_virt() and PADDRT, they're no longer used.
...
allocate a stack frame for blast_dcache() when profiling so it shows up.
in dcache_flush_page(), use a stride of 32 instead of 16 to match the
cache line size. correct various comments.
2004-12-03 02:04:00 +00:00
chs
2db3939de3
remove dead code and other minor cleaning.
2004-12-03 01:54:14 +00:00
xtraeme
76025558e1
Add ACPI joy(4) attachment, based on lpt_acpi.c by jmcneill@,
...
reviewed and ok'ed by cube@ and martin@.
2004-12-02 14:33:31 +00:00
xtraeme
347378fc9f
Add ACPI mpu(4) attachment, based on lpt_acpi.c by jmcneill@,
...
reviewed by christos@, cube@ and martin@.
While here, remove a printf() in mpu_attach() (ic/mpu.c) to remove
an empty line in some frontends (mpu_isa.c, etc).
2004-12-02 09:50:41 +00:00
grant
9204390fe4
add iteide(4) driver for ITE8212-based IDE controllers. from
...
OpenBSD, ported to NetBSD by me.
ok'd by bouyer@, thorpej@.
2004-12-01 22:27:45 +00:00
shige
4b61add729
Add header file for IBM405XX(AMCC405XX) Device Control Registers.
2004-12-01 17:55:33 +00:00
martin
416a47df13
Better return value checking for pseg_get/pseg_set. Turn Debugger() calls
...
into proper panics and sprinkle some KASSERTs. Closes PR 27288.
2004-12-01 09:48:03 +00:00
chs
a1f3bdce1e
do the invalidation of the (virtually-addressed) L1 cache in pmap_remove_all()
...
(ie. just before we skip the per-page cache invalidations while tearing down
each context) instead of just before we recycle all the contexts in ctx_alloc().
the latter is not good enough since a (physically tagged) L1 cache line is
valid for all contexts, not just the one that was used to instantiate it.
fixes PRs 24126, 25669 and 27730.
2004-12-01 08:05:26 +00:00
nathanw
bb630a5378
Add PSL_T to PSL_USER; it's fine for a program to want to trap itself.
2004-11-30 22:41:57 +00:00
jmc
355c871f88
Fix the way this checks the object files so it works correctly with make -j
2004-11-29 15:19:26 +00:00
ws
739e2052fd
We just checked that the parent is the root, not current.
...
So we better determine the bus number of this parent node.
Now, MPACPI on my Opteron board finally correctly determines its
PCI/AGP busses even without the help of the AMD64 Address Map
support implemented in my local tree.
2004-11-29 00:07:22 +00:00
thorpej
961245b8bf
Sync with i386 bus_dma.
2004-11-28 17:36:27 +00:00
thorpej
7a60e77293
bus_dmamap_load_mbuf(): Skip zero-length mbufs.
...
kern/24811
2004-11-28 17:34:45 +00:00
jmc
9bfe9b9970
Convert mkboot into a full cross tool. Last hurdle for hp300 to building on
...
non NetBSD/bsd hosts.
2004-11-28 11:14:41 +00:00
jmc
ca09268a5e
Reduce pci pullin's to just pcibusprint.c. This doesn't attach pci in a way
...
config will include any of the generic pci code and all the current code
needs is pcibusprint for now. XXX this really needs more careful looking over
but does allow ofppc to build clean again.
2004-11-28 10:01:25 +00:00
jmc
4a8d169c08
Just include files.wscons since it has some defparams needed by includes
...
that get picked up from rcons files. Note the fact we're assuming files.wscons
will include files.rcons. Fixes builds on pmax.
2004-11-28 09:05:49 +00:00
jmc
c7464d49db
Convert remaining host tools for amiga to correct cross tools. Now allows
...
complete amiga builds on non netbsd/bsd hosts
2004-11-28 07:00:52 +00:00
kim
d62a9fc15a
Whitespace police.
2004-11-25 16:13:34 +00:00
manu
6dfb732236
For and from bouyer@: call wdc_init_shadow_reg(chp) only after chp has
...
been initialized. Cause the hard disk to be detected again on the iBook G4,
and probably other machines.
Weee, I can run -current again!
2004-11-25 15:24:14 +00:00
christos
aae3f73769
include sys/types.h to make this compile again.
2004-11-25 08:30:52 +00:00
jmc
9a999c376a
Convert bebox's remaining host tools over to cross tools scheme. Builds to sets
...
w/o error now.
2004-11-25 08:09:14 +00:00
yamt
e558aadcb2
remove __lockbarrier, which i forgot to remove in the previous.
2004-11-25 04:50:48 +00:00
jmc
417e73cb35
Retool sgivol into a proper hostool that doesn't depend on disklabel.h.
...
Assume defaults for file images that match what a vnd would have used.
Native use will still use the standard NetBSD label to get this data.
Fixes PR#25996
2004-11-24 22:01:21 +00:00
jmc
ceb4d24120
Pull host/arch native label information into bootblock.h. Therefore pieces of
...
this are accessible from host tools.
2004-11-24 21:59:32 +00:00
bouyer
4994bd88e1
Regen (initially for pdcsata(4), but it looks like the files were not
...
regenerated after some recent addition to kernel configs).
2004-11-24 20:52:23 +00:00
bouyer
fe4d81db48
pdcsata(4), a driver for the Promise SATA150 (aka PDC203xx) serie of
...
controllers. Tested with a PDC20375 (2 SATA, one PATA) controller on sparc64.
Added to all kernel config file which had pdcide(4).
2004-11-24 20:49:17 +00:00
tsutsui
c6824e7fc3
Fix comment.
2004-11-24 17:31:58 +00:00
augustss
a66509ebd5
Some more Sharp MM20 fixup code that I forgot to commit in the first round.
2004-11-21 22:00:00 +00:00
is
96a8f93be8
Somebody forgot this change when changing the structure name.
...
Pointed out by Nick Hudson.
2004-11-21 20:43:22 +00:00
is
2539f48829
no more idesc please, use wdc instead.
2004-11-21 19:26:33 +00:00
skrll
ca5b73a7e3
Fix syntax error from 1.9. I guess IPKDB isn't used very much...
2004-11-19 07:59:53 +00:00
matt
e27c3887b6
If setfault() returns nonzero (ie, we trapped), make sure to unsetusr.
2004-11-18 22:56:32 +00:00
matt
589ef8f06a
Make sure to do setenv/unsetenv in pairs. This prevents panics in
...
DIAGNOSTIC kernel when crossing segment boundaries.
2004-11-18 21:09:37 +00:00
he
0a3962423b
Refer to the common m68k procfs_machdep.c instead of the x68k one,
...
which has now been removed.
2004-11-17 09:01:38 +00:00
christos
ee21460344
moved to m68k/m68k
2004-11-16 01:24:01 +00:00
christos
527610e2db
moved from x86k/x68k
2004-11-16 01:21:45 +00:00
martin
ddde12b011
Add bus_space_region_stream* functions (verbatim copy from sparc64).
...
Fixes PR port-sparc/28302. OK'd by pk.
2004-11-15 10:18:58 +00:00
christos
4be762fee1
Use common procfs_machdep.c
2004-11-14 19:10:56 +00:00
christos
8eb2aff618
Delete empty function.
2004-11-14 19:10:03 +00:00
christos
f65821a933
Remove copy of empty function.
2004-11-14 19:09:01 +00:00
christos
10f45207fd
Use shared file.
2004-11-14 19:08:13 +00:00
christos
a0138ea436
Use common procfs_machdep.c
2004-11-14 19:04:44 +00:00
christos
1666a373fd
Delete copy of empty function.
2004-11-14 19:03:50 +00:00
christos
9e909da589
use the common procfs_machdep.c
2004-11-14 19:03:06 +00:00
christos
accc5fc2e1
Delete copy of empty function.
2004-11-14 19:02:26 +00:00
christos
f9258cf2bd
Eliminate copies of functions that do nothing.
2004-11-14 19:01:22 +00:00
christos
6e77b72448
use the common procfs_machdep.c
2004-11-14 18:59:50 +00:00
christos
f19f4f121f
Add CPU/FPU information from Radek Kujawa
2004-11-14 18:58:22 +00:00
uwe
61e6610474
Fix several typos in comments.
2004-11-14 15:45:02 +00:00
sekiya
ad7705ec91
Due to space limitations, we can't embed a three-meg ramdisk installation image
...
into an IP12 kernel.
Remove; installation procedure will have to be GENERIC kernel using sysinst
from a NFS filesystem.
2004-11-13 09:04:28 +00:00
grant
068c31fe44
tweak an error message.
2004-11-13 08:12:50 +00:00
sekiya
a061928d83
Add INSTALL and GENERIC kernel configuration wrappers for IP12 family.
...
Note that devices are defined in the IP2x configuration file; the IP12 is
99.5% the same as the IP20/22/24. Indeed, the only reason to have a separate
config file for IP12 is to sort out the MIPS1/MIPS3 locore bits.
To that end, the wrappers include the IP2x GENERIC config, undefine a few
directives, and define the appropriate bits for IP12.
2004-11-13 03:20:37 +00:00
sekiya
07c1fbd927
Use 8-bit SEEPROM addressing mode on the 4D/3x models. 6-bit might be used
...
on IP6, but we don't support them (and probably never will).
2004-11-12 23:28:05 +00:00
sekiya
c37efd2daa
Print board identification, same as we do on the IP2x machines.
2004-11-12 23:01:01 +00:00
he
60c4c90899
Add casts to unsigned char for the arguments to the ctype.h macros/functions.
2004-11-12 10:18:46 +00:00
he
cf13121ba3
Add a cast to unsigned char for an argument to toupper().
2004-11-12 09:52:15 +00:00
jklos
befeef393b
Add comments for OFB_ENABLE_CACHE (doesn't work on iMacs) and awacs
...
(causes lockups). OK'd by Tsubai Masanari (port maintainer).
2004-11-12 02:23:09 +00:00
soren
96156c60bf
Add USB device controller register names.
2004-11-11 10:11:40 +00:00
christos
30fc143afa
Add COMPAT_BSDPTY to the rest of the config files.
2004-11-10 17:54:02 +00:00
christos
eec07087aa
Add COMPAT_BSDPTY on all the kernels that have COMPAT options.
2004-11-10 17:25:21 +00:00
jmc
97b060e9aa
This needs u16/u32/u64 defined if it's going to include internals (otherwise
...
it has to load hypervisor.h which has all sorts of other problems assuming
_KERNEL). Provide the defs before including hypervisor-if.h and then turn
them off afterwards (ala the same as hypervisor.h does
2004-11-10 02:52:11 +00:00
kent
68ec3173b5
remove mixer setting code in repulse_attach() because ac97_attach() does it
2004-11-09 16:18:58 +00:00
mbw
57baf75956
Reverting.
...
Apparently these patches cause problems.
2004-11-08 17:36:07 +00:00
kleink
9b087e52c7
From machdep.c:
...
revision 1.173
date: 2004/11/08 16:11:02; author: kleink; state: Exp; lines: +3 -3
In cpu_getmcontext(), initialize the mcontext_t storage with 0 (not '0').
Reported by Arto Huusko.
2004-11-08 17:05:37 +00:00
kleink
9322be4ef5
In cpu_getmcontext(), initialize the mcontext_t storage with 0 (not '0').
...
Reported by Arto Huusko.
2004-11-08 16:11:02 +00:00
petrov
c637afa99a
Don't compile sparc64_ipi functions when UP.
2004-11-08 08:55:43 +00:00
wiz
f037e2c174
Pasto fix.
2004-11-08 00:49:19 +00:00
christos
1e31f0a642
Use .S for assembly files instead of .s
2004-11-07 21:58:45 +00:00
christos
02c080af8b
Misc cleanups.
2004-11-07 21:56:57 +00:00
mbw
7f3392aa22
Add disklabel recognition for another Apple file type
...
"BZB_ROOTFS_NEW 0xc000"
Also closes PR 10046
2004-11-07 04:24:33 +00:00
christos
aefec4290d
Don't use "int" to represent lengths; this is what size_t is for. This
...
does not change the ABI since we don't have 64 bit mips yet.
2004-11-06 23:22:43 +00:00
ragge
d26e77c79f
Make match() fail if this is not a DWLPX (i.e a DWLMA).
...
XXX - DWL* type should be checked in kftxx.c.
This avoids a panic if the device is not a DWLPX.
2004-11-04 19:22:28 +00:00
scw
06375beb5f
Fix mbr_label_locate() to return '1' on success rather than the '0'
...
leftover from the call to biowait(9).
2004-11-03 12:21:04 +00:00
wiz
9589a2f43c
Grammar fix in comment.
2004-11-01 23:20:42 +00:00
he
0e9a54d054
Follow up on the constification of audio_hw_if, to fix build
...
problem for vs.c.
2004-10-31 22:41:23 +00:00
martin
29e38c8b5e
When doing a crashdump, counting already dumped MB per mem_region
...
is ... slightly confusing. Instead calculate the total size of the dump
beforehand and show the number of MB we still need to dump instead - just
like 386 does it.
2004-10-31 21:59:51 +00:00
he
6ef865c900
Include the <sys/bufq.h> header to allow these to compile again.
2004-10-31 12:52:55 +00:00
yamt
6e71418936
use __insn_barrier rather than homegrown equivalents.
2004-10-31 10:39:34 +00:00
mbw
7c1ffafac2
Change to fix PR 25689 for Swedish ADB keyboards
...
- KC(52), KS_Mode_switch,KS_Multi_key,
+ KC(58), KS_Mode_switch,KS_Multi_key,
2004-10-30 20:13:15 +00:00
thorpej
fc44282f79
Use elf32-hppa-netbsd output format.
2004-10-30 18:38:38 +00:00
thorpej
e9818f5b5e
When adding/deleting multicast addresses, only whack the address
...
filter if the interface is marked RUNNING.
Fixes kern/27678.
2004-10-30 18:08:34 +00:00
yamt
18f717bb90
constify audio_hw_if, midi_hw_if, and radio_hw_if.
2004-10-29 12:57:15 +00:00
yamt
05f25dcc2a
move buffer queue related stuffs from buf.h to their own header, bufq.h.
2004-10-28 07:07:35 +00:00
perry
acd0ac9fc4
replace a tab with a space so commenting out auacer is more
...
aesthetically acceptable.
2004-10-26 19:52:23 +00:00
xtraeme
0ef90c1bfc
Fix typo: labe -> label.
2004-10-26 01:09:25 +00:00
hannken
12c30b8690
Add speedstep support for Dothan processors.
...
From Steven J. Dovich via PR#26342.
Tested on "Intel(R) Pentium(R) M processor 1.60GHz".
2004-10-25 15:42:24 +00:00
martin
5c7441e83b
No need to clear %o1 when returning a 64 bit integer from pseg_get if we
...
are compiling for a 64 bit kernel.
2004-10-25 10:42:48 +00:00
skrll
22f25588af
s/Id/NetBSD/
2004-10-24 07:12:40 +00:00
skrll
e0658593c2
Fix the argument to KERNEL_PROC_LOCK/KERNEL_PROC_UNLOCK.
2004-10-24 06:58:14 +00:00
heinz
eb3298f1fb
Follow the change done for port prep, revision 1.50. This makes output from
...
the autoconfiguration visible again. (Ok'd by Chuck Silvers).
2004-10-24 00:17:20 +00:00
yamt
c0ebe301d7
don't reference kernel_lock directly.
2004-10-23 21:27:33 +00:00
yamt
d82d2638a7
__cpu_simple_lock: loop without locking cache or asserting LOCK#.
2004-10-23 21:25:22 +00:00
yamt
fa29ea9740
to determine if an interrupt needs to grab the kernel lock or not,
...
check interrupt's own ipl rather than cpu's current ipl.
2004-10-23 21:24:05 +00:00
thorpej
f9403749b7
Use the new BTINFO_BOOTWEDGE bootinfo to discover the booted disk and
...
wedge.
2004-10-23 17:20:59 +00:00
thorpej
0798da74ba
Add support for passing booted wedge information to the kernel.
2004-10-23 17:20:04 +00:00
thorpej
dc2f2fbe74
Centralize the declaration of booted_device and booted_partition.
2004-10-23 17:07:37 +00:00
augustss
0c21c79cc5
s/uax/axe/
2004-10-23 14:00:50 +00:00
augustss
c29a55f981
Add cdce(4).
2004-10-22 13:10:20 +00:00
wrstuden
6f8b7762c6
Now that we have ofwboot load at 0xe00000, it doesn't make sense for
...
this kernel to load at 0x800000 - move back to the default and we
have around 13 MB of space for the kernel.
2004-10-21 21:53:58 +00:00
wrstuden
df1f02ad54
Now that we have ofwboot load at 0xe00000, it doesn't make sense
...
for this kernel to load at 0x800000.
2004-10-21 21:52:51 +00:00
augustss
e93cdd6905
Add a gross hack to route the ECHI interrupt on the Sharp MM20.
...
You can read the long and sad story about the BIOS in a comment.
2004-10-21 17:12:41 +00:00
fvdl
5febc5eef5
Fix thread context switching to take the stack ABI into account.
...
From Wolfgang Solfrank.
2004-10-21 16:49:47 +00:00
simonb
83cddbc21f
Flesh out some comments in the incomplete "smart" version of
...
mips_user_cacheflush().
2004-10-21 03:15:13 +00:00
scw
ea99c85462
Add dmoverio
2004-10-20 10:08:34 +00:00
thorpej
42b8fac3b8
Move boot device detection code from i386 and amd64 ports to x86_autoconf.c.
...
Rename i386_alldisks and x86_64_alldisks to x86_alldisks, adjust other
references to compensate.
2004-10-20 04:20:05 +00:00
lukem
58e9698928
enable ipw* (Intel PRO/Wireless 2100). (requested by hubertf)
2004-10-19 05:44:25 +00:00
uwe
e9f575c48c
First step towards bus_space - wrap register accesses into macros.
...
Same object code is generated.
2004-10-19 02:12:21 +00:00
uwe
4866d0ee50
KNF cosmetic. Same object code is generated.
...
Use continue for explicit empty loop body.
Use for (;;) instead of while (1).
Fix an indentation glitch.
2004-10-19 00:10:33 +00:00
heinz
b804d8c240
Remove trailing argument list from #undef of divrnd macro to enable build
...
with gcc3 and -Werror.
2004-10-16 14:43:40 +00:00
he
b0a1d8f11d
Increase the pmax ramdisk size with 100KB, so that the contents
...
fits again.
2004-10-15 15:06:37 +00:00
thorpej
32ca684d72
match_harddisk(): Open RAW_PART, not the booted partition; we're
...
only performing the ioctl to fetch the disklabel.
2004-10-15 06:18:47 +00:00
bouyer
43d3408b53
In auxio_blink(), only toggle the AUXIO_LED_LED bit, don't clear the others.
...
It looks like bit 3 control the on-board le's link test, clearing it breaks
the interface (no link detected on the remote end). bit 3 is defined as
AUXIO4M_LTE (link-test enable) for sun4m systems (maybe all the AUXIO4M_*
bits are valid on the Ultra/1 too ?).
Tested on Ultra/1 and Ultra/5, approved by Martin Husemann and Matthew Green.
Should fix port-sparc64/25039 by Lubomir Sedlacik.
2004-10-14 17:58:06 +00:00
mhitch
5760e71352
The gcc3 compiler optimized away writing character data to the Cirrus chip,
...
which results in a blank display - making it rather difficult to do an
install or upgrade when using a Cirrus-based display. Change the pointer
used to write the character and attribute to volatile. The console screen
now shows data and is usable.
2004-10-14 04:14:26 +00:00
snj
ce44fe4282
Fix some comment typos and a spelling error.
2004-10-14 01:45:54 +00:00
gavan
0560d8b947
Initial import of iyonix port.
...
The Iyonix is a desktop machine from Castle Technology, based on a 600MHz
XScale[tm] 80321 processor.
* Uses the bootloader from NetBSD/acorn32, which is now 32-bit compatible.
* Currently boots multiuser with a serial console.
* Device support is not yet complete.
With help from abs.
2004-10-13 23:28:34 +00:00
christos
e0e0bf3120
PR/27218: Kirk Russell: kernel incorrectly identifies a KA692 CPU as a
...
KA694 during boot
2004-10-11 01:00:10 +00:00
jdolecek
4cfd693b66
allocate major for alpq - PR port-cobalt/17675
2004-10-10 20:28:29 +00:00
augustss
8ada967637
Add auacer.
2004-10-10 16:39:36 +00:00
yamt
6b5cc3859a
pmap_pageidlezero: use sse2 non-temporal store insn if available
...
to avoid undesired cache pollution.
2004-10-10 09:55:24 +00:00
yamt
61c1570d03
pmap_pageidlezero: update a function name in a panic message.
2004-10-10 09:54:46 +00:00
yamt
a0fe4d1b0a
remove a stale comment.
2004-10-10 09:53:59 +00:00
yamt
8e520446c5
pmap_zero_page, pmap_copy_page, pmap_pageidlezero:
...
preset PG_M and PG_U where appropriate to eliminate pte writebacks.
from freebsd.
2004-10-10 09:53:23 +00:00
yamt
83d9ffa7e6
pmap_enter, pmap_clear_attrs: minor optimizations.
2004-10-10 09:52:29 +00:00
scw
ca40f65ce1
Apply patch provided by Hiroki Nakano in PR kern/27159 to fix
...
compilation with DEBUG_DMA defined.
2004-10-06 08:59:40 +00:00
he
32dfb50ca9
Track the change of int -> paddr_t for the arguments to the ARCBIOS
...
routines.
2004-10-04 19:59:51 +00:00
toshii
5b66414bae
Add a socket_settype function to match with recent pcmcia code change.
2004-10-02 23:42:57 +00:00
sekiya
2ea60ebc6b
s,uint32_t,paddr_t,g. Noticed by tsutsui@
2004-10-02 08:53:09 +00:00
sekiya
53ad2f0aab
Use the mips3 bus functions on IP30. Recognize the IP30 as a supported* SGI
...
platform.
* For extremely small values of "supported". arch/mips/* needs a lot of work
yet for MIPS64.
2004-10-02 03:19:00 +00:00
sekiya
34bdfea7c4
Move the ECOFF definition from the INSTALL kernel to the GENERIC kernel --
...
it's possible that someone might want to run an IP20 diskless.
Pointed out by simonb@
2004-10-01 07:40:59 +00:00
sekiya
5e061c633c
s,#ifdef MIPS3,#if defined(MIPS3) || defined(MIPS64),g
2004-10-01 07:16:57 +00:00
sekiya
82ca9dba92
Create an ecoff kernel only if WANT_ECOFF="yes".
...
ECOFF kernels are really only useful for netbooting; our disk bootloader handles
ELF. Therefore, define WANT_ECOFF for INSTALL32_IP2x only.
2004-10-01 07:05:25 +00:00
sekiya
1723326ecb
Set LP64 default to "no".
2004-10-01 07:00:12 +00:00
sekiya
57e4e59495
Rework previous slightly, so that ld is passed the right flags for 64-bit mode.
2004-10-01 06:46:40 +00:00
yamt
048b624802
make l_holdcnt assertions more verbose.
2004-09-30 21:32:27 +00:00
soren
8d969498b4
Correct the names of a few system types.
2004-09-29 07:37:02 +00:00