Commit Graph

44471 Commits

Author SHA1 Message Date
ad 087fdb9080 Count the number of CPUs at boot and stash in 'ncpu'. Eventually should
have each CPU register at attach, so we can figure out the topology for
the scheduler.
2007-02-15 20:32:47 +00:00
reinoud 43061c75ae Rename the B_XXX flag to B_DEVPRIVATE flag since it was never used for
debugging and its main use is in device drivers. Its used there to signal
that the flagged buffer has a special meaning or should be handled
differently.

OK'd by Bill Sudenmund on tech-kern.
2007-02-15 18:33:26 +00:00
ad c2c74a2fbe Don't establish an interrupt handler at IPL_VM, use IPL_TTY instead. 2007-02-15 18:18:21 +00:00
ad 9abeea588a Replace some uses of lockmgr() / simplelocks. 2007-02-15 15:40:50 +00:00
ad 58c53b4195 Pacify lint/gcc. 2007-02-15 15:27:53 +00:00
ad 216d01d042 Make these compile again. 2007-02-15 15:14:57 +00:00
tsutsui 6f2a774e58 IPL_NSOFT -> SI_NQUEUES (missed in the previous. Umm) 2007-02-15 12:43:17 +00:00
tsutsui 032ce3bba4 Fix an indent in the previous. 2007-02-15 12:22:04 +00:00
martin 8f4fbc0245 Fix obvious copy&pasto in SCHED_DEBUG register usage. 2007-02-15 09:02:12 +00:00
mhitch e7d5ff9134 Kernel threads were running at splhigh on m68k systems because the status
register was inherited from proc0.  Set the new process's status register
to PSL_LOWIPL.  Raidframe reconstruction no longer causes my Amiga to lose
time.
2007-02-15 02:55:39 +00:00
mhitch 5271afeb9d Add lock stubs for m68k. Amiga builds and runs now. 2007-02-15 02:48:48 +00:00
macallan 9d17b3cb4d gah, fix botched merge in previous commit 2007-02-15 02:17:30 +00:00
macallan 63b3b74e9f add battery at pmu 2007-02-15 02:06:48 +00:00
macallan f41db58cbf not quite complete yet driver for batteries found in ohare-based PowerBooks
no APM emulation or sysmon integration yet but some stuff is exposed via
envsys
2007-02-15 01:48:40 +00:00
macallan 9c80d19d08 don't use IPL_HIGH 2007-02-15 01:45:40 +00:00
macallan 78dc3781e9 - don't use IPL_HIGH
- attach batteries when present
- some cleanup
2007-02-15 01:44:54 +00:00
ad 6511d52f7d inline -> __inline 2007-02-11 15:41:31 +00:00
macallan ba96662cde add missing defflags from previous commits 2007-02-10 19:10:24 +00:00
hannken 39aa6289a6 newlock2: curproc->p_sigctx.ps_sigmask -> curlwp->l_sigmask.
Ok: Andrew Doran <ad@netbsd.org>
2007-02-10 18:16:18 +00:00
xtraeme b42a191f38 Add pseudo-device cmos - see cmos(4)
Remove unit number in pseudo-device swwdog, by default it is 1.
2007-02-10 18:00:59 +00:00
nakayama f7be5e7f25 s/___asm/__asm/ 2007-02-10 17:34:46 +00:00
ad 5df226f2ad NSPR builds seem to choke on 'inline'. Replace it with __inline. 2007-02-10 16:19:39 +00:00
ad 2b0ac2e782 Fix a pasto (mutex_exit -> mutex_enter). 2007-02-10 16:08:16 +00:00
skrll 1472d08a88 Fix a label. 2007-02-10 13:21:52 +00:00
tsutsui 67b858ce4e - fix prototype for ctrl_int2 port (u_char -> uint8_t) in intr.h
- use proper macro to assert/clear ctrl_int2 port for softintr
- use KDASSERT() rather than #ifdef DEBUG + assert()
- don't count uvmexp.softs twice in softintr_dispatch()

XXX: Maybe we should have common m68k/softintr.c like mips ports.
2007-02-10 13:08:30 +00:00
skrll de10cef758 Destroy a mutex correctly. That is, overright the owner and don't set
mtx_waiters.
2007-02-10 12:15:24 +00:00
ad 1727553fe8 Make a couple more updates for signal handling. 2007-02-10 10:16:33 +00:00
tsutsui b501f9bf07 Rename _IPL_SOFT* macro to SI_SOFT* to sync with other m68k ports. 2007-02-10 03:30:13 +00:00
tsutsui ac79486fd5 Implement generic softintr(9) support for news68k.
Mostly taken from mvme68k.
2007-02-10 02:57:46 +00:00
tsutsui 18f2cde2bd Make COMPAT_HPUX compile by mechanical replacements.
XXX1: not sure if it still works even before newlock2 merge
XXX2: some more mutex locks might be required
2007-02-10 02:42:30 +00:00
tsutsui 3e828b086d Apply changes for newslock2, taken from other m68k ports. 2007-02-10 02:38:34 +00:00
tsutsui eeca26831e Update for newlock2 merge. 2007-02-10 02:34:42 +00:00
tsutsui 123ed5aad5 Implement generic softintr(9) support for news68k.
Mostly taken from mvme68k.
2007-02-10 02:03:51 +00:00
tsutsui 9a49275170 Apply some changes for newlock2, taken from other m68k ports. 2007-02-10 02:01:26 +00:00
ad b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
macallan 688135d6b1 - don't call load-ata on PB3400 and similar machines - it occasionally
freaks out when a cardbus device is present.
  enable with options PB3400_CARDBUS_HACK
