Commit Graph

25579 Commits

Author SHA1 Message Date
tsutsui 20c4de8a40 Move cachectl1() declaration from sun3/machdep.h to include/cpu.h;
it is refered by sys/compat/linux/arch/m68k/linux_machdep.c.

XXX: all declarations in machdep.h should be moved into cpu.h?
2001-02-04 01:31:54 +00:00
tsutsui a031d05fa8 Add -D__m68k__ to XDEF.
It is required by sys/compat/linux/common/linux_exec.h.

XXX: -undef is still required?
2001-02-04 01:26:44 +00:00
marcus 0d6830073e Added subunit scan. 2001-02-03 23:25:51 +00:00
marcus 3f60497b85 Increased HZ to 100. 2001-02-03 23:24:30 +00:00
is e36ad02480 gspa can directly create the C language array. 2001-02-03 20:23:59 +00:00
bjh21 74591d814f Add a definition of MID_MACHINE -- kernel cores still need it. 2001-02-03 17:18:30 +00:00
tsutsui 4f047d1990 Bring FPU probe code from atari/fpu.c and remove unneeded includes. 2001-02-03 14:30:42 +00:00
tsutsui b26a441f6a Remove reg_dump() declaration, which is in <m68k/m68k.h> 2001-02-03 13:02:20 +00:00
tsutsui 8ae17a2c61 Use macro in <m68k/m68k.h> for cputype and mmutype. 2001-02-03 12:59:48 +00:00
tsutsui 497bb4f2ea Remove declaration of copypage() and zeropage(); they are in <m68k/m68k.h> 2001-02-03 12:57:05 +00:00
tsutsui 5f9454752b m68k/m68k.h is now pulled via machine/cpu.h. 2001-02-03 12:55:35 +00:00
tsutsui fdddc67af0 Remove declaration of getdfc(), getsfc() and fputype.
They are in <m68k/m68k.h>
2001-02-03 12:53:23 +00:00
tsutsui 31a0a141cb Include <m68k/m68k.h> to use m68k common definitions. 2001-02-03 12:50:53 +00:00
tsutsui a3cd82caf9 Remove declaration of cold; it's in <sys/kernel.h> 2001-02-03 12:46:04 +00:00
tsutsui 53e0e33ba4 Remove some of broken cf_unit usage. 2001-02-03 12:40:58 +00:00
is 92fd3fa589 Initial, still incomplete wscons support by Jukka Andberg, PR 11068 2001-02-02 21:52:11 +00:00
thorpej c8cdb12913 Add some comments about P/USEG 2001-02-02 18:25:04 +00:00
fvdl fbd66cd154 Add COMPAT_15 2001-02-02 10:53:48 +00:00
sato dcdef16dcd Copyright year. 2001-02-02 08:31:04 +00:00
mrg c084c19f60 add "wd" to chrtoblktbl 2001-02-02 07:39:28 +00:00
mrg 2a9fceab8d enable the kbd/ms. enable some compat options for compat_sunos 2001-02-02 07:33:42 +00:00
mrg 9954eaa78b include compat/sunos32/sunos32.files 2001-02-02 07:32:45 +00:00
mrg 04cb3c57d6 bump NMBLUSTERS now this machine has NFS server tasks. 2001-02-02 07:32:20 +00:00
marcus 5592504080 Fixed type mismatch in debug output... 2001-02-02 06:27:44 +00:00
briggs 9150a401ba No longer needed 2001-02-02 06:12:34 +00:00
briggs 044caccfff Split OpenPIC support into powerpc so ports only need minimal custom
configuration.  openpic_init() now takes a single argument that is the
base of the OpenPIC register space.
2001-02-02 06:11:52 +00:00
thorpej 4fab177f7e Don't make the reporting of the keyboard type a parenthetical. 2001-02-02 03:09:16 +00:00
thorpej 2ae9f715f6 Report the VGA/NTSC RGB/composite mode of the display. 2001-02-02 03:07:29 +00:00
thorpej ef2315d256 Rewrite how mod/ref emulation is done. In particular, make
modified attribute checking actually work.  Previously, a
page could be reported as modified even if it wasn't!  This
is very bad, and e.g. caused the VM system to attempt to
"clean" pages of read-only files.

Only lip-services is paid to referenced attribute emulation.
This could be improved.
2001-02-02 02:28:18 +00:00
leo 50c553e643 Announce page-size to the VM-system. Thanks to Izumi Tsutsui for pointing
this out.
2001-02-01 21:22:55 +00:00
thorpej 6195ca3474 Add some info to the dmamap_sync assertion messages. 2001-02-01 19:56:44 +00:00
marcus fc7cc52392 Fixed the last raw accesses to use bus_space. Also added DMA mem size field. 2001-02-01 19:35:04 +00:00
leo 3d1167e274 Fix fallout from lastest tty changes. 2001-02-01 08:59:45 +00:00
leo 9b569c3abe No longer update the PAGE_* variables. They have turned into compile time
constants.
2001-02-01 08:58:03 +00:00
tsutsui 94ebf6d0d7 Update for the install floppy:
- Add newer devices (wscons etc.)
- Add -mmemcpy to COPTS
- Reduce maxusers
- Remove KERNFS
- Disable some COMPAT_* options
- Add MEMORY_DISK_SERVER=0
- Enable options NFS_V2_ONLY and VNODE_OP_NOINLINE
2001-02-01 06:23:54 +00:00
thorpej f436156dd7 Use the BOLD8x16 font for the console, and remove the RCONS_16BPP
option (no longer needed).
2001-02-01 01:27:59 +00:00
thorpej f16d219c1b Config glue for rasops/wsfont. 2001-02-01 01:27:04 +00:00
thorpej fbfc0872d8 New PowerVR display driver, based on the TURBOchannel "cfb"
driver by Tohru Nisimura (a very good framework for a FB driver,
BTW!), using bits of Marcus's original driver for the hardware
access.

