Commit Graph

39616 Commits

Author SHA1 Message Date
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
thorpej
e3e985a071 De-__P 2004-08-28 19:46:41 +00:00
thorpej
2ae3d56b20 fix typo. 2004-08-28 19:44:29 +00:00
thorpej
3083c70ccc Use ANSI function decls, static, and const. 2004-08-28 19:11:19 +00:00
jdolecek
64969161df use uvm_grow() to update stack segment size on stack page fault instead
of MD code
2004-08-28 17:53:00 +00:00
thorpej
8657dbc0c8 Remove the last vestiges of COMPAT_NOLABEL. It's been 10 years; label
your disks already.
2004-08-28 17:45:24 +00:00
thorpej
8ca927b486 Use ANSI function decls, static, and const. 2004-08-28 17:37:00 +00:00
tsutsui
106c596dc1 - Use bus_space(9) to access PCI configuration registers on GT64111.
- Remove unused pci stuff from mainbus.c.
2004-08-28 13:33:31 +00:00
tsutsui
9f92256852 - Reset timer0 of GT64111 in gt_attach() and start it
in cpu_initclocks(9) via a callback function.
  Fixes the "hardclock(9) is called before cpu_initclocks(9)" problem
  reported by KIYOHARA Takashi on port-cobalt.
- Use bus_space(9) functions to access GT64111 registers and
  add register definitions for GT64111 in gtreg.h.
  (XXX this could be in sys/dev/marvell?)
- Move microtime(9) from machdep.c to clock.c, and read timer0 register
  via a callback function. Also change microtime(9) like other ports
  to guarantee that the time will be greater than the value obtained
  by a previous call.
2004-08-28 12:32:48 +00:00
thorpej
523f87a2ce PTDpaddr -> PDPpaddr 2004-08-27 03:51:34 +00:00
drochner
5b0932cc68 kick out the ioasic offset check which happens in submatch() now 2004-08-26 18:07:12 +00:00
jkunz
70b14a8138 Add support for shareing PCI interrupts and PCI-PCI bridges. 2004-08-26 16:52:27 +00:00
jkunz
1035c6af08 Import STI wscons(4) driver from OpenBSD and add new driver for PS/2
keyboard / mouse pots of LASI.
2004-08-26 16:48:06 +00:00
itohy
318777e22f Add njs to some generic config files (I tested on i386 and sparc64). 2004-08-26 14:33:01 +00:00
junyoung
581cbf8089 As suggested on tech-kern@ days ago:
* Get rid of PTmap, PTD, PTDpde, APTmap, APTD, and APTDpde from locore.S.
* Rename PTDpaddr to PDPpaddr, ptdpaddr in struct cpu_kcore_hdr to pdppaddr for consistency.
2004-08-26 10:12:33 +00:00
reinoud
b4f746a195 Increase space reserved for symbol space. As of the kernel i build it
needed at least a 255344 bytes while 242000 was reserved. Bumped it a few
kb higher to reduce symbol table fill too soon again.
2004-08-25 12:24:48 +00:00
he
b23dd66ac3 It's atac_pio_cap, not atac_PIO_cap. I wonder how I could get this
to compile earlier...
2004-08-25 10:40:15 +00:00
matt
e4726fc65d Add pmap counters for reclaimed pvos and for the times a pvo could not be
obtained.
Switch to EVCNT_ATTACH_STATIC*
In DEBUG/DIAGNOSTIC, decrement/increment pmap_pvo_enter_depth around pool
calls since they could possibly cause a recursion back into pmap_pvo_enter.
2004-08-24 21:31:49 +00:00
nathanw
05e0a219ae Don't prohibit DDB and KGDB together. 2004-08-23 20:55:03 +00:00
thorpej
8fa139d957 Use the RET macro, rather than "bx lr" unconditionally. Makes this file
compile again for the INTEGRATOR configuration.
2004-08-23 20:53:56 +00:00
jandberg
b58fddce90 Call wdc_init_shadow_regs() after data structures are filled in.
Idea monkeyed from a commit by <mycroft>; reviewed by <aymeric>.
2004-08-23 19:26:25 +00:00
fvdl
e8af4bc978 Keep ioapic in the correct order in the global linked list that stores
them. Fixes cases where the ACPI SCI int has to be guessed, because there
are multiple ioapics in the system.
2004-08-23 17:24:23 +00:00
lukem
a3135cf216 enable ipw* (Intel PRO/Wireless 2100) 2004-08-23 14:04:45 +00:00
junyoung
b13abba3f6 Include libi386.h for function prototypes. 2004-08-23 09:45:53 +00:00
junyoung
26231e86a1 * Nuke __P().
* No need to use 'extern' for function prototypes.
2004-08-23 09:41:59 +00:00
aymeric
a225650d5c postpone the calling of wdc_init_shadow_regs(), to follow MI changes.
Thanks to Jukka Andberg for finding that bug.
2004-08-23 08:54:39 +00:00
dsl
3a67f25b17 Use := when saving ${.OBJDIR) - then we get the correct value! 2004-08-23 06:54:04 +00:00
dsl
c48b68dc4d Need to use := when evaluating ${.OBJDIR}, then the correct value
is passed into the subdir builds and the 'lib' objects are correctly shared.
Fixes PR/26554
2004-08-23 06:52:04 +00:00
dsl
5084a397e4 Increase space for boot parameters - needed for specifying serial port
IO address and long keyboard translation map.
2004-08-23 06:50:21 +00:00
jandberg
a380c0363c pcf_io_map() was returning invalid bus space handles.
Generate them with bus_space_map() like suggested by <aymeric>.
2004-08-22 13:15:11 +00:00
junyoung
938fe5a686 Remove trailing spaces. 2004-08-22 06:46:34 +00:00
junyoung
905834c2fb Fix various typos in comments including ones that weren't noticed
for years.
2004-08-22 05:36:42 +00:00
rearnsha
d8574604b2 Support throwing signals to Thumb handlers. 2004-08-21 12:07:34 +00:00
rearnsha
9eb8699bc5 Don't fault if handed a Thumb address to disassemble. Simply print
out 'thumb insn' and punt.
2004-08-21 12:05:41 +00:00
rearnsha
b88c8e79ee Add support for prefetch and data aborts in Thumb code. 2004-08-21 12:04:17 +00:00
rearnsha
c8bb6ba9a9 Convert the coprocessor defines into an enum to avoid excessive
preprocessor hackery.  If supporting Thumb add an 18th undefined
handler for undefined instruction traps taken in Thumb state.  Kill
MAX_COPROCS and use NUM_UNKNOWN_HANDLERS instead.