- add a hack to make the DEC 21140 found on UMAX E100 cards work, for some
  reason OF doesn't see it
  enable with options UMAX_E100_HACK
2007-02-09 21:37:49 +00:00
macallan 5314457521 gah, stupid typos 2007-02-09 21:15:54 +00:00
macallan a64454b914 pass OF node and if known instance handle as device properties. Needed later
for a generic OpenFirmware framebuffer driver
2007-02-09 21:13:30 +00:00
jdc 220cbf1395 First steps for working wscons on sun-4 class machines - recognise the
console keyboard and mouse on them.

We are not there yet because currently both wsdisplay and zstty assume
that they are the console.  On sun-4, zstty wins because it attaches
last and overwrites the console device that wscons had set previously.
2007-02-08 20:36:55 +00:00
jdc 3cb2b40395 Clarify the console checking comment. 2007-02-08 20:30:50 +00:00
skrll a815b70d5c G/C hp{pa,700}/spinlock.h 2007-02-06 21:59:24 +00:00
dyoung 430441ebbd Add a device major for cmos(4). 2007-02-06 20:38:36 +00:00
dyoung 56db732551 Add cmos(4) for reading/writing CMOS RAM on x86 boxes. This driver
comes from Takahiro Kambe, with some mods by me.
2007-02-06 07:28:59 +00:00
dyoung 9e85b986d1 Stop using _IPL_NSOFT because nothing defines it, and it is
unnecessary to specify the length of the arrays mips_ipl_si_to_sr,
anyway.
2007-02-06 05:39:16 +00:00
simonb 1fc6e76755 Fix a tyop in a comment. 2007-02-06 04:48:15 +00:00
jmcneill d6775f8b6c On Xbox, disallow pci_conf_read/pci_conf_write calls for bus 0 device 0
functions 1 and 2.
2007-02-06 03:13:37 +00:00
ad fb574ffdbf The TLB flush filter workaround causes TLB shootdown storms on our build
machines. Disable it for now until that problem is solved.
2007-02-05 21:05:45 +00:00
macallan f3154089bb - don't go CUDA_IDLE before calling message handlers, that way we force all
writes they might issue to be delayed which keeps us from deadlocking
- don't splhigh() in cuda_intr() - usually we're there already. Instead do
  the splhigh()/splx() dance when we're polling
- remove some leftover debugging gunk
2007-02-05 18:26:06 +00:00
dyoung f3a37fb5de Cosmetic: use the name PCI_INTERRUPT_REG instead of the number
0x3c.
2007-02-05 07:48:20 +00:00
macallan a64a26d4aa fix fallout from making OF_interpret compatible with the other OF platforms
noticed by Leon Zadorin
2007-02-05 04:02:01 +00:00
xtraeme 5e3e443d5a Add the following pseudo-devices:
* lockstat - see lockstat(8)
* swwdog - see swwdog(4)
2007-02-04 17:49:02 +00:00
jmcneill 95e6498e25 Note the origin (hi FreeBSD!) of a couple clever bits of Xbox
initialization code. No functional changes.
2007-02-04 15:26:26 +00:00
tsutsui 5a003ebca0 Accept RX packets which are larger than ETHER_MAX_LEN but can be stored
into RX mbufs.

(BTW, is there any way to allocate RX mbufs aligned at PAGE_SIZE?)
2007-02-04 06:16:12 +00:00
tsutsui 6e3b5f512c Remove unused dh_addr member from struct si_dma_handle. 2007-02-04 01:38:34 +00:00
tsutsui e32f083d80 Remove leftover debug stuff which could break si_obio DMA. 2007-02-04 01:37:09 +00:00
christos deecbf494d remove dup definition 2007-02-04 00:39:43 +00:00
christos 5058960df7 make this gdtoa friendly. 2007-02-04 00:39:19 +00:00
tsutsui f7397aaa8c Make si at obio and si at vme on sun3 use bus_dma(9) for data xfer.
XXX1: Only si at vme on TME is tested.
XXX2: No info about DMA on si at sebuf. (bounce buffer required?)
2007-02-03 18:02:57 +00:00
tsutsui 277e6a5263 Prepare bus_dma(9) structures for sun3 obio devices. 2007-02-03 17:00:37 +00:00
tsutsui 5ec98f218f Add bus_space(9) and bus_dma(9) glue to sun3 MD VME attachment
to test these APIs on TME.