The main advantage of this version is that is uses rasops (which
is faster than the rcons stuff) and wsfont, so you can select the
console font in the kernel config file.  Using the BOLD8x16 font,
you get an 80x30 console (vast improvement compared to the Gallant12x22
font).
2001-02-01 01:25:56 +00:00
thorpej 41b0cdf3e5 Add configuration info for the SEGA Broadband Adapter,
and enable the NFS file system and DHCP NFS root support.
2001-02-01 01:09:12 +00:00
thorpej 26cf6921bc GAPS PCI bridge support. Low-level stuff from Marcus, bus_dma
implementation from me.
2001-02-01 01:04:55 +00:00
thorpej e2c0abd45d Implement {read,write}_region_1, and sprinkle some __volatile
around for sanity.
2001-02-01 01:01:50 +00:00
marcus f2358f8d43 Basic G2 locking implemented. 2001-01-31 21:58:37 +00:00
thorpej d729ba2b1f Support for masking/unmasking IRQ 11 (used by the G2/GAPS bridge).
From Marcus.
2001-01-31 18:44:07 +00:00
thorpej a42d651b53 G2/GAPS PCI configuration glue, for the Broadband Adapter. 2001-01-31 18:39:46 +00:00
thorpej 9342211052 PCI glue, from Marcus. 2001-01-31 18:38:26 +00:00
thorpej 7135afee31 New bus_space and bus_dma framework, based on the Alpha implemetation. 2001-01-31 18:37:11 +00:00
thorpej 63885cd020 G2 bus support. Low level stuff by Marcus, bus_space stuff by me. 2001-01-31 18:33:24 +00:00
pk 25a91d5c1e _bus_dma_valloc_skewed(): return a vaddr_t, not error codes; make missing
boundary check return an error, so the caller can decide how to respond.
2001-01-31 15:17:42 +00:00
thorpej c625c7ee25 Set the keyboard layout based on what type of keyboard
we probe, defaulting to Japanese if we don't know what
kind of keyboard we have.

XXX This should be done differently, if we ever want to
support multiple keyboards.
2001-01-31 03:21:03 +00:00
thorpej 37aca7f3f0 Add a US keyboard map. This may need to be reworked, as this
uses the Japanese keyboard map as the base.
2001-01-31 03:19:50 +00:00
thorpej b81a17e100 Make the "maple" bus a direct config bus. Now, when a device is
not configured into the kernel, you know about it, e.g.:

Dreamcast Controller         at maple0 port 0 not configured
2001-01-31 00:14:29 +00:00
thorpej 5c8624a602 Recognize the US keyboard. 2001-01-31 00:08:35 +00:00
tshiozak d3545308ee add umidi. 2001-01-30 23:32:34 +00:00
tsutsui 677243711e Add a version file and print version strings generated by newvers_stand.sh. 2001-01-30 14:29:47 +00:00
tsutsui 9af4874133 Umm, fix botch in the previous;
include bsd.own.mk at the top, and include bsd.prog.mk at the bottom.
2001-01-30 14:21:49 +00:00
tsutsui 75e4c0c1be - bzero() -> memset()
- Remove unneeded includes
- WARNSfy
2001-01-30 14:11:00 +00:00
tsutsui 85e5565f13 Remove (unused) -DBOOT_DEBUG. 2001-01-30 12:48:34 +00:00
tsutsui 2b258b5e2b Include bsd.prog.mk at the top to pull in ${PRINTOBJDIR}. 2001-01-30 12:42:43 +00:00
msaitoh 61831529f2 add some macros for 8bit PCMCIA access 2001-01-30 04:15:10 +00:00
msaitoh e0b71cc821 fix last commit. 2001-01-30 03:01:45 +00:00
msaitoh e094a52b1f fix pmap_* arguments when SH4_PCMCIA is defined. 2001-01-30 02:39:57 +00:00
msaitoh 69ababe7ba more use _C_LABEL() 2001-01-30 01:32:56 +00:00
msaitoh 14bda6deb9 use macro for CCR register 2001-01-29 22:19:19 +00:00
chuck 9f82193c0e ignore garbage left in registers by some APM bios (IBM thinkpad) when
event is a duplicate.

gets rid of annoying "APM get event: unknown error code (0x530b)" messages.

PR#12067 (YAMAMOTO Takashi)
2001-01-29 19:26:36 +00:00
leo dcee338286 Fix y2001 problem in the initial read of the RTC. 2001-01-29 08:32:23 +00:00
uch 67c95e9ab7 remove old platid_gen 2001-01-29 04:23:01 +00:00
mrg 6d444f5960 kill the ad clause in my license. 2001-01-29 01:37:56 +00:00
itohy a9cd6b907b Performance hack.
Mainly for the Neptune-X Ethernet adaptor,
and improves ftp(1) speed by ~10%.

	get: 219 KB/s -> 246 KB/s
	put: 226 KB/s -> 247 KB/s
	(X68030, MC68030 25MHz)
