Commit Graph

38980 Commits

Author SHA1 Message Date
uch
43d9d9efc5 gs_init(VESA_1A) hang up on SCPH-50000.
use bootloader's setting instead. (enable PCRTC only.)
2004-07-10 05:55:05 +00:00
matt
635306e7ba Clear PSL_SE on a scheduler activation upcall. 2004-07-09 22:59:17 +00:00
matt
4f6490d718 Add some comments, clean things up so routines can be called from the
idle loop.
2004-07-09 22:00:46 +00:00
bouyer
8e03c54653 Add geodeide(4), a driver for the AMD Geode CS5530A IDE controller.
Tested by Ian Zagorskih (ianzag at megasignal.com).
2004-07-09 18:38:37 +00:00
uch
6eb5e5bec7 set BEV bit before coping kernel.
set next kernel stack pointer.
2004-07-09 16:12:50 +00:00
uch
6e81ef4d33 set BEV bit before coping kernel.
set next kernel stack pointer.
2004-07-09 10:31:14 +00:00
uch
8c71b8c6be fix I-cache flush loop counter bug. 2004-07-09 10:04:35 +00:00
sekiya
ce13caf073 Add wsmouse* at zsms* 2004-07-08 22:43:30 +00:00
sekiya
c1036b3eff Uncomment keyboard/mouse at zs* 2004-07-08 22:32:34 +00:00
sekiya
5110af7a8b Add support for keyboard and mouse attachments at zs*, used on IP12 and IP20.
Code written by Steve Rumble; committed with his blessing.

Using a glass TTY as a console on IP20 (IP12 untested) should now be possible.
2004-07-08 22:30:53 +00:00
chris
97e6dff8ab Remove duplicate vidcvideo0 and wsdisplay lines 2004-07-08 22:21:17 +00:00
drochner
af0dfbe584 don't need md timing functions for joystick anymore 2004-07-08 22:07:47 +00:00
manu
99b82f59fb Fix semantic problems with commpage functions, by Wolfgang Solfrank 2004-07-08 13:24:39 +00:00
christos
daf173e8a5 follow suit and fix copyright attribution. 2004-07-08 11:46:55 +00:00
sekiya
9a82e9035c Uncomment grtwo* attachment and its corresponding wsdisplay* 2004-07-08 10:12:27 +00:00
sekiya
ae7e3d69b0 Fake a FIFO interrupt iff the FIFO interrupt is unmasked. Should eliminate
the "spurious interrupt" messages on machines without grtwo displays.
2004-07-08 10:10:49 +00:00
sekiya
9c289db87a Remove unnecessary variables from grtwo_cnattach(). 2004-07-08 10:02:10 +00:00
sekiya
ead6809450 Call gio_video_init() for IP12 and IP20. Neither model uses the same keyboard
glue as the IP22, so add conditionals in the keyboard connection logic.
2004-07-08 10:00:30 +00:00
manu
0d64053852 I copy/pasted the copyright notice from another file but I forgot to
change the name of the contributor: Wasabi Systems did not contribute
that file.
2004-07-08 07:36:25 +00:00
christos
663957c46f make this compile again. 2004-07-07 23:28:28 +00:00
christos
f68663bc91 kill duplicate code. 2004-07-07 22:02:12 +00:00
drochner
96623fecad also add <machine/joystick.h> to alpha and amd64, to allow compilation
of certain multimedia applications
2004-07-07 18:03:51 +00:00
he
9285117b64 If a playstation2 kernel config does "options KLOADER_KERNEL_PATH",
it now also needs to do "options KLOADER", ref. the new playstation2
machdep.c, so fix these kernel configs accordingly.
2004-07-07 18:03:42 +00:00
mycroft
0230f9fefd Move spc into the MI area. 2004-07-07 08:41:34 +00:00
mhitch
fcdbc29795 After sending the IPI to halt other CPUs, clear cpus_paused to ensure that
the other CPUs resume execution.  If the halt was initiated from DDB, the
CPUs will not have been resume execution and will never halt.  If one of the
paused CPUs is the primary CPU, the system will hang.  Fixes PR#26159.
2004-07-07 02:46:14 +00:00
mycroft
d539198300 Minor adjustment so that it is safe for an interrupt handler to unregister
itself.  Fixes a potential problem with PCMCIA IRQ probing.  See PR 9928.
2004-07-07 01:03:57 +00:00
rumble
84931191d5 Fix a typo in zsms0's parent. 2004-07-07 00:58:43 +00:00
sekiya
c279001857 Oops. Remove reference to phantom variable. 2004-07-07 00:11:11 +00:00
sekiya
79fdbacde6 Add ih_next to the data structure. Part of Steve Rumble's interrupt-sharing
scheme.
2004-07-07 00:08:43 +00:00
sekiya
eadba4d41f Add commented-out entries for grtwo wscons support (and fix the entries for
serial keyboard/mouse).
2004-07-06 23:59:48 +00:00
sekiya
432805bb11 Add the following to the int driver:
* if the driver hasn't been properly initialized, spin for a bit in wait_fifo()
  rather than try to access the local0 status register.