XXX I hope these sun3 MD VME stuff will be replaced by MI VME driver soon.
2007-02-03 16:58:08 +00:00
tsutsui 39bbf3e6c5 Implement bus_dmamap_load(9) and bus_dmamap_unload(9) for sun3. 2007-02-03 16:51:13 +00:00
christos 20b56f03ed make extended precision gdtoa friendly. 2007-02-03 16:44:45 +00:00
tsutsui 3c39b23802 Fix botch in #ifdef DIAGNOSTIC. 2007-02-03 05:20:31 +00:00
tsutsui b19c5b0bc7 Make esp and its dma on 3/80 use bus_dma(9).
XXX: Maybe we should consider to use MI sys/dev/ic/lsi64854.c.
2007-02-03 05:17:30 +00:00
tsutsui 8763f0bf0e Prepare bus_dma(9) structures for sun3x obio devices. 2007-02-03 05:14:38 +00:00
tsutsui 2fce94aa7d Implement bus_dmamap_load(9) and bus_dmamap_unload(9) for sun3x. 2007-02-03 05:13:58 +00:00
christos b5b1a9d57c Merge the int bit with the high fraction bit. Add constants/macros
needed by gdtoa.
2007-02-02 23:07:44 +00:00
tsutsui 4f989cd028 KNF 2007-02-02 15:50:58 +00:00
ober 5c470843ae Updates to allow Zaurus screen to rotate 90 degrees to a usable state with the keyboard. Patch from peter@ copied from OpenBSD. Feedback and OK from matt@ 2007-02-02 02:10:24 +00:00
skrll 52ca267ebe Workaround PR/35531 by preventing iee(4) from matching the 82596DX/SX
chip variant and adding ie(4) to the kernel to match it - ie(4) works.
2007-02-01 21:09:42 +00:00
tron 7b011b26ee Disable wsmouse(4) and all the related low-level drivers The installer
ramdisk doesn't support using the mouse anyway.

Idea provided by Blair Sadewitz in private e-mail.
2007-02-01 21:07:45 +00:00
freza 898efa526f Local variables bat{u,l} are only needed by OEA code, so ifdef them. 2007-02-01 19:59:03 +00:00
freza 55f2d910e2 On ibm405 (which the true meaning of PPC_IBM4XX), anything outside
kernel VM range is supposed to be mapped via reserved TLB entries,
so allow such VAs through.

Fixes kgdb failure observed by Jean-Francois Boudreault on port-powerpc
(thanks for testing, too).
2007-02-01 15:18:57 +00:00
freza 4a09a01492 Document that unprotected access to softintr cookie is safe in
softintr_disestablish(), upon request from uebayasi@.
2007-01-30 05:42:24 +00:00
freza 4bf0309687 Protect softintr queues by direct manipulation of PSL_EE because PowerPC
ports have different IPL hierarchies. On macppc, IPL_VM is below IPL_AUDIO
and IPL_SERIAL so the queues got corrupted due to priority inversion.
Also fix a race condition in softintr_schedule() when testing "si_refs > 1",
it can lead to queue corruption and subsequent panic (below). As a side
effect, using PSL_EE directly is faster than going via spl*()/splx().