2001-01-29 01:09:29 +00:00
is 6cec6799ac SIR_CLOCK is gone. 2001-01-28 22:31:53 +00:00
is 5d4912dc4b Add NetBSD rcsid, clean up comments. 2001-01-28 22:18:17 +00:00
is f7aa87a4a5 Jens Schönfeld seems to recall the name is ISDN link. 2001-01-28 21:43:38 +00:00
ragge e4d9af4b42 A bunch of new CPUs that are supported, from Michael Kukat
(michael@unixiron.org). Among them are 4000/400, 4000/500 and 4000/105A.
2001-01-28 21:01:52 +00:00
pk 5538893eda sun4_dmamap_load(): Check if boundary condition can be satisfied instead
of panicing blindly.
2001-01-28 20:48:31 +00:00
ragge 747983bb5b Fix late "constifying" in ddb. 2001-01-28 20:47:45 +00:00
ragge 630d0523f6 These are not used anymore. 2001-01-28 20:04:50 +00:00
ragge 8032849729 Rename dz_ibus to dz_vsbus. 2001-01-28 19:26:34 +00:00
uch 17b8c0e553 setup platid and config_hook. 2001-01-28 03:40:25 +00:00
uch 2f13dfd80c s/EVBSH3/HPCSH/ 2001-01-28 03:31:30 +00:00
uch 584cfa7669 Switch to MI md_root.c. 2001-01-28 03:09:40 +00:00
uch 37e1f36fec add hpc dir if MACHINE is hpcmips or hpcsh. 2001-01-28 02:58:19 +00:00
uch 6be22c0c6f hpcmips hpcsh common files are moved to arch/hpc. 2001-01-28 02:52:15 +00:00
martin a7206004fc Faster error handling for iommu_dmamap_load_raw; avoid loading the map
and unloading on error when we clearly can't get out without an error.
2001-01-28 01:26:57 +00:00
nathanw 88fbd1edd4 Add joy at pnpbios. 2001-01-28 00:50:23 +00:00
nathanw 5028590f77 PNPBIOS joystick attachment. 2001-01-28 00:37:52 +00:00
eeh 6c3bf28ffd Fix dvma problem caused by previous. Seems like the dvma segment calculation
in iommu_dmamap_unload() was not quite right.
2001-01-27 03:40:39 +00:00
lukem 952413677f add options NTP (ok-ed by thorpej) 2001-01-27 03:02:52 +00:00
is facd2d0feb Support for the Zeus Development(?) ISDN board (2189/3). 2001-01-26 21:49:04 +00:00
minoura 42c425801b Use IOCS_S_READEXT only when reading the partition boot from
higher part of the disk than 0x200000.
2001-01-26 17:30:15 +00:00
tsutsui 9f8af7c171 Sync with sun3/machdep.c:
> Require the machine-dependant DDB commands to be in db_machine_command_table[]
> and link it directly to db_command_table[] so that it's not necessary
> to do this at runtime. Make db_machine_command_table[] const on all ports.
> g/c now unneded stuff, like db_machine_commands_install(), db_machine_init()
>
> Patch written by enami.
2001-01-26 16:12:12 +00:00
aymeric a85be0a99c process_machdep.c is actually procfs_machdep.c 2001-01-26 10:31:29 +00:00
sato 8211e0e08b * support more than 16 ids.
* check the event ids are in the table.
2001-01-26 03:44:33 +00:00
sato 18ae54300c * renumber config_hook event type.
* change event id of old event type(POWERCONTROL,BUTTONEVRNT)
  to same as event id of new event type(EVENT,SET,GET).
2001-01-26 03:42:30 +00:00
is d2ace86ad7 Two suggestions by jhawk:
- be more verbose about what file is created
- adjust copied $NetBSD...$ from $ NetBSD to NetBSD.
2001-01-25 22:34:20 +00:00
is 3f25157bea Add support for ISDN Surfer (ISDN only, for the time being). 2001-01-25 22:22:15 +00:00
martin f4eec8f31f iommu_dvmamap_load_raw: add a check for creating maps larger than
expected by the creator of the dma map and fail apropriately. This
makes the syssrc/dev/pci/if_vr.c driver work.
2001-01-25 21:41:10 +00:00
fvdl f2b255d7c2 Don't use pmap_enter in vmapbuf. This is essentially a reversal of
revision 1.76. It avoids problems where an I/O interrupt for physio,
using a bounce buffer, would find the destination address mapped
read-only because the syncer process hit.

Suggested by Chuck Cranor.
2001-01-25 20:14:28 +00:00
tsutsui 08f4daf2ce Add drivers for keyboard and mouse.
(but no working framebuffer yet..)
2001-01-25 14:33:28 +00:00
tsubai d0a3070c40 Generate key press event and key release event when capslock is pressed.
Now capslock key works correctly on X11.
2001-01-25 14:08:55 +00:00
wiz ec35b8d060 Make output selection work -- you can use lineout now instead of the
internal loudspeakers.
2001-01-25 13:39:22 +00:00
tsutsui b2457f9a76 Move NEWS keymap file into MI place to share with news68k. 2001-01-25 13:13:59 +00:00
marcus 7df82ad12b Changed implementation of partitions, multisession discs now work better. 2001-01-25 01:41:47 +00:00
jmc 59d9cb6e67 Spelling police 2001-01-24 19:38:44 +00:00
jmc 5fe51991eb Enable MFS. This will allow /dev to be built on mfs. 2001-01-24 18:08:26 +00:00
sato 3689556739 * fix typo.
* change PWR_* handling to PWR_SOFT* handling, if these routines need to sleep.
2001-01-24 09:34:26 +00:00
sato 2e9c446398 * dopowerhooks(PWR_SOFTSUSPEND) in apm_suspend().
* dopowerhooks(PWR_SOFTSTANDBY) in apm_standby().
* dopowerhooks(PWR_SOFTRESUME) in apm_resume().
* dopowerhooks(PWR_RESUME), dopowerhooks(PWR_STANDBY),
  dopowerhooks(PWR_SUSPEND) run in splhigh() state.

