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
sekiya
d66ecfb68e
Allow arguments to as/ld to be specified in the kernel config file. Provide
...
a mechanism to override ranlib.
2004-09-29 06:03:03 +00:00
sekiya
faa2f31603
Abbreviate identification message to fit in 80 columns.
2004-09-29 05:13:39 +00:00
sekiya
0603553bbb
Compile the 64-bit bootloader.
2004-09-29 04:57:31 +00:00
mrg
7f549a8679
allow the LED blinker to be disabled via do_blink.
2004-09-29 04:45:05 +00:00
sekiya
d12d5dc3e0
Add a table mapping IPxy to ABI and load address.
2004-09-29 04:27:41 +00:00
sekiya
551d2b9aa9
Use ANSI function declarations.
2004-09-29 04:06:51 +00:00
sekiya
6f2cb625f4
Use C-style comments.
2004-09-29 03:21:14 +00:00
sekiya
8c64b0776c
Various fixes:
...
* clean up EISA detection logic,
* really fix config_found_ia() usage (from drochner@),
* sprinkle a bit of KNF.
2004-09-29 03:11:28 +00:00
sekiya
6a4c72d1af
Add COMPAT_20
2004-09-29 02:50:42 +00:00
reinoud
a64c647b71
Cleanup of main config file:
...
1) Fix small indenting issues
2) Removal of audio* at ... and midi* at ... entries and replace all them with
audio* at audiobus?
midi* at minibus?
3) Adding of USB audio/midi and IrDa entries
2004-09-28 23:39:37 +00:00
reinoud
7f6b7d1a06
wdc shadow registers need to be initialised later.
...
Request pullup for 2-0 nessisary?
2004-09-28 22:12:06 +00:00
yamt
a47bee9f77
don't expose cpu_info to userland.
2004-09-26 21:44:26 +00:00
chris
906b93ef09
Fix for cd disklabel issues on arm machines.
...
Because we no longer return an error message when no disklabel was found
the scsipi/cd.c code took the label we generated. The problem is that the
readdisklabel code was clearing the partition information, which included
the default partition information setup by the cd.c code. Previously when
no disklabel was found we returned an error, which caused the cd.c code to
generate a new default label which included an a partition.
According to the man page for readdisklabel:
Unspecified fields in lp should be set to zero
Therefore we have no reason to clear the partition info, as it's already
clear or contains useful default partition info.
This means if we don't find a label on disk, the default label is left as
is. I would expect the driver to have setup a much more sensible default
label than we could fake at this level.
Also don't hard code the number of partitions to the maximum. This better
matches other platforms (i386)
2004-09-26 11:57:53 +00:00
yamt
857913deac
include sys/cpu_data.h only if defined(_KERNEL)
2004-09-25 22:08:48 +00:00
chris
223a229a7a
Following a discussion with dsl, revert the last change.
...
A better fix will be forth coming.
2004-09-25 18:54:36 +00:00
chris
c0ffe8e4d5
When reading the disklabel if we fail to find one, return an error.
...
This should fix PR's 26564 and 26809.
This allows CD installs on cats to work, as a cdxa partition is now
faked, so sysinst can mount it.
This does go against changes made for PR 21408, as it will cause the error
cd0: no disk label
to appear when running disklabel cd0.
Really readdisklabel's API should be updated to allow better error returns,
such that the driver can choose to fake the label, if readdisklabel didn't
find one.
2004-09-25 18:24:55 +00:00
he
48936f8f33
Add another set of braces in initialization to track factoring out
...
of MI cpu_data.
2004-09-25 12:24:53 +00:00
yamt
7c63ceab48
don't expose cpu_info and friends to userland.
2004-09-25 11:08:47 +00:00
yamt
17dfcbf73e
fix a typo in a comment.
2004-09-25 03:05:23 +00:00
nathanw
3a5631a0b6
PXA255 has 85 GPIO pins, not 81.
...
(The first revision of the manual listed the wrong number, although it had
all 85 in the table).
2004-09-24 17:30:22 +00:00
tron
ce2c46e673
Because "paddr_t" is not a pointer type initialize "pa" to 0 and not NULL.
2004-09-23 21:30:36 +00:00
tron
bcb61538fb
Initialize variable "pa" to NULL in pmap_extract() to fix a compiler
...
error while building a debug kernel. Problem pointed out by S.P.Zeidler
on "port-amiga" mailing list.
2004-09-23 21:10:31 +00:00
tsutsui
ef820af6db
Rename if_mec_mace.c -> if_mec.c.
...
This file contains not only an attachment but whole driver functions.
2004-09-23 14:45:20 +00:00
tls
849c42925b
Changes from Christian Limpach to improve timekeeping on NetBSD/xen by
...
actually adjusting the time correctly (calling hardclock as needed, not
just blindly every time Xen schedules us) based on Xen's idea of the
time in the shared page.
Xen source repo change info:
ChangeSet
2004/09/22 13:47:22+01:00 cl349@freefall.cl.cam.ac.uk
Fix time.
netbsd-2.0-xen-sparse/sys/arch/xen/xen/clock.c
2004/09/22 13:47:21+01:00 cl349@freefall.cl.cam.ac.uk +28 -3
Don't call hardclock on spurious timer interrupt and call hardclock
for missed interrupts.
netbsd-2.0-xen-sparse/sys/arch/xen/conf/XEN
2004/09/22 13:47:21+01:00 cl349@freefall.cl.cam.ac.uk +0 -1
Don't need custom HZ value any longer.
: ----------------------------------------------------------------------
2004-09-23 02:24:22 +00:00
kent
54cf6460d6
ac97_host_if::reset() returns non-zero value if codec reset fails, and
...
ac97 is not attached in that case.
PR: kern/26973
2004-09-22 12:20:24 +00:00
yamt
d2fe4b34bb
move some per-cpu data definitions to MI place so that they can be modified
...
without touching all ports. discussed on tech-kern@.
2004-09-22 11:32:02 +00:00
yamt
96d1da145d
fix printf formats to match with sys/buf.h 1.75.
2004-09-22 09:56:18 +00:00
drochner
a8f458743f
Replace the last spurious ISACF_IRQ_DEFAULT.
2004-09-20 17:31:57 +00:00
drochner
231121a8df
another pointless ISACF_IRQ_DEFAULT - that's just
...
a -1
2004-09-20 17:00:39 +00:00
drochner
96f4400c0c
remove an occurence of ISACF_DRQ_DEFAULT where it doesn't
...
belong
(I didn't find where this piece of code is made use of,
likely stale stuff.)
found by Havard Eidnes
2004-09-20 16:57:27 +00:00
scw
ac3ac35ecb
MPC8xx DC_CST is SPR 0x238, not 0x230.
...
Reported by Jared Momose in private email.
2004-09-20 11:29:19 +00:00
chs
b242249052
add driver for harmony audio. from openbsd, adapted for netbsd by me.
2004-09-19 23:03:34 +00:00
chs
b42337cb2a
fix optimized compilation.
2004-09-19 23:00:29 +00:00
he
cf6b002f48
Fix build problem -- track the change to <sys/buf.h>.
2004-09-19 19:09:24 +00:00
itohy
05d92b70c7
Make sure the string dollar NetBSD doller is stored literally.
2004-09-18 03:32:30 +00:00
mycroft
18f4edd320
We don't need to handle the "cold" flag here.
2004-09-18 02:21:33 +00:00
itohy
829103b30f
Make it work again.
...
Hi, drochner!
2004-09-17 23:59:33 +00:00
enami
006eb65868
s,contro,&l, in a comment.
2004-09-17 23:32:09 +00:00
skrll
f7155e40f6
There's no need to pass a proc value when using UIO_SYSSPACE with
...
vn_rdwr(9) and uiomove(9).
OK'd by Jason Thorpe
2004-09-17 14:11:20 +00:00
drochner
ea827e5146
forgot one ISACF_*_DEFAULT conversion, noticed by Nick Hudson
2004-09-16 16:08:27 +00:00
rumble
b1a9752c01
Correct a few comment typos that have propagated through the
...
tree.
2004-09-16 03:57:10 +00:00
thorpej
64c6842169
The pss driver has a comment at the top saying that it won't
...
even compile, so don't bother trying.
2004-09-15 15:54:23 +00:00
scw
17d7b87515
It helps to call fpu_sqrt() when dealing with the frsqrte instruction.
2004-09-15 07:04:21 +00:00
tls
74ec9a5fcc
Actually mix samples into the kernel RNG pool. There's a buglet here: all
...
disk samples are reported as belonging to the first disk.
2004-09-15 04:55:21 +00:00
drochner
2db688402b
adapt to ISA "unknown address" namespace separation (purely mechanical,
...
as far as "grep" reaches)
2004-09-14 20:32:48 +00:00
drochner
1134c44162
adapt to ISA "unknown address" namespace separation
2004-09-14 20:25:05 +00:00
drochner
61ac7027b3
include "locators.h" explicitely (don't rely on isavar.h doing so)
2004-09-14 19:57:37 +00:00
jdolecek
3ea04717bf
do not include "compat/aout/files.aout", COMPAT_AOUT is soon to be removed
2004-09-14 16:51:57 +00:00
drochner
6453b0fcb2
fix wrong asm .end names which caused assembler warnings,
...
from Nicolas Joly per PR port-alpha/26945
2004-09-14 11:27:22 +00:00
simonb
c5b66303ed
White space nit.
2004-09-14 09:00:24 +00:00
simonb
357f38915a
Tidy up a little.
2004-09-14 08:22:33 +00:00
fvdl
2a1aa1e67d
Remove some devices (sync with i386).
2004-09-13 22:33:47 +00:00
drochner
df80bed99c
put EISA attachment specific code inside "#if NPCEB > 0",
...
to avoid references to EISA variables if "pceb" is not defined in
kernel configurations, and save some bytes
tested by Havard Eidnes (or his colleague:-)
2004-09-13 18:42:59 +00:00
drochner
11ff62378b
add "joy"
2004-09-13 17:26:28 +00:00
drochner
103deb3575
use config_found() instead of config_found_sm() if no submatch
...
function is used
2004-09-13 15:14:12 +00:00
drochner
a02e2488a0
autoconf cleanup: turn xxxsubmatch() functions into the locator
...
passing variants
2004-09-13 14:57:31 +00:00
drochner
a48272e3d0
pass locators to tlsbsubmatch()
...
XXX the "offset" locator is unused appearently, assume that "0"
is a sensible value
2004-09-13 14:48:46 +00:00
drochner
cb1ceb0bce
remove "pcibus" and "isabus" from "mainbus" -- neither of them
...
attaches directly
cleanup a comment
2004-09-13 14:38:37 +00:00
drochner
b1ce7363e0
clean up the questionable use of sabtty_match() as submatch function
...
(with no useful contents), and implement a real submatch function instead
2004-09-13 14:32:38 +00:00
drochner
6c73a9561e
nothing attaches to a "sabtty", so there is no need for an
...
interface attribute
2004-09-13 14:29:38 +00:00
chs
cbc396ce30
work around a binutils bug where converting ELF kernels to a.out with objcopy
...
produces corrupted binaries when the link_set_* sections extend into another
page after the end of the .text section by using a generated an ldscript that
puts all the link_set_* data into the .text section in the first place.
2004-09-13 09:39:40 +00:00
jdolecek
8c73815634
remove the commented COMPAT_AOUT - it's not present in the other
...
kernel configs neither
2004-09-12 12:49:22 +00:00
dsl
4b313d03d3
Need %ah == 0 (not 0xff) in order to find the correct partition table entry
...
when simulating a key press in the non-interactive mbr code.
Fixes bug introduced in rev 1.10 - older versions worked because %ah
happened to be 0!
Fixes PR bin/26919
2004-09-12 08:41:47 +00:00
reinoud
a4ea5c43d3
Add wsmux and keyboard RAW support for better X
2004-09-10 21:09:57 +00:00
reinoud
52a3b4ec4a
Add USB-2 support to Alpha
2004-09-10 21:09:06 +00:00
nathanw
3a1db40022
Spelling in comment.
2004-09-10 15:27:10 +00:00
jmmv
5a9d24809c
Set valid values for the (commented out) WS_DEFAULT_COLATTR and
...
WS_DEFAULT_MONOATTR options. This way, if a user blindly uncomments
them, he will not get a build failure. Addresses PR kern/26503.
2004-09-08 11:38:22 +00:00
thorpej
9946bbdb7a
Use CPUFLAGS for codegen options.
2004-09-06 23:41:21 +00:00
uwe
7caf846e65
Add lxtphy.
...
Requested in PR port-hpcsh/26863.
2004-09-06 23:32:59 +00:00
is
0297f3ae8c
While in graphics mode, short-circuit text-mode functions that would destroy
...
graphics state. Same fix as ite_cl.c 1.4.
Problem reported, and original fix provided, by Pawel Chwalowski in PR 26788
(but had to be recreated because the original patch didn't apply due to
a whitespace problem).
2004-09-06 18:12:54 +00:00
drochner
ea081c8468
fix a botch in config_found->config_found_ia transition,
...
by Havard Eidnes
2004-09-06 12:38:17 +00:00
sekiya
8590eac465
Use the mace interrupt handler for PCI interrupts.
...
From KIYOHARA Takashi
2004-09-06 07:24:06 +00:00
dsl
4a83eca5d5
Save 2 more bytes (by adjusting the ERR_NO_LBA setup).
...
Use up all the space by adding a short banner message.
'Fn diskn' for bootsel and 'NetBSB MBR boot' for the non-bootsel code.
2004-09-05 21:42:43 +00:00
sekiya
7e244e5e53
Oooops, iaa.iaa_name must be initialized.
2004-09-05 13:32:10 +00:00
sekiya
847a930d95
Use config_found_ia() rather than config_found().
2004-09-05 11:48:34 +00:00
manu
6e3c639957
IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
...
tech-net@
2004-09-04 23:29:44 +00:00
tsutsui
52b46dcf6f
- Use ANSI function declarations and make some functions static.
...
- Some KNF
2004-09-04 13:43:11 +00:00
tsutsui
378871cd27
Include ioconf.h to declare struct cfdriver.
2004-09-04 11:28:32 +00:00
thorpej
e489b76d88
More complete fix for overriding CPUFLAGS and also apply fix to bootxx,
...
from Valeriy Ushakov.
2004-09-03 21:55:17 +00:00
thorpej
f340ce91f0
Override CPUFLAGS to empty so that a CPUFLAGS setting in the user's
...
mk.conf don't affect the C options we need to build the boot loader.
2004-09-03 18:25:04 +00:00
leo
86c572bcee
Correct typo in copyright notice. (noticed by Hubert Feyrer).
2004-09-03 14:07:57 +00:00
scw
ecadc37220
Fix the rcsid.
2004-09-02 12:23:09 +00:00
scw
db255697d0
Apply suggested changes from PR port-powerpc/24830 arch/powerpc/ibm4xx:
...
Bad register constraints in copyin(), copyout(), copyinstr(), copyoutstr(),
and delay().
2004-09-02 08:22:58 +00:00
tacha
163c7d245a
Make this compile again.
2004-09-02 02:18:38 +00:00
dsl
ab6077db18
Remove the functionality added in rev 1.7.
...
With no menu items the mbr_bootsel code will wait for the timeout (default
10 seconds) and then boot the default device - usually the active partition.
Forcing the 'active' partition was wrong - jmmv has a system which needs
to boot from hd1 where hd0 has no mbr partition info.
I suspect the problem I though rev 1.7 fixed was actually caused by
disklabel copying sector zero of the disk to sector zero of the partition!
Gains another 9 bytes of free space, mbr_bootsel now has 20 free bytes.
2004-09-01 20:31:20 +00:00
tsutsui
221c318874
- Adapt to the MI wdc driver changes which added the notion of
...
"shadow registers":
http://mail-index.netbsd.org/source-changes/2004/05/25/0048.html
- While here, also fix accesses to CTL regsters to use the correct address.
Now the cobalt bootloader works again.
XXX Maybe we should make this SA wdc driver MI...
2004-09-01 15:54:39 +00:00
uwe
af4511cccc
Force STRIPFLAG to be empty after bsd.own.mk is included, so that
...
any value set in /etc/mk.conf is overriden.
2004-08-31 22:57:13 +00:00
simonb
ac20296fee
Remove the unused MKTTE macro.
2004-08-31 01:06:12 +00:00
tsutsui
0f0f2c4943
Remove .mdebug.abi32 and .comment sections created by binutils-2.14
...
on converting kernels into ECOFF.
ARC BIOS may be confused by these sections without valid address.
2004-08-30 16:08:24 +00:00
drochner
070747cba1
remove the (superfluous) definition of "cpu" as an interface attribute
2004-08-30 15:35:20 +00:00
drochner
46289e1fef
Phase out the use of a string as first "attach args" member to control
...
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.
2004-08-30 15:05:15 +00:00
thorpej
d1e0f4a2a0
Add openfirm.
2004-08-29 17:40:12 +00:00
thorpej
c409cf7317
Make this compile again.
2004-08-29 17:37:03 +00:00
thorpej
f4d9e6500d
Add a local prototype for a called-from-asm function.
2004-08-29 17:36:46 +00:00
tsutsui
4c0e18d694
- rename comcnprobe() and comcninit() to com_mainbus_cnprobe() and
...
com_mainbus_cninit() and move these cn functions from cobalt/console.c
to dev/com_mainbus.c
- call cninit() only once
- remove unneeded includes
- use ANSI function decls
2004-08-29 16:14:15 +00:00
thorpej
6c08646cb8
Garbage-collect pagemove(); nothing use it anymore (YAY!!!)
2004-08-28 22:12:40 +00:00
thorpej
605050704a
Use ANSI function decls and static.
2004-08-28 22:06:28 +00:00
thorpej
cfc755477e
Minor style nit.
2004-08-28 21:56:00 +00:00
thorpej
606336a153
De-__P
2004-08-28 21:31:07 +00:00
thorpej
63a3547c69
- De-__P.
...
- Also define DB_ELF_SYMBOLS and DB_ELFSIZE.
2004-08-28 21:24:20 +00:00