Add support for breakpoints set in Thumb code and hand them off to
GDB as required.
2004-08-21 12:03:16 +00:00
rearnsha
6c37261ede Handle SWI's from Thumb code.
Note: this may need further work.  For the momement we unconditionally
convert a Thumb SWI insn into an ARM SWI with the operation code
zero-extended to 24 bits.  However, this should really be a property
of the emulation (how do we know that all emulated systems would want
to work this way?), but that would mean pushing all the handling down
into each of the emulators.
2004-08-21 11:57:36 +00:00
rearnsha
4cdf758fde Support Thumb applications 2004-08-21 11:52:25 +00:00
rearnsha
b7bc9f654f Support upcalls and entry points that are in Thumb state. 2004-08-21 11:49:33 +00:00
rearnsha
66780d9b11 ARM10 is an architecture 5 device (not 4).
If supporting architecture 5, enable Thumb code support.

Note: we could probably enable this for 4T processors as well, but
getting interworking right is much more tricky.
2004-08-21 11:08:20 +00:00
rearnsha
3e067d0cbc Add a breakpoint instruction for Thumb. 2004-08-21 11:03:51 +00:00
rearnsha
b9627c77bd Add STT_ARM_TFUNC (needed for the dynamic linker to handle Thumb
symbols).
2004-08-21 11:01:33 +00:00
rearnsha
0765a88c26 Define _ARM_ARCH_6, _ARM_ARCH_5 and _ARM_ARCH_4T, based on
architecture defines passed from the compiler.

Define RET and RETc macros for return and conditional return.  If BX is
available in the current instruction set then make use of it.

Note: these really are from the compiler's -march/-mcpu flags, not
from the kernel config, so they can be relied on in user space.
2004-08-21 10:59:41 +00:00
rearnsha
a64bc9e882 Define THUMB_INSN_SIZE. 2004-08-21 10:53:36 +00:00
he
1e7492c638 Make this compile again by removing a now-unused local variable
and picking up cmd_iot from the new register struct instead of the
channel struct.
2004-08-21 10:09:21 +00:00
nathanw
8b1b7c1c67 Check DDB before KGDB; if both are enabled, it's more useful to go to
DDB, because you can get to KGDB from there, but not the other way
around.
2004-08-20 21:38:35 +00:00
nathanw
584b896885 Nothing's wrong with having DDB and KGDB in the same kernel. 2004-08-20 21:33:57 +00:00
thorpej
26dfa7dd35 Comment out atabus; no ATA controllers or devices are configured in this
kernel.
2004-08-20 15:15:26 +00:00
wennmach
1b35cf3d9a o Split copyright into mycroft and UCB parts
o remove advertising clause from UCB part
2004-08-20 14:12:52 +00:00
thorpej
9cc521a148 Move most of wdc_softc into a new atac_softc structure that contains
info common to all types of ATA controllers.
2004-08-20 06:39:37 +00:00
simonb
2fe6a47d97 Add dependancies on assym.h for some assembly files so that
"make -j <bignum>" works without having to do a "make depend" first.
2004-08-20 05:34:47 +00:00
thorpej
1600c8b8cd - Add and use a CHAN_TO_WDC() macro to get the wdc_softc from an
ata_channel.
- Add and use a CHAN_TO_WDC_REGS() macro to get the wdc_regs from an
  ata_channel.