These changes sync with arch/i386/i386/apm.c.
2001-01-24 09:29:25 +00:00
jmc c97a56563e Turn on NFS_V2_ONLY as the kernel has gotten too big for the ramdisk otherwise. 2001-01-24 06:10:09 +00:00
sato fbf168d909 delete unneed debug message. 2001-01-24 03:52:16 +00:00
sato a164b74b53 revert one of 1.34 change.
> * emul/mapping infomation turn to per screen.
(my misunderstanding)
currently per device.
2001-01-24 03:50:20 +00:00
sato 4af7f46d47 * support hpcfb_show_screens()'s cb and cbarg arguments. (HPCFB_MULTI)
* emul/mapping infomation turn to per screen.
* rename hpcfb_check_scroll() to hpcfb_check_update(). (HPCFB_JUMP)
* rename hpcfb_scroll_update() to hpcfb_update(). (HPCFB_JUMP)
* update experimental HPCFB_JUMP codes. (but not yet fix yet)
2001-01-24 01:38:53 +00:00
bjh21 917e1e8fd2 Set the palette in 4bpp modes. They still don't work right, though. 2001-01-24 00:56:29 +00:00
bjh21 050769744d cf_unit usage is now fixed. 2001-01-24 00:03:21 +00:00
bjh21 3c3ed6cecd Flush out cf_unit abuses.
Also, most device functions related to IRQ handling no longer take a device
pointer.  We make so many assumptions about the machine's layout in irq.c that
this just seemed silly.
2001-01-23 23:58:31 +00:00
bjh21 d21e15aefe This is no longer used. 2001-01-23 23:19:45 +00:00
bjh21 c59e8d1831 ANSIfy. 2001-01-23 22:59:24 +00:00
bjh21 34bf08cd05 Use a permanent breakpoint to invoke DDB rather than constructing a trapframe
manually.  Prevents the problem introduced in the trapframe unification
whereby continuing from DDB would cause a panic.
2001-01-23 22:41:16 +00:00
bjh21 f32fc0fc90 Use evcnts properly for interrupt counting.
The architecture here follows that of the vax port -- each device has its
evcnt in its softc, but defers actually incrementing it to the IRQ
dispatcher.  This way, devices can attach sub-counts (e.g. Rx and Tx counts
for Ethernet interfaces), but don't all have to have code to increment the
counters.

Drivers deliberately call evcnt_attach_dynamic() before establishing their
interrupt handler so that the establish routine can attach a parent event if
that's appropriate.  At present, it isn't.
2001-01-23 22:07:59 +00:00
bjh21 8c87715ce0 We abuse cf_unit. The shame! 2001-01-23 22:07:58 +00:00
bjh21 616dad1a1b Use evcnts properly for interrupt counting.
The architecture here follows that of the vax port -- each device has its
evcnt in its softc, but defers actually incrementing it to the IRQ
dispatcher.  This way, devices can attach sub-counts (e.g. Rx and Tx counts
for Ethernet interfaces), but don't all have to have code to increment the
counters.

Drivers deliberately call evcnt_attach_dynamic() before establishing their
interrupt handler so that the establish routine can attach a parent event if
that's appropriate.  At present, it isn't.
2001-01-23 22:07:57 +00:00
martin 97b57e69cc Make bus_dmamap_load_mbuf and bus_dmamap_load_uio use independend
segment lists for their mapping; make iommu_dmamap_unload deal with
this type of maps.

Coded by Eduardo, tested (and minimaly tweaked) by me.
2001-01-23 20:31:28 +00:00
nonaka 21f8de1fcd fix dup include ossaudio. 2001-01-23 14:12:25 +00:00
tsutsui ec63f6df14 Use MI loadfile() in loadprotoblocks(). 2001-01-23 11:30:54 +00:00
is 93f107e677 adjust comments to reality 2001-01-23 11:25:59 +00:00
sato 0e59b8d2ec add 4bpp support (sync with mq200 rev1.6 -> 1.7) 2001-01-23 08:51:48 +00:00
augustss 5704d1e2b8 Uncomment the uftdi driver. 2001-01-23 01:44:38 +00:00
ichiro 5760a7d243 add I/O DATA USB-RSAQ2 serial adapter
uplcom* at uhub? port ?
ucom*   at uplcom? portno ?
2001-01-23 01:27:23 +00:00
bjh21 668b6cbaba We now have a rasops4 attribute to play with. It doesn't work, but then
neither do rasops1 and rasops2...
2001-01-23 00:27:44 +00:00
bjh21 55648b014b Use our own evcnt structure to count VSYNC interrupts.
Also disable interrupts while we're not using them.
2001-01-22 23:29:34 +00:00
bjh21 d0b6f0f1cd Changes to interrupt accounting:
NULL "name" argument to irq_establish indicates that the device will maintain
an evcnt structure for this interrupt.  In this case, irq_establish will still
maintain its own count (for DDB machine irqstat), but won't attach it to the
global list.