This is supposed to fix (XXX I don't have the hw):

  Panic: kernel diagnostic assert "si->si_refs > 0" failed: file
  "[...]arch/powerpc/powerpc/softintr.c" line 116

reported for example in:

  http://mail-index.netbsd.org/port-macppc/2007/01/25/0001.html

Discussed with briggs@ and macallan@.
2007-01-30 05:25:15 +00:00
hubertf eda05c6413 Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.
2007-01-29 01:52:43 +00:00
pooka 7f95c564bd add puffs 2007-01-28 20:55:20 +00:00
hubertf 9f04f18402 Enable Altq and some others, sinced from GENERIC 2007-01-27 23:41:09 +00:00
he 2bfaf840fc Fix description of the 82443BX workaround to use "stepping" instead
of "revision".
2007-01-27 23:10:21 +00:00
cbiere 5bc2b7285f Don't define UNALIGNED_ACCESS, it's not used anymore. 2007-01-27 07:21:32 +00:00
dyoung 2496a279f8 Define some more registers on the AMD Elan SC520, according to the
datasheet.
2007-01-26 19:42:56 +00:00
rpaulo f8716dbbb5 Don't panic with "lazy bum". I have a machine that can boot multiuser
and run on SMP with this panic commented out.
No replies on tech-kern about this.
2007-01-26 12:44:50 +00:00
macallan 2b8bf5f8d1 have OF re-initialize the console before calling OF_exit() so we actually
end up in something usable
2007-01-25 02:20:23 +00:00
tshiozak 72fabe35a2 In acpi_restorecpu, "pushl ret_addr" was wrong.
this decrease esp unsuitably.  this may crash the kernel while leaving
acpi_md_sleep().  (rely on the code generation options passed to cc)
2007-01-24 20:32:45 +00:00
tls 698fb43463 Remove option COMPAT_386BSD_MBRPART from default kernels. NetBSD has
not used partition ID 0x165 for many, many years, and the presence of
this option in INSTALL kernels can cause overwriting of existing FreeBSD
installations when sysinst writes back the disklabel.  Those with very,
very old NetBSD installations may find that they must update their fdisk
partition tables to use partition ID 0x169 for their NetBSD partitions.

This seems like the best of a number of lousy choices for dealing with
this problem.  Sysinst should perhaps grow code that asks whether an
existing 0x165 partition should be converted.

~
2007-01-24 19:46:25 +00:00
hubertf 142c2a33ba Remove duplicate #includes, patch contributed in private mail
by Slava Semushin <slava.semushin@gmail.com>.

To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".

Thanks to martin@ for the input on testing.
2007-01-24 13:08:11 +00:00
mrg 384736624e add a LOUD comment that this kernel does not work yet. 2007-01-24 05:53:56 +00:00
tsutsui a32a73741e Two fixes to avoid lost softintr (probably caused by some race condition):
- make sh_pending in struct softintr_handler volatile
- activate softintr unconditionally in softintr_schedule()
2007-01-23 16:03:43 +00:00
tsutsui 920dd50438 Use bus_space(9). 2007-01-23 15:58:22 +00:00
he 680cc3ab67 According to http://www.intel.com/design/chipsets/specupdt/290639.htm,
the BIOS bug workaround for the i82443BX chipset's DRAM leadoff timing
parameter is not needed for revisions >= C0, so avoid tweaking that
parameter in that case.

Earlier, this would trigger NMIs on fully memory-populated Compaq
1850R systems, where the BIOS appears to program and require a non-
standard value for this parameter.

Thanks to Chris Ross for the diagnosis and the fix!
2007-01-23 10:45:33 +00:00
macallan 3ee719808f of_compatible() returns -1 not 0 when nothing matches. Doh. 2007-01-22 00:10:27 +00:00
macallan 130442d345 make OF_interpret actually deal with input arguments 2007-01-21 23:59:39 +00:00
macallan ed57b01256 add bus_space_*_stream() methods 2007-01-21 23:19:57 +00:00
kiyohara e3e6e213ed follows to style guide and C99.
Add ARGSUSED and __unused.
  Remove braces at return.
Use device_private() and aprint_*().
2007-01-21 11:01:09 +00:00
tsutsui 56b4b91a79 Recognize more AMD64 CPUIDs. 2007-01-21 08:47:43 +00:00
bouyer 89b7593e6a Xen3 linux guests seems to loan a lot of pages for some disk transfers,
and eventually run out of XENSHM_NPAGES for a single transfers.
Bump XENSHM_NPAGES by 10 for xen3 to avoid deadlocks in such case.
2007-01-20 22:01:06 +00:00
he ceeb812c89 Unify the declaration of OF_interpret() between sparc{,64} and macppc
by adding the "nargs" argument to the macppc version, and fix the macppc
ports uses of OF_interpret() accordingly.

Also move the declaration of OF_interpt() from macppc's autoconf.h to
ofw/openfirm.h.  This fixes the build of the macppc port.

Approved by macallan@.
2007-01-20 21:42:12 +00:00
xtraeme dade97a1c0 Do not attach this driver if idhi and idlo are the same frequency,
I've seen that in some Intel Core Duo CPUs.
2007-01-20 20:24:13 +00:00
xtraeme 614a7d1ec6 Remove extra '()' around the string 'MHz'. 2007-01-20 20:19:36 +00:00
xtraeme a3252760bc viaenv(4) does not need anymore viapm. 2007-01-20 18:48:17 +00:00
gdt 4a62427865 KNF/whitespace in code I recently added; no real changes. 2007-01-20 14:46:21 +00:00
isaki 18d9998d72 Add AMD Geode LX.
OK'ed by tsutsui@ on port-i386.
2007-01-20 10:28:49 +00:00
kiyohara 672e3eab7c Sorry...
btuart not yet.
2007-01-18 10:24:53 +00:00
kiyohara a9dae91c04 Support com*.
Add options GXIO_BLUETOOTH_ON_HWUART, but not yet btuart.
Cleanup some configurations.
2007-01-18 10:15:20 +00:00
kiyohara a847a1afbe Initialize GPIO of *UARTs and supports. 2007-01-18 10:06:47 +00:00
kiyohara 7dbdf0112d Use device_private() and aprint_*. 2007-01-18 10:02:55 +00:00
macallan 6a0b5a67e6 add commented out definitions for new ADB subsystem and G3 audio 2007-01-18 00:58:55 +00:00
macallan 38b072ded2 make some tables static to avoid collisions 2007-01-18 00:43:00 +00:00
macallan 15a3f9b614 fix accidential commit, this time really only add the bus_space_tag 2007-01-18 00:19:30 +00:00
macallan c11af36bf1 pass a bus_space_tag to children 2007-01-18 00:17:22 +00:00
macallan 834aa52ed6 shuffle #includes, add a bus_space_tag 2007-01-17 23:39:09 +00:00
macallan 4cc86139d1 add iBook keyboard type 2007-01-17 23:36:37 +00:00
macallan 0990226c00 use sgsmix if present and appropriate 2007-01-17 23:34:29 +00:00
macallan 8e8447a9f0 use pmu and cuda for reset, shutdown etc. when appropriate
also deal with adbkbd vs. akbd
2007-01-17 23:27:59 +00:00
macallan a17b551fce new drivers for pmu and cuda 2007-01-17 23:25:45 +00:00
macallan 14e075c835 add pmu and cuda at obio 2007-01-17 23:23:08 +00:00
macallan 02a1d394fc finding the console node / instance handle moved into machdep.c 2007-01-17 23:08:08 +00:00
macallan 398d6bdd70 prefix a hexadecimal address with 0x 2007-01-17 23:05:49 +00:00
macallan ee9492db19 use properties to pass additional data to the console device,
like static EDID, framebuffer parameters etc.
2007-01-17 23:00:31 +00:00
macallan dddce0d0c3 set FORCE_FUNCTION_KEYS since pretty much all halfway recent *Books need it
also disable COMPAT_LINUX for now, will re-enable it when it's actually useful
2007-01-17 22:45:51 +00:00
imp 74b072c012 Sam's npe support was ported from FreeBSD and is enabled in the NSLU2
kernel, so update the README to reflect a more current status of the
ethernet under NetBSD.
2007-01-17 16:00:20 +00:00
christos 2f00fab993 remove CPUID2MODEL, since it is defined in specialreg.h 2007-01-16 22:32:46 +00:00
gdt 89c94a6a6f At perry@'s urging, add untested heuristic to set rbus_min_start to 3
GB on machines with (strictly) more than 2GB of ram.

If you have a machine with > 2GB of ram and cardbus, please let gdt
know if this works.
2007-01-16 18:46:03 +00:00
christos ae8983cebf PR/35430: Izumi Tsutsui: Identify amd64 CPU on NetBSD/i386 2007-01-16 15:43:44 +00:00
macallan 7d1cc4454c for trackpads add a sysctl to control wether tapping causes button events 2007-01-14 23:59:06 +00:00
aymeric 211211993c Basic support for RTAS (CHRP's Run-Time Abstraction Services).
Tested on the Efika; now it knows what time it is.
rtas can attach to mainbus. Not added to any kernel config file yet.
2007-01-14 22:18:02 +00:00
aymeric 0725ba2be2 disable MMU in restoremmu. This generally makes sense and is required for the
Efika
2007-01-14 22:11:27 +00:00
bouyer 9c9a89ef4c Uncomment pseudo-device raid and options RAID_AUTOCONFIG, to match
i386's INSTALL. Suggested by Florence HENRY on port-amd64@
2007-01-14 19:23:31 +00:00
ad 236a8ab694 Update x86_pause() as per i386. 2007-01-14 17:20:32 +00:00
ad 466538383c .. but only if _KERNEL is defined. 2007-01-14 14:08:55 +00:00
ad d0a255a895 On second thought, implement x86_pause() as a regular function. The small
delay from the call is useful for spinlock backoff.
2007-01-14 14:03:00 +00:00
jdc 7d6e7c5672 Apply the same UBC, data and stack limits that are applied to SUN4C to
SUN4 as well.

The data and stack limits are definitely needed, otherwise MI code will try
and map shared libraries in the 4/4c MMU hole.  The UBC limits may not be
necessary, but SUN4 machines are unlikely to have much larger amounts of
memory than this caters for (64Mb).

SUN4 machines will now boot userland with this change.

Thanks to martin@, mrg@ and uwe@ for hints while debugging this.
2007-01-14 11:19:44 +00:00
jdc 16ba0816c7 Don't check for reserved softintr slots on SUN4, as 4/300's have hardware
that uses the same levels.
2007-01-14 11:13:41 +00:00
freza 9c3107d24d Remove SYSTEM_LD_TAIL_EXTRA definition since sys/conf/Makefile.kern.inc
already runs dbsym(8) if SYMTAB_SPACE option is defined for the kernel
in question.

OK uwe@
2007-01-13 22:53:54 +00:00
cube 5aa5bf0655 Include machine/specialreg.h, needed if IPKDB is selected. 2007-01-13 17:54:26 +00:00
uwe b7d531ed9e Add options OFB_FAKE_VGA_FB (commented out).
XXX: Where's ofb(4)?  (hi, macallan!)
2007-01-12 21:24:40 +00:00
gdt 11343fbd1f Add a heuristic to set rbus_min_start based on total RAM. The new
behavior is to choose 0.5 GB for <= 192 MB, 1 GB normally, and 2 GB
for >= 1 GB.  This should make the defaults work additionally old
Thinkpad 600Es, and also on notebooks with lots of RAM (e.g. T60 with
2GB).

ok christos@
2007-01-12 20:34:09 +00:00
ad 151f7e0198 x86_pause(): do issue the 'pause' instruction, for EMT64 CPUs. 2007-01-12 20:22:04 +00:00
uwe 369020109e options<space><tab> police 2007-01-12 19:34:33 +00:00
uwe c2f6157b26 Replace long list of "audio* at foo?" attachments with single
audio* at audiobus?
2007-01-12 19:30:35 +00:00
uwe 0c62f0125f options<space><tab> police 2007-01-12 19:09:07 +00:00
ober 8f81a1b5a8 Update zaurus port to include TODR/TIMECOUNTER.
zaurus# ./timetest -A -t 600
Will test active counter and counters with positive quality from saost_count(q=100, f=3686400 Hz) clockinterrupt(q=0, f=100 Hz) dummy(q=-1000000, f=1000000 Hz)
Testing time for monotonicity of timecounter "saost_count" for 600 seconds...
claimed resolution 271 nsec (3690036.900369 Hz) or better, observed minimum non zero delta 2712 nsec
switching to timecounter "saost_count"...
Testing time for monotonicity of timecounter "saost_count" for 600 seconds...
claimed resolution 271 nsec (3690036.900369 Hz) or better, observed minimum non zero delta 2712 nsec
switching to timecounter "clockinterrupt"...
Testing time for monotonicity of timecounter "clockinterrupt" for 600 seconds...
claimed resolution 10000000 nsec (100.000000 Hz) or better, observed minimum non zero delta 9999999 nsec
TEST SUCCESSFUL

ok peter@
2007-01-12 13:06:11 +00:00
ad a79c7e51e6 Define ipl_cookie_t._psl as uint8_t so that it can be packed into a
word with other seldomly written fields.
2007-01-12 00:55:40 +00:00
bouyer 4bd6fc948a Fix still possible race condition where xbd_handler could still try to process
an event before the device is ready.
Reported, and tested by anzi at dnainternet net on port-xen.
2007-01-11 19:51:39 +00:00
ad c1e9dad747 x86_errata: correct the definition of MSR_HWCR and re-enable. Problem
noted and debugged by Murray Armfield (murray at river-styx.org).
2007-01-11 17:24:30 +00:00
mouse 8fb29141e0 Hook srt into the rest of the kernel build machinery, so it works to
just uncomment the pseudo-device line (which arguably should go into
other ports' GENERICs too, and at some point may).

OKed by perry.
2007-01-11 05:36:29 +00:00
jdc d8d87e9c88 sys/dev/sun/cgsix.c expects us to fill in sc->sc_ramsize.
Do that and also use it to replace a local variable.
2007-01-10 21:44:35 +00:00
cube 747e90f203 Remove traces of scd(4), which apparently never actually had a driver in
the tree.
2007-01-09 21:59:08 +00:00
tsutsui 20e2aecd79 Add ciphy(4) for vge(4) and rgephy(4) for re(4). 2007-01-09 10:19:52 +00:00
peter 1fefcfbdc3 Remove __HAVE_NWSCONS and __GENERIC_SOFT_INTERRUPTS_ALL_LEVELS. 2007-01-08 20:56:34 +00:00
chs e7b7245620 in doboot, use "longscratch" as a scratch memory location instead of
something in the (read-only) text section.  fixes PR 35068.
2007-01-08 16:54:15 +00:00
ichiro 966d923382 move devices entry to MD/conf/files.*
catch up to current kernel configuration
2007-01-08 16:21:45 +00:00
isaki 0b16b54211 Bring back the comment which was lost at rev1.35 . 2007-01-08 10:06:29 +00:00
isaki 3bdf14cb4e Bring back the comment which was lost at rev1.22 . 2007-01-08 10:06:08 +00:00
christos ae24ecaa72 support kvm68 is MP systems. From Pierre Pronchery 2007-01-07 20:16:14 +00:00
jmcneill 6728db6ed4 Another annoyance with Cromwell/Xromwell; apparently if your Xbox has a
Conexant TV encoder and the Microsoft dashboard is set to widescreen AND
you are using a standard definition AV pack, the loader configures the
framebuffer to 1024x576. Reported by riz@
2007-01-07 19:40:50 +00:00
jmcneill 4aa8670a90 Implement TV safe area for non-VGA connections.
XXX: The Xcalibur encoder is misconfigured by Xromwell in HDTV mode, and the
test will not be centered as a result. Xcalibur still works in SDTV mode.

Note that the safe area is not applied to the X server, only the console text.
2007-01-07 16:51:44 +00:00
jmcneill 702303e8a7 Don't inherit the console's rasops flags when creating a new screen. 2007-01-07 16:34:32 +00:00
jmcneill 20e62597f7 For shadowfb, only allocate the memory we're going to use rather than the
entire possible framebuffer size allowed on this machine (4MB).

Fix a bug in av pack detection to make HDTV actually work now.
2007-01-07 04:53:29 +00:00
hubertf ad9fa84795 Add what that driver's for.
OK jmcneill@
2007-01-07 02:32:10 +00:00
jmcneill 44b441e413 Add support for HDTV and VGA connections, as configured by bootloader. 2007-01-07 01:12:42 +00:00
jmcneill bce33f601e Remove nForce ethernet hack from machdep and instead call xbox_startup from
cpu_startup, which applies the patch.
2007-01-07 01:04:26 +00:00
bouyer 1073d668ed - Add or change memory barrier to reflect the related operation
- In xencons_handler(), update in_cons inside the loop, otherwise,
  we would trigger the xenconscn_getc() workaround wich reset cons and prod
  to their original values, and this creates an infinite loop

Should fix the console hang reported by several users on port-xen@.
2007-01-07 00:02:36 +00:00
bouyer 3fbcd5f774 Don't try to handle xbd interrupts if the device is not yet connected.
Should fix NULL dereference at boot when more than one xbd device is
configured, reported by Juraj Hercek on port-xen@
2007-01-06 22:07:11 +00:00
xtraeme 222455b9dd Add ug0 at isa? commented out (driver for the Abit uGuru
Hardware system monitor).
2007-01-06 21:29:47 +00:00
dsl 728a5d8095 Descend into fatboot, regroup slightly 2007-01-06 20:48:59 +00:00
dsl 693454d602 Change build to allow a fat32 bootstrap to be built from the same sources
(the relevant changes haven't been done though).
Call built binary bootxx_fat16 for consistency.
Use 'push %cs' to push a zero value in places where we had relied on %bx
being zero from much higher up the code.
2007-01-06 20:47:15 +00:00
jmcneill e80795da77 Comment out icsphy and ukphy for now; this makes both 1.1 and 1.6 Xboxes
boot. From Andrew Gillham.
2007-01-06 19:29:36 +00:00
jmcneill 3330cd5795 No longer required as we now have a C implementation in dev/iic/pic16lc.c 2007-01-06 18:43:27 +00:00
jmcneill ded203738f Use the pic16lc@iic driver for setting the system LED, rebooting, and
powering off the machine instead of the assembly code in pic16l.S
2007-01-06 18:42:36 +00:00
jmcneill 555c5f96e9 Add Xbox Serial EEPROM driver to the sample Xbox config. 2007-01-06 18:05:20 +00:00
pavel 104e8925ea remove some leftover msgbuf manipulation from pmap.c, as done for the i386
and amd64 versions before. Inspired by PR port-i386/34186 from Wolfgang
Stukenbrock.
2007-01-06 17:48:52 +00:00
pavel a35a158dde PR port-i386/34186 by Wolfgang Stukenbrock:
mapping of msgbuf during startup may map invalid physical adresses

Apply a similar patch as in the i386 case.
The amd64 version was supplied by Blair Sadewitz, thanks.
2007-01-06 17:03:11 +00:00
pavel 74a63dbe33 correct whitespace in last commit. 2007-01-06 16:22:46 +00:00
christos 467eaaa9c1 Add generic TOD support. From Bucky Katz. 2007-01-06 16:18:18 +00:00
christos 897538853e Fix branch handling in ddb. From Bucky Katz. 2007-01-06 16:14:44 +00:00
christos acedbdccc7 Update to the latest version. From Bucky Katz. 2007-01-06 16:10:32 +00:00
christos ee28c46912 Update the gpio code to the latest. From Bucky Katz 2007-01-06 16:08:54 +00:00
pavel 9e8014fe50 PR port-i386/34186 by Wolfgang Stukenbrock:
mapping of msgbuf during startup may map invalid physical adresses

"If the last available physical memory segment on a system is less 16k,
than the startup code that will map the kernel message buffer, will fail
and map physical pages behind the last segment.  This may either only lead
to a message buffer without physical memory behind it, or to an
overlapping message buffer with something else."

Fix by allowing multiple physical memory segments to be used for msgbuf.
Also remove some leftover msgbuf manipulation from pmap.c.

Fix supplied by Wolfgang Stukenbrock in the PR, with some modifications
from me, mainly to use the already existing constant VM_PHYSSEG_MAX as the
static limit of number of msgbuf segments.
2007-01-06 15:29:02 +00:00
martin 89d077595a If we have a single byte left over after filling in all mbuf data, we need
to increase the "totlen" count too. From Sungwon Chung.
2007-01-06 13:25:19 +00:00
pavel d98112fd6b more spaces -> tabs. 2007-01-06 08:51:22 +00:00
pavel 0da58c3f26 spaces -> tabs in the new zstty lines. 2007-01-06 08:49:34 +00:00
christos ced82e8b4e New files from Bucky Katz 2007-01-06 08:16:26 +00:00
jmcneill 2a4936329d Add some WSDISPLAYIO compat options, an SMBus driver, and the pic16lc
sensor driver to the Microsoft Xbox sample config.
2007-01-06 02:45:42 +00:00
christos a7d00fb3d8 PR/34683: Bucky Katz: RTC driver
The attached patch adds support for the OMAP Real Time Clock.
2007-01-06 00:59:45 +00:00
christos faa54b03a6 PR/34682: Bucky Katz: Add support for the OMAP GPIO blocks. 2007-01-06 00:58:04 +00:00
christos 4f74175a01 PR/34680: Bucky Katz: OMAP5912 support:
Attached is a patch to add generic base support for systems based on the
OMAP 1 family.  The devices supported in this patch are serial console
and MPU timers for OS timing purposes.
2007-01-06 00:53:11 +00:00
christos 87f8f1a9a7 Scott Allan in http://mail-index.netbsd.org/port-arm/2006/07/31/0000.html
Patch to add support for ARM9E
2007-01-06 00:50:54 +00:00
christos d4a240549b From Scott Allen in http://mail-index.netbsd.org/port-arm/2006/07/26/0000.html
I ran into a problem when I tried to set up a mapping that started at virtual
address 0xFFF00000 and was 0x00100000 long.  In other words, the mapping
should have gone to the end of the 32 bit address space.  The mapping was made
with no problem, but pmap_devmap_find_va() wouldn't find an address within the
mapping.  For example, if I told it to find a mapping for 0x1000 bytes at
0xFFF01000, it would try to make sure that 0xFFF01000 was greater than
0xFFF00000 and that (0xFFF01000+0x1000) was less than (0xFFF00000+0x00100000).
However, that last expression (0xFFF00000+0x00100000) wrapped around to be
simply 0x00000000 so it wasn't found.  This patch fixes this problem in
pmap_devmap_find_va() and pmap_devmap_find_pa() by subtracting one off of the
sizes to be compared, so in my example, (0xFFF01000+0x1000-1) will be less
than (0xFFF00000+0x00100000-1).
2007-01-06 00:40:47 +00:00
christos 3f32518db7 From Scott Alan in http://mail-index.netbsd.org/port-arm/2006/07/26/0000.html
This one is really simple.  I wanted to use KERNEL_BASE in an assembly source,
but arch/arm/include/arm32/vmparam.h wasn't protected by #ifndef
__ASSEMBLER__.  The patch adds the protection.
2007-01-06 00:39:02 +00:00
christos 1e1acd26ce From Scott Alan in http://mail-index.netbsd.org/port-arm/2006/07/26/0000.html
identify_arm_cpu() prints out a helpful message when it detects that you're
trying to run on a CPU that you didn't configure for.  Unfortunately, the
check for class_option being NULL is backward, so it either won't print the
class_option, or it will try to dereference a NULL.  The patch just flips the
!= NULL to be == NULL.
2007-01-06 00:37:28 +00:00
christos 2eb1bf64a3 PR/34679: Bucky Katz: Basic support for the TI OMAP family of ARM processors
Attached is a patch to add generic base support for systems based on the
OMAP 1 family.  The devices supported in this patch are serial console
and MPU timers for OS timing purposes.

This patch depends upon patches previously sent by Scott Allan: "Three
small patches for ARM" on 07/26/2006 and "Patch to add support for
ARM9E" on 07/31/2006.

A staggering number of mobile phones, PDAs, and other portable devices
are based on these systems, and OMAP would make a great addition to
NetBSD.  If there are any concerns we can address or other things we can
do to get this code accepted upstream please let me know, thanks,
2007-01-06 00:29:52 +00:00
jmcneill afcfbdad8b On the Xbox, prevent scanning past the first device on bus 1. 2007-01-05 17:53:53 +00:00
jmcneill 3f24c8d89c Enable Microsoft Xbox controller driver. 2007-01-05 17:46:24 +00:00
jmcneill 6f578b89df Cleanup sample XBOX config file. 2007-01-05 05:04:38 +00:00
jmcneill 32238623bd Add support for wsfb; now we can run an X server on the Xbox! 2007-01-05 04:58:32 +00:00
jmcneill e619988ed2 Allow xboxfb to attach and initialize the display early in the boot process. 2007-01-05 04:13:09 +00:00
jmcneill 22ee0fcbec Attempt to initialize the console slightly later for hw drivers that wish
to be deferred. While we're here, clean up the Cromwell/Xromwell Xbox
workaround.
2007-01-05 04:07:23 +00:00
jmcneill fa9fc940ce xboxfb is a possible candidate for the console screen, from Andrew Gillham 2007-01-05 02:39:50 +00:00
jmcneill 4a0aec6ff9 Don't attempt to clear the screen when adding a new virtual console, and
use shadowfb to make scrolling significantly less painful until we get a
proper accelerated console driver for this machine.
2007-01-05 02:09:13 +00:00