- Add and use a CHAN_TO_PCIIDE() macro to get the pciide_softc from an
  ata_channel.
- Add and use a CHAN_TO_PCHAN() macro to get the pciide_channel from an
  ata_channel.  (This one just hides a cast, and is really just for
  consistency with the others.)
2004-08-19 23:25:35 +00:00
chs
80c0e76172 implement pmap_pvo_reclaim(), which steals an existing non-wired pvo entry
for reuse, and use this in pmap_pvo_enter() when we can't allocate a new one.
2004-08-19 15:31:57 +00:00
junyoung
3d45791c36 Rename bootparams to boot_params for consistency. 2004-08-19 10:34:36 +00:00
tsutsui
efa3e6b66b Remove bogus TABs. (from OpenBSD) 2004-08-18 14:47:25 +00:00
drochner
c67a72f6ff make PCI devices attachable/detachable (as far as the particular drivers
allow), and allow to rescan a bus selectively (ie only the device/
function I'm looking at)
2004-08-17 23:20:10 +00:00
briggs
4634c8ef35 Get correct cache information for earlier VIA C3 models.
Mostly from PR kern/26689 submitted by Michael van Elst.
2004-08-17 15:27:46 +00:00
scw
ad271535d4 In _bus_dmamap_load_buffer(), honour the maximum segment size specified
when the DMA map was created.

The previous behaviour honoured the maximum segment size only when
coalescing adjacent segments.
2004-08-17 08:35:43 +00:00
rumble
d15d05328d Add some infrastructure to support HPC-based ethernet adapters
(E++):
 o The static configuration table now identifies by HPC offset.
 o Added sq(4) entries for IP12, IP20, and IP24.
 o Accomodated HPC revision forcing based on kernel config flags.
2004-08-17 00:57:42 +00:00
rumble
38bbaabc37 Add defines for the four possible HPC GIO bus addresses. 2004-08-17 00:48:08 +00:00
rumble
d023bcf042 Implement several changes that get my E++ (HPC1.5 GIO ethernet
adapter) to work on IP24:
 o Force HPC and GIO slot endianness.
 o Allow slots one and two to be masters and configure for
   realtime mode.

Also, while we're here move IP22 invariants into the IP22 case.

I suspect that IP20 will work as well since it exhibited the same
broken DMA that IP24 did before I flipped the master bit.
2004-08-17 00:44:39 +00:00
aymeric
7813bbed46 add fake bus_space_read_region_stream_4() and bus_space_write_region_stream_4()
macros to cope with the recent wdc_pcmcia changes
2004-08-16 10:23:43 +00:00
aymeric
990d2462b0 add a missing break in the EXC_MCHK|EXC_USER case in trap() 2004-08-16 10:16:16 +00:00
aymeric
e2de6e57a9 fix typo in comment 2004-08-16 10:12:40 +00:00
aymeric
9ed8629c70 . use ${SYSDIR} instead of relative paths so that tags links in subdirs work
. fix the links: target to work with objdirs
2004-08-16 10:10:46 +00:00
aymeric
66c464814b add a noop settype() method to the pcmcia_chip_functions to cope with the
recent changes in the PCMCIA code.
This is only compile-tested, but should work because we only support IO cards
on the A1200 for now.
2004-08-16 10:07:52 +00:00
dsl
523a1fe90e Define CONSADDR for pcio.c (continuing the same hack use for the other
parameters).
2004-08-15 22:10:50 +00:00
dsl
c1eeebc3dd Allow the com port base address to be specified by the user (via installboot)
rather than taking the value from the bios.
Should allow the system to use a serial console that is also a 'bios serial
console' and isn't in the bios serial port table.
Probably fixes (with a few other changes) PR port-i386/9236
2004-08-15 22:04:45 +00:00
dsl
c68c45c975 I challenged mycroft to optimise this code - and he found a spare byte... 2004-08-14 21:03:23 +00:00
uch
d5dcd091d7 HCAJ1 -> HCVJ 2004-08-14 15:38:25 +00:00
thorpej
4b51cecfc2 - Split the register handles out of struct wdc_channel into a separate
wdc_regs structure, and array of which (indexed per channel) is pointed
  to by struct wdc_softc.
- Move the resulting wdc_channel structure to atavar.h and rename it to
  ata_channel.  Rename the corresponding flags.
- Add a "ch_ndrive" member to struct ata_channel, which indicates the
  maximum number of drives that can be present on the channel.  For now,
  this is always 2.  Add an ATA_MAXDRIVES constant that places an upper
  limit on this value, also currently 2.
2004-08-14 15:08:04 +00:00
jdolecek
8ac2263519 constify 2004-08-13 21:45:03 +00:00
uch
579420e43b use HCAJ, HCVJ group instead of HCAJ1, HCVJ1C_JP 2004-08-13 15:55:14 +00:00
uch
9d15e929e7 recompile. 2004-08-13 15:52:28 +00:00
uch
5adb2fdc5d add WCE101 and WCE200 binary install target. 2004-08-13 15:51:45 +00:00
uch
986311dca4 add SH7707 2004-08-13 15:50:09 +00:00
uch
e659dc81a4 fix debug print. 2004-08-13 15:49:37 +00:00
uch
abe2d7cbc7 regen. 2004-08-13 15:49:13 +00:00
uch
7ee4f55250 add SH7707 and HP360LX. add HCAJ and HCVJ group for Sharp Telios 2004-08-13 15:48:51 +00:00
uch
643a469d36 set user specified console as default. 2004-08-13 15:48:21 +00:00
uch
00539717e3 add debug print. 2004-08-13 15:47:53 +00:00
simonb
384a2881c7 Fix a couple of niggles:
. Incorrect name in the kernel config ident lines.
. Call the commented out NetBSD 0.9 binary compat option "COMPAT_09" and
    not "COMPAT_10"(!).
2004-08-13 15:42:02 +00:00
tsutsui
e6be65a968 Adapt to NCR5380_USE_BUS_SPACE. 2004-08-13 12:54:44 +00:00
drochner
d9a2463d75 oops - forgot the isapnp attachment when I added joystick support
recently
fixes PR port-i386/26630 by George F. Costanzo
2004-08-13 08:45:25 +00:00
thorpej
ab20886f7b Don't bother with bits that tell of the presence of optional callbacks;
just check the function pointers for NULL.
2004-08-13 03:12:59 +00:00
sekiya
1a682ebd64 Add 64-bit ABI bootloader (for IP30). Needs a slightly modified toolchain
and a 64-bit-clean libkern.a; once those bits are committed, this should be
100% good to go.
2004-08-11 11:45:26 +00:00
sekiya
8a3d53f346 Start routine for 64-bit ABI. 2004-08-11 11:41:19 +00:00
mycroft
3ebcfd93ee Forget to reset to memory mode on power up.
The hd64465 looks a bit incomplete, but "not my problem".
2004-08-11 06:30:15 +00:00
mycroft
7e4288f8a6 Attempt to fix these up, but I have no way to test them. 2004-08-11 06:16:10 +00:00
mycroft
9de9d325ad And the settype pointer. 2004-08-11 06:05:21 +00:00
mycroft
70c487b124 Add a settype() function. Also clear the window enables when powering up or
down a socket, just to be safe.  (I've had problems with WinCE trashing my CF
card if there's state left behind...)
2004-08-11 01:54:46 +00:00
perseant
a315d33325 Allow compilation in the absence of DIAGNOSTIC and/or DEBUG options. 2004-08-11 01:23:47 +00:00
mycroft
0a960e80ec +cs@pcmcia 2004-08-10 20:50:11 +00:00
drochner
5a11f34433 The amd64 address space layout is different.
We can't assume that kernel addresses are below
VM_MAX_KERNEL_ADDRESS.
2004-08-10 18:57:09 +00:00
skrll
adf5c92842 Include <sys/cdefs.h> once. 2004-08-10 07:35:53 +00:00
mycroft
1710cea8cf Enable DDB history. 2004-08-09 19:04:32 +00:00
chs
ed0b81628a move DBG settings to CPPFLAGS and COPTS as appropriate
so that we can use the default DBG now.
2004-08-09 16:01:37 +00:00
mycroft
6d0330a781 Add {spc,xirc,mhzc}@pcmcia. All tested on a Multia. 2004-08-09 14:16:02 +00:00
junyoung
0889de87d0 xi -> xirc,com,xi 2004-08-09 05:23:52 +00:00
mycroft
ca7dc95cab Enable DDB history by default. 2004-08-08 16:38:50 +00:00
rearnsha
df8fa882b3 Add UVMHIST tracking for data and prefetch aborts. 2004-08-08 14:21:29 +00:00
yamt
9cc3176930 kvtopte: use a correct base addr for LARGEPAGES. 2004-08-08 09:47:05 +00:00
yamt
a37fba2a04 correct VAs in a comment. 2004-08-08 09:40:48 +00:00
yamt
b606f3e999 reduce gratuitous whitespace/comment differences from i386. 2004-08-08 09:38:50 +00:00
mycroft
958716ead8 xi -> xirc,com,xi 2004-08-08 08:54:43 +00:00
briggs
fae6b577a8 Recognize the VIA Nehemiah by name.
Probe the VIA cache.
Add to, don't step on, feature flags when looking at extended feature
    flags in VIA's 0x800000001 CPUID response.
2004-08-08 05:21:01 +00:00
briggs
bd2376263b VIA C3 cache info. 2004-08-08 05:16:16 +00:00
chs
7732d6db9d handle T_CONDITION traps (by sending SIGFPE).
fix T_EXCEPTION code to handle the other FP major opcodes.
2004-08-07 21:47:05 +00:00
chs
43d9a77774 remove the alignment attribute from the typedef of __cpu_simple_lock_t
since it doesn't have any affect and lint chokes on it.
2004-08-07 21:42:10 +00:00
chs
1974de97c5 stub out the ldcw stuff for now, since gcc -O2 chokes on it. 2004-08-07 21:41:44 +00:00
chs
2e5e9111d9 clean up some register naming. 2004-08-07 21:41:18 +00:00
chs
5dd3057b5c replace some spinlock/tsleep code with a lockmgr lock. 2004-08-07 21:40:47 +00:00
chs
272b73cf0a use CALL() instead of "bl" in a few more places. 2004-08-07 21:40:05 +00:00
mycroft
5e289bdf22 Don't pass in a MAC address -- yet. 2004-08-07 17:27:30 +00:00
rearnsha
f506c2b14b Bah! Fix tyop CORE_UNKOWN_HANDLER -> CORE_UNKNOWN_HANDLER 2004-08-07 12:20:20 +00:00
rearnsha
eb40e03a12 Use SYSTEM_COPROC. 2004-08-07 12:07:08 +00:00
rearnsha
2d02f2af34 Add SYSTEM_COPROC (cp15). 2004-08-07 12:05:54 +00:00
rearnsha
548ccf50bd Use FPA_COPROC instead of a manifest constant. 2004-08-07 12:04:05 +00:00
rearnsha
3de3493771 FP_COPROC* ->FPA_COPROC* 2004-08-07 12:02:36 +00:00
rearnsha
9264ede43d Changing the interrupt mask is a scheduling barrier. 2004-08-07 11:47:58 +00:00
rearnsha
b0a3a4309a Don't overload the unknown instruction handling for the core onto CP0.
Instead, add a seventeenth 'co-processor' specifically for the core.
Add support for ARMv5 unknown instructions in the 'NV' space.
2004-08-07 11:45:41 +00:00
rearnsha
951ec8627f Don't use vector_page before it's been initialized. 2004-08-07 11:20:53 +00:00
rearnsha
da975d6d89 Fix pasto error in comment. 2004-08-07 11:13:09 +00:00
rearnsha
5b0328df32 Add barriers to prevent scheduling of critical code outside of the
SPL-protected region.
2004-08-07 11:08:58 +00:00
rearnsha
0163f96e43 Add fixed configs for fxp0 and sd0 booting. 2004-08-07 11:00:06 +00:00
rearnsha
0e811ff437 Support probing the compact PCI bus. 2004-08-07 10:54:54 +00:00
rearnsha
7c8434c371 Set CPUFLAGS not COPTS 2004-08-07 10:47:19 +00:00
mycroft
401372a247 Add mhzc and spc. 2004-08-07 02:40:56 +00:00
uch
32b3027515 clean up whitespace. 2004-08-06 18:33:09 +00:00
uch
e0d5c780a2 recompile. 2004-08-06 17:28:10 +00:00
uch
da18fa2c21 progress bar extension. put message to console. 2004-08-06 17:24:00 +00:00
uch
a9e6c59d87 move string manupurate routine to libsa 2004-08-06 17:23:14 +00:00
uch
b5f1c4963a progress bar extension. put message to console. 2004-08-06 17:22:01 +00:00
uch
a28cfcb566 make hpcboot.exe compile on VC5 (H/PC Ver.1.01 for MIPS, H/PC Ver.2.00 for SH). 2004-08-06 17:21:28 +00:00
uch
4b8cd27f3f use gawk instead of awk. 2004-08-06 17:20:32 +00:00
rearnsha
1300889f4e Use db_machine_init. 2004-08-06 15:13:45 +00:00
rearnsha
2a1436f519 Remove declaration of db_trapper (since we now use db_machine_init). 2004-08-06 15:10:19 +00:00
skrll
debe5a31ce Include <sys/cdefs.h> once. 2004-08-06 14:39:18 +00:00
dbj
1abd4b8f46 fix several related bugs that cause sysctl machdep.diskinfo to
lose when booted from pxeboot.
. make sure that i386_alldisks gets initialized even if
  bios geometry information is not available in the bootinfo
. if i386_alldisks is not initialized, have sysctl return EOPNOTSUPP
. compile pxeboot with -DPASS_BIOSGEOM and I386_INCLUDE_DISK=yes
  this may increase the size of pxeboot which is required to run
  in 64k.  However, it seems to be working ok on my system
2004-08-05 18:04:35 +00:00
mycroft
8bed9fe251 Set NKPTP default to 0 (it's calculated in locore). Also reduce NKPTP_MIN to
2 -- though, with our current rounding of the data section, we will never take
advantage of that.
2004-08-05 15:26:59 +00:00
mycroft
c512454ca7 Increase nkpde automatically to adjust for the kernel size. Also, if we did
adjust nkpde, save the new value.  This should enable us to boot extremely
large kernels without fiddling with NKPTP.
2004-08-05 15:25:29 +00:00
cube
3cdea73b10 boothowto is already available through sys/systm.h, and is actually
declared elsewhere;  don't duplicate it.
2004-08-05 13:31:38 +00:00
tacha
08adc832cf remove obsolete "pci_enumerate_bus" definition. 2004-08-02 18:07:40 +00:00
uebayasi
33d0780d08 Fix an apparent syntax error. 2004-08-02 13:30:08 +00:00
jkunz
a4573e2f18 Rework code to scan for monarch CPU. (cpu0 at mainbus0)
CPU detection now works on E-class machines. (tested on E55)
2004-08-02 11:53:02 +00:00
scottr
a5f6117c56 We can't generate an FPU idle frame until we know which one
####we have, so defer this until we've probed the FPU type.
####Fixes PRs 25081 and 26250.
2004-08-02 03:44:40 +00:00
scottr
9803d05af3 We can't generate an FPU idle frame until we know which one
##we have, so defer this until we've probed the FPU type.
##Fixes PRs 25081 and 26250.
2004-08-02 03:44:39 +00:00
scottr
92a2a37f74 Bus and address error handlers are set up long before we get
to initcpu(); no need to do it again.
2004-08-02 03:06:17 +00:00
uch
c6ac79b0b3 add NEWSMIPS_WSDISPLAYIO_GINFO ioctl to get frame buffer stride. 2004-08-01 18:53:16 +00:00
isaki
de887a3aec files.usb (rev 1.54) needs files.wscons for uep. 2004-08-01 14:32:48 +00:00
jdolecek
cf701801a2 the ARMLinux ARM-specific range was moved to offset 0x180 in the NetBSD
syscall table (sync with rev. 1.7 of sys/compat/linux/arch/arm/syscalls.master)
2004-08-01 14:19:00 +00:00
mrg
7ce2791a3b add commented entries for the magma and spif sbus multiport serial/parallel
cards (they're not tested afaik.)
2004-08-01 10:51:33 +00:00
mrg
c108d448ff add entries for spif/stty/sbpp. final part of PR#26061. 2004-08-01 10:45:23 +00:00
martin
3012afd03f Allow bigger time skips (root fs vs. rtc), only warn if we skip more
than two days backward (same as old behaviour) or more than two years
forward. I have lots of test machines I don't power on every two days.
XXX - this should be handled more consistent across the different
ports. While here, move the default time -- in the unlikely event that
we have neither rtc nor file system time -- to this millenium.
2004-08-01 08:02:55 +00:00
tsutsui
9df92e5adc - It turns out alignment restriction for TX descs is 8kbytes, not 64kbytes.
- Use MEC_TX_ALIAS register to set/clear TX interrupt enable bit.
2004-08-01 06:36:36 +00:00
mrg
0078e5d6ca update the comment for ichlpcib to include SpeedStep. 2004-07-31 17:35:19 +00:00
mrg
5ced3fb6e0 implement ICH-based Intel SpeedStep(TM), based on both the linux and
freebsd drivers for the same.  if found and supported, export a
"machdep.speedstep_state" sysctl that can be set to "0" (low) or "1"
(high).

tested on a dell inspiron 8500 (supported, working) and a dual P4
system (supports ichlpcib not speedstep, comes up properly disabled.)
2004-07-31 17:32:31 +00:00
simonb
ed2e469e3d Remove some debug printf()s.
Reorder an evcnt_attach_static().
2004-07-31 13:28:53 +00:00
skrll
69df83b2f1 Fix a merge botch. 2004-07-31 07:31:08 +00:00
skrll
8cd5dd43cc remove now unnecessary "pci_enumerate_bus" definitions here as well 2004-07-31 07:28:28 +00:00
jmmv
2a08d54a9a Implement border color customization in wscons(4), only available for vga(4)
at the moment.

This includes the addition of two new wsdisplay ioctls, WSDISPLAY_{G,S}BORDER,
one to get the actual color and one to set it, respectively.  Possible colors
match those defined by ANSI (and listed in wsdisplayvar.h).

It also adds two accessops to the underlying graphics device, getborder and
setborder, which mach their ioctl counterparts.

Two kernel options are added: WSDISPLAY_CUSTOM_BORDER, which enables the
ioctls described above (to customize the border color from userland after
boot), and WSDISPLAY_BORDER_COLOR, which sets the color at boot time.
The former is enabled by default on the GENERIC kernel, but not on INSTALL
(among others).  The later is always commented out, leaving the usual black
border as a default.

wsconsctl is modified to allow accessing this value easily.  For example,
'wsconsctl -d -w border=blue'.
2004-07-29 22:29:35 +00:00
jkunz
4c72b79518 Import PCI support from OpenBSD and update GENERIC config for PCI devices. 2004-07-29 19:10:23 +00:00
jkunz
6ea3501621 Remove SMALL config. It is no longer needed after toolchain and bootloader
problems have been solved.
2004-07-29 19:08:19 +00:00
drochner
fd293d10fd remove some typecasts to "cfmatch_t" which are obviously relicts from
__BROKEN_INDIRECT_CONFIG times
2004-07-29 18:39:00 +00:00
drochner
a5a5473c25 remove now unnecessary "pci_enumerate_bus" definitions 2004-07-29 16:55:25 +00:00
drochner
4f2a6309fe give the special PCI bus enumerator a sparc64_ prefix and make the
PCI_MACHDEP_ENUMERATE_BUS macro point to it
2004-07-29 16:53:15 +00:00
is
fae5cbad97 Revert last change. It breaks the build due to interactions with
frame.h.
2004-07-29 12:54:46 +00:00
manu
66fc5fb621 Empty shell for Darwin audit API 2004-07-28 22:24:06 +00:00
pk
8539b88f6e _sbus_bus_map: check for the existence of `ranges' in the tag before using them. 2004-07-28 19:15:47 +00:00
jmmv
92f81ea7d3 Implement support to dynamically change wscons console and kernel colors.
Two new ioctls are added to the wsdisplay device, named WSDISPLAY_GMSGATTRS
and WSDISPLAY_SMSGATTRS, used to retrieve the actual values and set them,
respectively (the name, if you are wondering, comes from "message attributes").

A new emulop is added to the underlying display driver (only vga, for now)
which sets the new attribute for the whole screen, without having to clear
it.  This is optional, which means that this also works with other drivers
that don't have this new operation.

Five new kernel options have been added, although only documented in
i386 kernels (for now):
- WSDISPLAY_CUSTOM_OUTPUT, which enables the ioctls described above to
  change the colors dynamically from userland.  This is enabled by default
  in the GENERIC kernel (as well as others) but disabled on all INSTALL*
  kernels (as this feature is useless there).
- WS_DEFAULT_COLATTR, WS_DEFAULT_MONOATTR, WS_DEFAULT_BG and WS_DEFAULT_FG,
  which specify the default colors for the console at boot time.  These have
  the same meaning as the (already existing) WS_KERNEL_* variables.

wsconsctl is modified to add msg.default.{attrs,bg,fg} and
msg.kernel.{attrs,bg,fg} to the display part, so that colors can be changed
after boot.

Tested on NetBSD/i386 with vga (and vga in mono mode), and on NetBSD/mac68k.
No objections in tech-kern@.
2004-07-28 12:34:02 +00:00
is
3f5c400809 For a while, we exported symbols in the user namespace (which should only
be interesting for the kernel), thus breaking (e.g.) vim. (PR 26048)
2004-07-28 11:39:37 +00:00
skrll
bc26aea7ac Build hp700's mkboot as a host tool called nbhp700-mkboot. mkboot also
gets built and installed in a hp700 distribution.

TODO

- merge with hp300

- pick a preferred method for dealing with the elf headers.
  hp700-mkboot and prep-mkbootimage (bintuils) vs mips-elf2ecoff and
  tools/installboot
2004-07-28 09:17:31 +00:00
simonb
e25bd305b6 Define LIB{CRT0,C,CRTBEGIN,CRTEND} as nothing, we don't need to link
against them.
2004-07-28 01:05:35 +00:00
jkunz
8ddbfec17f Implement bus_space_vaddr(9) and add flags for bus space map functions. 2004-07-27 22:16:40 +00:00
jkunz
efdaaa6c7d Clean up leftover OpenBSD speciffic multi platform disklabel handling. 2004-07-27 22:14:22 +00:00
chs
3be324ecca call hppa_ras() with CALL() instead of "bl", since the latter has
a limited range.
2004-07-27 14:25:34 +00:00
jkunz
461314c36f Bring the WAX GSC to GSC bus adapter + interrupt controller and the
GSC bus inside the WAX chip to live with some bits from lasi.c and
the OpenBSD wax.c.
2004-07-25 21:52:56 +00:00
sekiya
c830efd52f Properly detect the EISA bus for IP22-class machines. 2004-07-25 10:28:28 +00:00
manu
57ae178c88 Added a simple bigcopy, from Srinivasa Kanduru 2004-07-25 09:21:48 +00:00
thorpej
238240999a Bump symtab space. 2004-07-25 03:55:38 +00:00
chs
f05f720ae1 real siginfo support. 2004-07-24 19:04:53 +00:00
chs
d2943099a2 FPU fixes and improvements, adapted from openbsd:
- handle exceptions correctly
 - emulation of unimplemented instructions (eg. on PA-7300LC)
2004-07-24 18:59:05 +00:00
tron
317f4e4195 - Remove support for non-VGA and ISA VGA graphic cards.
- Remove ISA attachments for various device (e.g. com(4)) so that the
  ACPI attached devices get the low device numbers.
2004-07-24 15:30:34 +00:00
mrg
5df9a04912 Hauke Fath's port of the openbsd SUNW,spif driver from PR#26061.
the driver was originally written by Jason L. Wright.

XXX: i haven't tested this on sparc64 at all...
2004-07-24 12:37:20 +00:00
nakayama
1d66d17d9d Change interrupt pending list end value to -1, to avoid linking an
interrupt handler twice.

It may fix "sleep forever" bug.
2004-07-24 12:04:32 +00:00
tron
8849562832 Add new kernel configuration for ACPI based SMP systems which can also be
used to utilize Hyper-Threading.
2004-07-23 17:57:41 +00:00
he
1239ef54cc Add an attachment for ath* at pci, since some laptops have mini-PCI
atheros wireless hardware, such as IBM TP41p and TP40p.
2004-07-23 15:36:00 +00:00
mycroft
f85e332440 Use pmap_kenter_pa() to map pages to dump, not pmap_enter(), so that it's more
resistant to VM lossage.
2004-07-22 15:12:46 +00:00
rumble
44f3c135e7 KNF and consistency 2004-07-20 05:19:23 +00:00
rumble
5189fbb0b4 Allow for console attachment by statically allocating a softc
extension. Tweak cs_softreq when appending the transmit queue.
Finally, add a bit of debugging.
2004-07-20 04:55:21 +00:00
rumble
ae62a41f43 Properly initialise the tx and rx queue head and tail positions. 2004-07-20 04:43:44 +00:00
perseant
1524f4361c Change "acardide*at ..." to "acardide* at ..." so adjustkernel will dtrt. 2004-07-20 00:08:51 +00:00
tron
ad1499aa47 Enable ehci(4) by default. 2004-07-19 14:23:59 +00:00
jmmv
aee8313407 Add the Spanish keymap.
While here, add support for the Num Lock key (with all needed changes in the
numeric keypad), Print Screen, Hold Screen, Pause, Insert, and Delete.

Ok'ed by silence in port-mac68k@.
2004-07-19 13:31:08 +00:00
chs
7a0d577e38 put RAS_DECL() back to declaring a function by default (since SH5
requires that).  instead, allow <machine/types.h> to override the
default definition and do so on hppa.
2004-07-19 03:12:31 +00:00
chs
6686a4e466 include bsd.own.mk so this builds again. 2004-07-19 01:41:26 +00:00
heas
420275788e Collect and save the FFB DAC version, which will be needed for the h/w cursor
since the Elite3d's logic is reversed.  From FreeBSD.
Fix comments in wsdisplay_accessops initialisation.
2004-07-19 01:04:35 +00:00
heas
381b4b602e Add comments for a few of the FFB registers.
From FreeBSD.
2004-07-19 01:00:48 +00:00
heas
f509a0a9b2 If we are serial console, insert a delay just after switching from prom
i/o functions to talking to the sab directly, allowing any residual prom
output to drain.  There does not appear to be a prom "flush" function.

Adresses PR 26226.
2004-07-19 00:28:42 +00:00
chs
4ee5744873 add decl for hppa_ras(). de-__P. 2004-07-18 23:31:26 +00:00
chs
0d86a5cd52 add hppa support for RAS, context stuff, siginfo and scheduler activations:
- add a RAS hook in cpu_switch().
 - fill in the definition of struct mcontext.
 - implement cpu_upcall(), cpu_getmcontext(), cpu_getmcontext() and
   cpu_switchto().
 - for now, force the right priviledge bits and space regs in setcontext().
 - use correct values for __SIMPLELOCK_*.
 - move the user stack to start at a multiple of the pthread stack size
   so that libpthread can use the sp-masking trick.
2004-07-18 23:21:35 +00:00