* allow interrupt sharing (from Steve Rumble; necessary for IP20 glass TTY
  support).
2004-07-06 23:56:13 +00:00
sekiya
9c873da232 Many fixes to the grtwo wscons driver:
* fills seem to be broken.  Avoid filling large vertical regions; instead,
  attempt to break it up into managable chunks.  This doesn't work perfectly
  either, so clear the screen row-by-row (which does work).
* Characters are now right-side-up
* the driver now uses screen coordinates properly.

With the exception of column erases (which fall prey to the fill issue), the
driver is now usable.
2004-07-06 23:51:40 +00:00
mycroft
c8a3263cbf Remove XSERVER and XSERVER_DDB from all config files. wscons does not use
these, and pccons is rapidly heading for the guillotine.
2004-07-06 22:53:36 +00:00
uch
3ecef458d2 remove CPU infomation message. (cpu0 print it) 2004-07-06 16:21:05 +00:00
uch
52ffaa09fb don't attach cpu twice. 2004-07-06 16:20:43 +00:00
manu
9ff70d0082 Assembly versions of commpage functions for Powerpc, by Peter Grehan.
bigcopy is still missing
gettimeofday is implemented as a system call, whereas on Darwin, it reads
the data from the commpage (the kernel updates it).
2004-07-06 14:11:49 +00:00
mhitch
66828ce55c Ooops - buspin is what should be used. 2004-07-06 13:36:19 +00:00
uch
f4dabb523f MI part of kloader moved to dev/kloader.c from arch/hpc/hpc/
dreamcast and playstation2 port are changed to use this.
2004-07-06 13:28:39 +00:00
uch
3a292b1beb MI part of kloader moved to dev/kloader.c from arch/hpc/hpc/
dreamcast and playstation2 port are changed to use this.
2004-07-06 13:09:18 +00:00
mhitch
a01c5c07dc When calculating the mcpcia irq, include bus pin to account for devices
behind a PCI-PCI bridge.  Fixes PR#25831 (and the duplicate PR#26031).
Verified by Chuck Silvers.
2004-07-06 04:15:50 +00:00
mycroft
1e3cb7e7ec Back out part of the changes in rev 1.86. Remove npxdna_notset(), and instead
have the DNA trap handler point to npxdna_empty() by default.  This way, if
there are no npx devices found and MATH_EMULATE is not configured, we go back
to the old behavior of issuing a SIGKILL and printing:
pid XXX killed due to lack of floating point
rather than panicking.
2004-07-06 01:30:08 +00:00
abs
1a06ef7694 Remove accidently added UMASS_DEBUG. Thanks to kimmo for spotting. 2004-07-05 22:30:38 +00:00
mycroft
6ad727416a Attempt to handle unknown ServerWorks chips, although I wouldn't bet on it
working cleanly.
2004-07-05 19:15:05 +00:00
yamt
201fdee01b for uniprocessor, splvm() is enough to protect tlb flush queue. 2004-07-05 11:19:46 +00:00
pk
aaf3dc5c61 Enable the `nell' pcmcia bridge. 2004-07-05 10:50:35 +00:00
pk
134c600216 Use bus_space_tag_alloc(). 2004-07-05 08:51:19 +00:00
pk
a7c40722d8 Call inittodr() from main(). Let file system code set the recorded `last
update' time (if any) through the new function setrootfstime().
2004-07-05 07:28:45 +00:00
martin
41de8a7a66 Options FULL_SPARC_BUS_SPACE is gone. 2004-07-05 06:31:36 +00:00
uwe
75c9bda0e0 GENERIC config is used as a starting point for custom configs so make
it more rich: reinstate debug options (commented out), add a bunch of
MI options, file systems, pseudo devices (commented out), sort some
entries, add more comments and clean up existing comments.
2004-07-05 00:09:45 +00:00
uwe
9df8b71dbf Express LED operations using standard macros.
Same object code is generated.
2004-07-04 23:19:36 +00:00
uwe
7d07bda558 Add major for audio. 2004-07-04 22:56:14 +00:00
uwe
7393885072 Fix the comment for KGDB - it is a remote debugger. 2004-07-04 22:02:04 +00:00
manu
67cf1bc043 MacOS X.3 introduces a new sigreturn for PowerPC, with a usercontext
versionning argument. For now we only implement the X.2 flavor.
2004-07-04 21:03:55 +00:00
christos
7c328d9858 add a skeleton that defines the symbols we need; no implementation 2004-07-04 15:24:30 +00:00
christos
a3eca3bd01 Add USRSTACK definitions 2004-07-04 15:22:29 +00:00
christos
0122ef6740 add darwin_commpage_machdep.S [does nothing for now, and the name is too long] 2004-07-04 15:22:03 +00:00
chris
d954e32a8f Update to match pseudo devices and other options in the GENERIC kernel. 2004-07-04 13:35:08 +00:00
tron
16e9e90a52 Add re(4). There are laptops with an onboard Realtek 8169 Gigabit LAN. 2004-07-04 13:16:56 +00:00
chris
2d3a6b46c9 Use a define, rather than hard coded number, for the interrupt to claim.
Make use of the ability to parse the cs's eeprom for values, rather than
ignoring the eeprom.
2004-07-04 13:12:58 +00:00
chris
91825be689 Add more defines for the available IRQ's on a 7500. 2004-07-04 13:11:43 +00:00
pk
ce03cf29a9 cpu_simple_lock: on spin out, check whether we've already panicked. If so,
just take the lock on the assumption that in panic mode, we run on a single
CPU anyway.
2004-07-04 09:54:20 +00:00
pk
edd81fa220 Fix typo in CHECK_SP_REDZONE() which has been there since the beginning of time. 2004-07-04 09:11:33 +00:00
mycroft
2b9d3e39a0 Fix confusion between index numbers in one table and node numbers in another
table, that was causing PNPBIOS to fail on some machines.  Should fix PR 18610.
2004-07-04 06:18:26 +00:00
mycroft
58a7151020 Update Serverworks chip names, and add a few more. 2004-07-04 05:53:55 +00:00
mycroft
88bac700e0 Be more careful about what ServerWorks devices we attempt to map PCI buses
behind.
This should address PR 21458 and PR 25670.
2004-07-04 04:55:18 +00:00
mycroft
cd5dfd5c5c Rebuild. This primarily updates NGDT. 2004-07-04 03:35:01 +00:00
mycroft
15eb49718a s/PAGE_SIZE/NBPG/ to make this compile again. 2004-07-04 03:21:53 +00:00
mycroft
66760f9d8c Change MAXDRV to 0x8f, to fix El Torito booting problems on some machines.
See PR 22647.
2004-07-04 00:38:51 +00:00
mycroft
a8f51b14b9 b -> B 2004-07-04 00:21:55 +00:00
mycroft
5f1cbe539c If apm_set_powstate() fails, make sure we run apm_resume() so that run any
powerhooks we have.  From PR 13671 (but applied to both standby and suspend).
2004-07-03 22:29:13 +00:00
manu
7fef082024 Move all the MD bits of commpage to a new file.
Map the comm page as RW in kernel (we want to modify it but not to execute it),
and RX in userland (no need to modify it but we want to execute it
2004-07-03 22:17:18 +00:00
mycroft
6343f6f6ee Per PR 8120, put back the reloading of the IDT in cpu_reset(). (Presumably
this overrides some descriptor caching in the CPU.)
2004-07-03 21:02:09 +00:00
yamt
eb3fe82f73 i8254_initclocks: fix an integer overflow problem in rev.1.83.
a patch provided by FUKAUMI Naoki.  PR/26152.
2004-07-03 18:24:37 +00:00
manu
e317692907 When the keyboard type is unknwon, don't attach both ADB and USB, as the
kernel will panic if an USB keyboard is plugged later.

Of course there will be a problem on a desktop machine with an USB attached
keyboard, but that cannot be fixed without access to such a machine..
2004-07-03 16:24:57 +00:00
uch
c5f0120f16 hpcmips independent hpcapm part are moved to sys/dev/hpc/
hpcmips dependend part is separated to sys/arch/hpcmips/hpcapm_machdep.c
2004-07-03 12:54:34 +00:00
uch
bb2b8b1099 jornada 6x0 power mannagement support.
[on/off] button power off LCD and CPU sleeps.
2004-07-03 12:49:21 +00:00
simonb
7f2fc41e2f In cpu_{set,get}context(), copy the FP registers themselves and the FP
CSR separately (and now from the correctly sized __fpregset_t).  The
FP CSR is copied separately to avoid endianness/alignment issues.

Part of fix for PR port-mips/25942.  Thanks to Christos Zoulas and
Klaus Klein for help with debugging this.
2004-07-03 05:08:34 +00:00
simonb
7b72fd9dc6 Drop the "catchall" __fpregset_t, and use either a 32-bit or 64-bit
structure depending on the current ABI.

Part of fix for PR port-mips/25942.  Thanks to Christos Zoulas and
Klaus Klein for help with debugging this.
2004-07-03 05:06:37 +00:00
manu
26200ee754 In MacOS X.3, the kernel maps tw opages of memory in every user process.
This areas is called the comm pages. It is used to provide fast access to
several data and functions.

The comm pages are mapped starting at 0xffff800 (address chosed so that
absolute branch can be used, so it can be accessed even when dynamic linking
is not ready). NetBSD has the user stack here, so we need to provide a
Darwin-specific stack setup routine which sets the top of the stack at
0xbfff0000.

This implementation is not complete but it does enough to get MacOS X.3
starting again (static binaries run, dynamic binaries still have an issue).
in the comm pages functions, we only implement bcopy, pthread_self and
memcpy.

TODO:
- clean up the powerpc specific code from MD parts
- for now we map only one page to avoid a crash, we want two pages.
- write all the comm functions.
2004-07-03 00:14:30 +00:00
mycroft
0e13cf8bb2 Actually initialize the direct-mapped DMA window, which is clearly not set up
by the firmware on my Multia.  Now PCI devices like the builtin tlp actually
work.
2004-07-02 19:54:22 +00:00
uch
db7514c3d2 enable X-window configuration default.
add com* at pcmcia and ppp configuration.
move debug option to DEBUG.
2004-07-02 18:05:23 +00:00
drochner
12abfacf0b just include <sys/joystick.h> 2004-07-02 17:15:10 +00:00
drochner
2706519f5d add a <machine/joystick.h> which just includes the new common one 2004-07-02 17:02:24 +00:00
mycroft
f98a477f22 Ahem. Parts of this are *clearly* derived from the old i386/isa/intr.c, so
put back the copyright from there.
2004-07-02 16:05:57 +00:00
simonb
f41923b7dd Fix a precedence problem setting uc_flags.
Part of fix for PR port-mips/25942.  From Christos Zoulas.
2004-07-02 12:32:16 +00:00
petrov
f109401e45 _bus_dmamap_load_mbuf: check and process pmap_extract failure. 2004-07-02 07:39:07 +00:00
uch
8753d093dd add KLOADER 2004-07-02 03:58:58 +00:00
petrov
5a324adab2 Remove unused var, correct formats. 2004-07-02 02:50:25 +00:00
petrov
a021a66c36 Added UPA_MID definitions and macros(similar to FreeBSD).
Added membar_store, membar_load macros.
No need to set %asi _after_ alternate space use in corresponding functions.
Enable(unifdef) casa functions for __arch64__.
2004-07-01 22:59:16 +00:00
kleink
d93fc4c14e Tidy up the namespace: lint -> __lint__. 2004-07-01 22:52:34 +00:00
mycroft
3b589a6ca4 Fix a really old ("since day one") bug: send specific EOIs to the PIC, not
non-specific EOIs.  This really shouldn't matter so much, but I'm guessing
there's a strange interaction with the PALcode (possibly related to the fact
that the PALcode itself may be sending an EOI itself on some systems).