Change use of ev_group and ev_name to follow guidelines in evcnt(9).

Switch arckbd(4) over to the new arrangements.
2001-01-22 23:08:26 +00:00
bjh21 fe3273fbb4 Patch from PR kern/8001, submitted by Rafal Boni.
This adds support for EtherExpress/16 cards with 16k of RAM, and in the
process adds general support for PIO mode on these cards.  This entails
changing the way the i82586 driver handles bus barriers, since it doesn't
allow for strange cases like this.

This has been tested on the i386 port with the 'ix' driver in both
16KB (which was the source of the problem) and 32KB modes, as well
as with the 'ef' driver.  I've tested it (briefly) with 'ei' on arm26
as well.  In theory, drivers other than 'ix' should follow precisely the
same code paths as before.
2001-01-22 22:28:43 +00:00
bjh21 1178bf4219 Initial potentially sharable <arm/armreg.h>. Used by all arm26 code. 2001-01-22 22:10:39 +00:00
eeh a07a06dd78 Only panic if we can't allocate a PT page for the kernel pmap. 2001-01-22 22:10:09 +00:00
briggs ded0acf164 Clear interrupts on the RasterOps PaintBoard Prism GT 1.0. From
Alastair Bridgewater <nyef@softhome.net>.
2001-01-22 20:27:02 +00:00
briggs b8d22c0d39 Handle interrupts on the Radius DirectColor/GX (id 0x27c). From
Alastair Bridgewater <nyef@softhome.net>.
2001-01-22 18:23:14 +00:00
ad 4a19c21be3 In rcons_connect(): PMAX_FBTYPE_PM_COLOR should use the defaults. 2001-01-22 17:18:32 +00:00
matthias d88ce636a9 Bring this to the code in arch/i386/i386/pmap.c;1.117. 2001-01-22 14:33:29 +00:00
jdolecek 8b24036797 Require the machine-dependant DDB commands to be in db_machine_command_table[]
and link it directly to db_command_table[] so that it's not necessary
to do this at runtime. Make db_machine_command_table[] const on all ports.
g/c now unneded stuff, like db_machine_commands_install(), db_machine_init()

Patch written by enami.
2001-01-22 13:56:55 +00:00
jdolecek ecf8569ea6 make beep_waveform[] const 2001-01-22 13:31:45 +00:00
pk 57f38322d4 Add `-mno-fpu' to the compiler options once again: the current compiler
(egcs-2.91.66) is still liable to use FPU registers as temporaries.
2001-01-22 12:59:29 +00:00
shin 9ef14b26c7 - sync with i386.
- this change fixes bogus ESRCH error bug in writedisklabel().
2001-01-22 12:37:14 +00:00
tsubai 9b4793fd1b #ifdef DREAMCAST --> #ifdef dreamcast. 2001-01-22 08:23:58 +00:00
tsubai 4791d269ec -Dsh3 --> -D${TARGET_MACHINE}. 2001-01-22 08:22:15 +00:00
tsubai ffb8bbbb30 #ifdef sh3 --> #ifdef __sh3__. 2001-01-22 08:18:06 +00:00
scottr 054277902e Correct a thinko: iteopen()/iteclose() shouldn't just pass off to
the wsdisplay driver.  Otherwise, closing ttye0 (ite compat) ends
up closing ttyE0, the actual console, when ttyflags runs.  Fixes
PR 12022.
2001-01-22 07:31:44 +00:00
itojun f92ee7af5c sync indent. 2001-01-22 07:04:10 +00:00
wdk 8e913e0c2a Use custom linker script for building ECOFF kernel images. The PROM loader
is fussy about the order of sections and location of memory gaps so we
must produce a firmware friendly version of the kernel as netbsd.ecoff for
network booting

The ELF version uses the standard mips linker script which can be loaded
by the new bootstrap routines
2001-01-22 01:54:03 +00:00
augustss 62fe0f7f69 Add clct(4) driver. 2001-01-22 01:39:05 +00:00
marcus aa94cdc6ad Oops. Left a debug printout in there... 2001-01-21 23:53:09 +00:00
marcus 3c59914ed6 Added GDROM device. 2001-01-21 23:38:34 +00:00
marcus 36382f4889 Primitive GDROM support. 2001-01-21 23:30:28 +00:00
marcus 28f7e6dde5 Corrected license text. 2001-01-21 22:45:57 +00:00
marcus ec45004dfc Fixed double-stroke bug. 2001-01-21 22:44:40 +00:00
is c1f1dff4bd Amiga part of isdn4bsd, and an example kernel configuration file. 2001-01-21 22:23:07 +00:00
is f3f791ab03 - Replace idesc by standard wdc attachment.
- Add A1200 pcmcia slot driver.
(Both where options already.)
2001-01-21 20:41:39 +00:00
is fec2d92852 - Replace idesc driver by standard wdc attachment.
- Add PCMCIA driver for A1200.
(Both where options already.)
2001-01-21 20:38:20 +00:00
uch 349386fbd5 change kernel text start 0x8c010000 to 0x8c0001000
(I want to decrease dead area.)
2001-01-21 18:34:37 +00:00
uch 3d6806dcc8 hpcsh original device configuration. 2001-01-21 18:33:53 +00:00
takemura 7a78296f1c Add items for 4bit/pixel frame buffer format.
Fix frame buffer information of Compaq Aero 1530.
The version of binaries get 1.17.0 2001.01.07.
2001-01-21 14:31:37 +00:00
takemura 9aa8ab9279 Use rasops with 4bit depth. 2001-01-21 14:00:32 +00:00
scw 2c13177ff8 Create machine/m68k symlinks before trying to build the program. 2001-01-21 10:58:04 +00:00
takemura 82340f7df1 Built-in console driver supports 4bpp frame buffer. 2001-01-21 09:11:28 +00:00
christos 9bd2dee3b2 fix bit rot so that MP kernel compiles s/cpu_no/ci_cpuid/ 2001-01-21 07:48:29 +00:00
christos d36fa12430 knf, some symbolic constants would be nice [pvrreg.h]
christos
2001-01-21 05:26:10 +00:00
takemura 6a31350117 Fix bugs of VR touch panel driver,
- status stay in touching while pen don't realy touch.
  - cursor often jumps to center of screen.
But it seems that 'stay in touching' still occurs at rare intervals.
2001-01-21 05:00:28 +00:00
thorpej ccea4c274b Avoid doing Very Bad Things by passing a horrible IRQ value to
npxprobe1().  Fixes a problem on IBM Thinkpads reported by
Chuck Cranor.
2001-01-21 04:55:48 +00:00
chuck b7d7186f4e fix problem detected on IBM thinkpads when running apmd:
when the display is closed, the machine suspends (as expected).
	when the display is opened again, it resumes and suspends again
	(must manually wake).

problem happens because driver fills the event queue with duplicate
events without allowing apmd to drain it by running.   fix it by
improving detection of duplicate events.

also cleanup and add some extra APMDEBUG code.
2001-01-21 03:23:31 +00:00
bjh21 8805bd8b56 Unify arm26 and arm32 trapframe structures. The unified trapframe is the same
shape as the old arm32 one, but there are a few #defines to keep arm26 code
happy.  Anything that depends on the precise shape of the trapframe,
and especially on being able to treat it as an array of registers, has been
updated.
2001-01-20 17:14:19 +00:00
mhitch 62ec5a5bc5 UVM pagesize needs to be set *before* UVM tries to use it. The change to
a constant PAGE_SIZE value didn't include setting the UVM pagesize, and the
attempt to add this ended up in the wrong place.  Amiga should now boot
again.
2001-01-20 17:08:41 +00:00
pk 13d4fcd69b In cpu_reboot(), only reset the TOD clock if the time is known to be good
enough, e.g. it has been initialized already by inittodr() or set
explicitly before by resettodr().  This prevents the TOD clock from going
way backwards when typing `halt' at the `mount root filesystem' prompt.
2001-01-20 13:44:29 +00:00
takemura 24706debd2 Fix indent, which were too deep. 2001-01-20 12:24:22 +00:00
tsutsui b19f9e6e7d Add some working ISA devices:
ep* at isa? port ? irq ?
 ne0 at isa? port 0x280 irq 9
 ne1 at isa? port 0x300 irq 10
 we0 at isa? port 0x280 iomem 0xd0000 irq 9
 ne* at isapnp?