I have tested this on a Multia, and it appears to work just fine without the
INITIALLY_{ENABLED,LEVEL_TRIGGERED}() stuff now, so I'm also removing that.
2004-07-01 18:46:49 +00:00
uch
11e21240cc fix iochip configuration.
reported by Alexander Frolkin <avf@ox.compsoc.net>
2004-07-01 17:45:12 +00:00
uch
ef8a3ef38e <space>,<tab> clean up. 2004-07-01 17:43:52 +00:00
heas
66307fc36e typo in define name, littie -> little 2004-07-01 14:57:46 +00:00
heas
ae5ea826a2 The DAC registers do not need to be mapped linearly and thus should not. 2004-07-01 14:54:13 +00:00
yamt
38cdafcad1 {i8254,lapic}_initclocks: try to be more precise using fixtick. 2004-07-01 13:00:39 +00:00
yamt
3998262d5e defparam HZ. 2004-07-01 12:44:26 +00:00
pk
7f51f38abc Avoid unnecessary stores of discarded values. 2004-07-01 10:23:41 +00:00
pk
a61069b899 Revision 1.27 of clock.c applies to the Intersil interrupt, not sun4m timers. 2004-07-01 09:59:00 +00:00
petrov
ef4d3a19c3 iommu_dvma_load_raw: reserve extra dvma page. Fixes PR #13654. 2004-07-01 06:40:36 +00:00