2001-01-20 11:40:50 +00:00
ur 4c458e5c42 Fix register name typo. 2001-01-20 07:23:21 +00:00
lukem 81685caeed a few things depend upon assym.h, so add appropriate dependencies. 2001-01-20 07:18:06 +00:00
lukem b01d829ec1 s/ea/eb/ in a couple of places 2001-01-20 02:41:19 +00:00
thorpej 36607aea63 In the ELF case, use the kern.ldscript unless overridden by the kernel
config file.
2001-01-20 01:05:53 +00:00
thorpej 6970f51de0 Add a linker script for the kernel, which places _etext after
all of the read-only data.  Move _etext after all the read-only
data in the LARGEPAGES script, as well.

This will cause const data to actually be const on i386 kernels now
(it was, by sheer luck, on LARGEPAGES kernels simply because of the
section rounding that the LARGEPAGES script performed).
2001-01-20 01:05:23 +00:00
martin 84af4fa114 Enable IO space mapping by default.
Fixes PR 11940.
2001-01-19 21:25:19 +00:00
is ca0031c4cd No need for a seperate "I'm initialized" variable - the pointer itself
should work fine.
2001-01-19 21:18:29 +00:00
marcus 8cd0ae534a Better DMA allocator (thanks to Jason R. Thorpe). 2001-01-19 20:27:31 +00:00
thorpej e9d4801895 Make ASTs per-process. 2001-01-19 18:51:17 +00:00
fvdl f41a35188a Actually, specify the number pf ptys explicitly anyway, omitting
the number and thus having the default value was probably a mistake
(16 would be too few).
2001-01-19 14:44:11 +00:00
fvdl 01c07896a6 Update for reality (same as in use on the actual machine, except that
-current doesn't require the number of ptys to be specified).
2001-01-19 14:29:20 +00:00
sato 67ea0086c3 fix typos. 2001-01-19 11:42:21 +00:00
manu 3c98a504b9 Added previously created files for powerpc Linux compatibility to the kernel
config system
2001-01-19 01:51:16 +00:00
shin 2e0943daa2 - fix prototype of db_mips_variable_func(). 2001-01-19 01:41:36 +00:00
manu 5472427809 Added powerpc specific code for Linux compatibility on powerpc ports 2001-01-19 01:36:47 +00:00
bjh21 2c20803b63 Add extra constants defined by ARM ELF revision B01. 2001-01-18 23:50:50 +00:00
martin c423d2c0f9 Add support for another PCMCIA ISDN card: Sedlbauer speed star II.
While there fix two outdated comments.
2001-01-18 22:13:59 +00:00
bjh21 48f4b0ea72 Tidy up some comments. 2001-01-18 21:54:28 +00:00
bjh21 2c89ce7e74 Add <arm/frame.h>, for shared stack frame structures. Currently, only sigframes
are common.
2001-01-18 21:48:25 +00:00
bjh21 6b017eaa04 Add ARMv5 instructions: BLX, CLZ, BKPT, MCR2, MRC2, CDP2, LDC2, STC2.
Also correct a comment.
2001-01-18 21:41:09 +00:00
bjh21 e1e042445c A bit of extra discussion based on the latest ARM ARM. 2001-01-18 20:42:03 +00:00
tv e58532a4bf No-op commit to force update to a non-"-kk" revision. 2001-01-18 17:47:58 +00:00
bjh21 46b21bb8a8 Fix a couple of brackets in a comment. 2001-01-18 17:05:06 +00:00
thorpej 1fa7cb5b74 Use <powerpc/psl.h> 2001-01-18 15:30:42 +00:00
pk 13e03d4b43 On V0 proms, read the `idprom' property at the root node to get to the
station's ethernet address.
2001-01-18 12:50:10 +00:00
jdolecek c1fc5392f5 adjust ddb variable access functions to have first arch 'const', make db_[e]regs[] const 2001-01-18 10:55:29 +00:00
jdolecek d5d431e8ae make db_[e]regs[] const 2001-01-18 10:54:27 +00:00
jdolecek 65e6340df5 adapt to recent changes of signal structures changes 2001-01-18 10:18:24 +00:00
scw 7aaf4adfb6 const'ify the 1st parameter of db_var_short() to account for the
recent "struct db_variable" change.
2001-01-18 09:49:02 +00:00
briggs 118221b2e6 Handle the TRPAD case a little better.
Also, if the so-called DMA operation is a write and ends without target-
complete set, count the data in the FIFO as residual and add that to the
amount in the counters.  Hauke Fath reports that this passes early testing
on his Quantum Viking.
2001-01-18 03:43:18 +00:00
is 72d949304b Add IPL_SOFTCLOCK, which was missing. 2001-01-17 20:53:43 +00:00
thorpej 577f2ffb1c Remove local declaration of softclock(). 2001-01-17 19:03:14 +00:00
ws dc77af8bea Don't claim the memory for the executable from the firmware.
Some implementations seemed to do strange mappings as a result of it.
2001-01-17 15:37:06 +00:00
ws 8d2ba0ce39 Increase stack size to make this work again. 2001-01-17 15:31:04 +00:00
shin 6b177fb05c - reduce GP size (20 -> 18). 2001-01-17 10:35:08 +00:00
ender d2d372a707 Fix softclock prototype. 2001-01-17 08:23:49 +00:00
itojun f79137a3f1 it looks that gas configured for little endian output runs as
big endian assembler, sometimes.  explicitly have -little to specify
little endian output.
2001-01-17 06:03:54 +00:00
itojun ef1a3ce53b the kernel for SH3-based WinCE machines (little endian), by uch.
MACHINE=hpcsh, MACHINE_CPU=sh3el.

bootloader: ftp://f77.nop.or.jp/users/uch/hpcboot/
original patch: ftp://f77.nop.or.jp/users/uch/hpcsh/

sys/sh3/sh3/md_root.c: add #ifdef MEMORY_DISK_DYNAMIC
2001-01-17 05:21:47 +00:00
fvdl cd7c1e7cc9 The actual i386 implementation for /proc/cpuinfo. 2001-01-17 01:21:12 +00:00
itojun d8ba6d06be procfs_machdep is per port (not per CPU). 2001-01-17 00:44:33 +00:00
thorpej fc5dafc79b Fix a rather annoying problem where the sockaddr_dl which holds
the link level name for the interface (ifp->if_sadl) is allocated
before ifp->if_addrlen is initialized, which could lead to allocating
too little space for the link level address.

Do this by splitting allocation of the link level name out of
if_attach() and into if_alloc_sadl(), which is normally called
by functions like ether_ifattach().  Network interfaces which
don't have a link-specific attach routine must call if_alloc_sadl()
themselves (example: gif).

Link level names are freed by if_free_sadl(), which can be called
from e.g. ether_ifdetach().  Drivers never need call if_free_sadl()
themselves as if_detach() will do it if it is not already done.

While here, add the ability to pass an AF_LINK address to
SIOCSIFADDR in ether_ioctl() (this is what caused me to notice
the problem that the above fixes).
2001-01-17 00:30:49 +00:00
fvdl c7f1462f3e Add machdep file for procfs. Currently only used for linux-style
/proc/cpuinfo (only active when procfs is mounted with -o linux).
For ports other than the i386 this currently produces an empty
string.
2001-01-17 00:07:18 +00:00
fvdl 0546607276 Export some variables. 2001-01-17 00:03:02 +00:00
itojun 1efb35296f do not include mmeye.h 2001-01-16 23:57:21 +00:00
sommerfeld e8d906afaa Validate gate targets.
Fix by myself and Charles Hannum.
2001-01-16 23:32:21 +00:00
thomas 16090efe76 Let lpmatch recognice the printer. 2001-01-16 21:13:09 +00:00
itojun a1c683863b remove evbsh3/mmeye.h. it shouldn't be necessary, or at least it has to
be renamed to something better.
XXX dreamcast/mmeye.h
2001-01-16 17:36:02 +00:00
itojun 85b6e2618d typo 2001-01-16 17:13:28 +00:00
nonaka 8492c6a9e8 Add prep installer 2001-01-16 16:53:57 +00:00
thorpej 9f5a22b3ee New syscall entry implementation based on the Alpha version
as hacked by mycroft.
- Use syscall_intern() to give a process a plain or fancy
  syscall based on ktrace flags.
- Avoid copying from the trapframe into a local array as much
  as possible.

Yields roughly 5% improvement on a 25MHz R3000 (DECstation 5000/200)
on a simple syscall benchmark.

There's still some work that can be done using __HAVE_MINIMAL_EMUL.
2001-01-16 06:01:26 +00:00
thorpej e573dbe78c We haven't used the 4.4BSD kadb stuff for a long time; garbage
collect it.
2001-01-16 04:34:47 +00:00
augustss 46130fb7e5 Add uyap. 2001-01-16 03:38:22 +00:00
mycroft b9e3ed1f0a Allow read-write descending memory segments (not that anybody ever uses
descending segments).
2001-01-16 01:50:36 +00:00
marcus 2e39f7eacf Added keymap for European keyboards. 2001-01-16 00:56:29 +00:00
marcus bc9ea0aebd Dreamcast uses a different realtime clock than the builtin RTC. 2001-01-16 00:34:44 +00:00
marcus 322c255ab3 WSCONS console added. 2001-01-16 00:33:50 +00:00
marcus 839caf1064 PowerVR display driver. 2001-01-16 00:33:20 +00:00
marcus ecb24087d2 Maple bus keyboard driver. 2001-01-16 00:33:01 +00:00
marcus ee6259c508 Maple bus driver. 2001-01-16 00:32:42 +00:00
bjh21 f575270d81 Switch over to using the arm32 sigcontext structure.
Yes, this causes binary incompatibility.  Yes, it's Evil, Bad and Wrong.
Nonetheless, I think it's probably the least unpleasant way to get close to
binary compatibility with NetBSD/arm32, and a very much doubt there are any
arm26 binaries out there that depend on the old shape of struct sigcontext.
2001-01-16 00:29:45 +00:00
thorpej d74e432ed3 Make softclock a generic soft interrupt of the API is available,
adding the requisite void * argument to softclock().
2001-01-15 20:19:50 +00:00
eeh d04bab724e Implement some seblence of bus_dmamap_mbuf() and bus_dmamap_uio(). 2001-01-15 19:27:07 +00:00
sato c1821150bb change MINYEAR to 2001. 2001-01-15 15:36:38 +00:00
itohy f3590c636b Make it compile with "options DIAGNOSTIC" (patch from minoura). 2001-01-15 07:04:41 +00:00
thorpej 45de366b2e Rename __GENERIC_SOFT_INTERRUPTS to __HAVE_GENERIC_SOFT_INTERRUPTS,
and place the definition in <machine/types.h>.  This can now be used
as a flag to indicate whether or not <machine/intr.h> can be included
to get the generic soft interrupt API.
2001-01-14 23:50:28 +00:00
thorpej 61473e63f9 Define __HAVE_AST_PERPROC. 2001-01-14 22:32:57 +00:00
thorpej da57125f23 Now that we won't lose signotify()'s while we're asleep, go ahead
and to signal processing in ast() again.
2001-01-14 21:22:56 +00:00
thorpej 53d2115d66 Make the astpending flag per-process. 2001-01-14 21:18:39 +00:00
thorpej 372338915a Use splnet() to block network interrupts, not splimp(). 2001-01-14 17:37:41 +00:00
thorpej ad669fbaf1 Allocate space for mapping DMA-safe memory from kernel_map. 2001-01-14 17:36:33 +00:00
thorpej dc9a8ec9dd Use splnet() to block network interrupts, not splimp(). 2001-01-14 17:33:48 +00:00
martin a261276f16 The i4b raw b-channel devices actually do have an ioctl routine,
so better add this to the cdevsw entry.
Noted by Bruno Achauer.
2001-01-14 11:17:28 +00:00
martin 6695531e85 Fix format warnings to make it compile again. 2001-01-14 09:43:33 +00:00
thorpej 6f0dfa5049 splimp() -> splvm() 2001-01-14 03:32:20 +00:00
thorpej a3ec356d52 splimp() -> splvm() 2001-01-14 03:22:04 +00:00
thorpej 979919ee0f splpmap() -> splvm() 2001-01-14 02:03:48 +00:00
thorpej d85a75f583 Make sure everybody has an splvm() and equate it with splimp() (splimp()
is the historical name for this interrupt level, and the historical name
is going to go away in the near future).
2001-01-14 02:00:37 +00:00
thorpej fd0ca62926 Put signal posting back in userret() for now; for it to work
properly, we need to make astpending a per-process variable.

Pointed out by mycroft.
2001-01-14 00:39:48 +00:00
thorpej 2574f338e1 Remove a couple of now-unsed variables (args that are now no longer
passed to userret()).
2001-01-14 00:35:53 +00:00
thorpej 1eb36d23fd - Make ast() loop around astpending; it's possible for a new
AST to be posted when delivering signals, or after a process
  is preempted.
- Move all signal posting to ast().  userret() is now a one-liner.
2001-01-14 00:10:28 +00:00