Commit Graph

25579 Commits

Author SHA1 Message Date
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
thorpej 777efd8cdc Check for ASTs in Syscall and UserGenException, too; AST processing
must be done on *every* return to userland.
2001-01-13 23:49:12 +00:00
bjh21 8df387473f Move <machine/signal.h> into shared directory. 2001-01-13 17:02:36 +00:00
bjh21 70d40a123c Make db_disasm_interface const. 2001-01-13 16:53:27 +00:00
bjh21 f52101bc64 Make all the disasm_interface_t arguments const, thus allowing us to
allocate them statically in the text segment.  Do so for disassemble().
2001-01-13 16:52:01 +00:00
bjh21 792b8500bc ANSIfy, un-__Pify, and in the case of disassem.c, add an RCSID. 2001-01-13 16:44:25 +00:00
aymeric edecf4bc97 Notify UVM subsystem about our page size in pmap_init().
Some MI code needs it (Linux emulation, sysctl and the like).
Thanks to Izumi Tsutsui for pointing it.
2001-01-13 11:31:04 +00:00
ur 7701dc57be Adapt to pci_intr_map change. 2001-01-13 10:46:18 +00:00
matt 27980172f6 Add the types needed by the new locale code. 2001-01-13 03:48:26 +00:00
aymeric f806b0811c Pass CPPFLAGS to gcc in NORMAL_G, plus minor change: ; -> && 2001-01-13 02:17:50 +00:00
aymeric 80f1cca44e Make this compile again: we don't need to initialize PAGE_SIZE and friends
since they are now (preprocessor) constants.
2001-01-13 02:15:16 +00:00
aymeric 032ced3b65 Make these compile again, plus minor aesthetic changes. 2001-01-13 02:09:27 +00:00
aymeric 11dbbd8afe make this compile again 2001-01-13 02:08:15 +00:00
bjh21 78c0ba909e Separate out sigcode into its own file, since it's shared by arm26 and arm32. 2001-01-13 00:06:50 +00:00
bjh21 e4cacac41c Storing four-byte pointers to two-character strings is silly. All the
auxilliary tables used by the disassembler are now char[][].

The main table still uses pointers because:
 - the longest instruction name, "imbrange" is >7 characters long, which would
   make the field length wasteful.
 - GCC spots that most of the formats are shared and makes them pointers to the
   same string, so turning them into char[8] would be counter-productive.
2001-01-12 23:33:07 +00:00
bjh21 ca0f6df99d Move all the nasty big tables into the text segment. This isn't much use in
the kernel at present, but maybe one day when we have a ROMmable kernel...
2001-01-12 22:44:08 +00:00
bjh21 cdae07e857 Correct comments (the code does support LDF, STF, LDC, STC).
Support BX (for completeness).
Correct spelling of SWP.
2001-01-12 22:19:15 +00:00
bjh21 e9bb2a7916 Correct immediate constant handling: bits [11:8] are a rotation, not a shift.
Also add support for the "P" modifier to TEQ, TST, CMP and CMN, and don't
bother displaying the "S" bit for these instructions.

Together, these correct the disassembly of 0xe33ff3c2 (an instruction in
arm26 irq_handler() from "teqs r15, #0x08000000" to "teqp r15, 0x08000003".
2001-01-12 21:56:18 +00:00
bjh21 d6928b5422 Prototypes for disassemble_readword() and disassemble_printaddr(). 2001-01-12 21:35:48 +00:00
bjh21 a5ef6e1f81 Move db_disasm.c into sys/arch/arm/arm. Use arm26 version, since it should
generate smaller compiled code.
2001-01-12 21:31:51 +00:00
tsutsui f9de1a4a50 Handle ELF case on calling ddb_init().
XXX should use bootinfo to pass symbol addresses.
2001-01-12 17:17:49 +00:00
tsutsui aafbe31f11 Enable ELF symbol support to migrate. DB_AOUT_SYMBOLS is still defined. 2001-01-12 17:11:50 +00:00
tsutsui 26d5ada2c0 Remove hp300 derived "last kernel PT page" stuff. (sync with luna68k/x68k) 2001-01-12 16:19:18 +00:00
pk b1b7565190 Implement bus_space_subregion(). 2001-01-12 15:24:15 +00:00
bjh21 a4047bf10c Move the generic ARM disassembler from arm32/arm32 to arm/arm. 2001-01-12 13:43:11 +00:00
bjh21 6189064e69 More FPU-state-saving infrastructure. Not useful yet. 2001-01-12 13:23:49 +00:00
simonb 38de3f1a70 Enable the APM_IOC_DEV_CTL ioctl. Works at least for turning off & on
a LCD screen on a Dell Inspiron 5000e (and probably many others).
2001-01-12 03:36:50 +00:00
bjh21 d74ad44e33 Document format of various chunk types. 2001-01-12 00:13:26 +00:00
bjh21 0bb3b087a6 Document the VIDC audio format. 2001-01-12 00:12:38 +00:00
bjh21 531e3e2075 Fix up irq_string for a world without intrnames. 2001-01-12 00:11:42 +00:00
bjh21 6fa98146d5 Start merging actual code in arm32 and arm26:
arm32/arm32/in_cksum_arm32.c -> arm/arm/in_cksum_arm.c

Also move specification of other checksum stuff to files.arm, even though we
use the MI code for that.
2001-01-11 23:27:26 +00:00
bjh21 5159a10d97 Share <machine/elf_machdep.h> between arm26 and arm32. 2001-01-11 22:28:06 +00:00
bjh21 a2dacbe06d Switch over to using the generic arm header files for everything that arm26
and arm32 agree on.
2001-01-11 22:07:53 +00:00
bjh21 68ac1c6fc3 Add some infrstructure to support saving FPU state. 2001-01-11 22:03:52 +00:00
thorpej fd0605fc53 Mmm, dependency problems. Add a cast to make PROC_PC() actually
work.
2001-01-11 21:08:18 +00:00
bjh21 dc037466f5 Install all the headers (arm32 does). 2001-01-11 21:05:03 +00:00
bjh21 1add2fd369 Remove <arm/endian_machdep.h>, since we might get a big-endian ARM port
some time.
2001-01-11 21:03:10 +00:00
thorpej e292dc9609 Move userret() into a header file, in preparation for splitting
syscall() into plain and fancy.
2001-01-11 18:44:29 +00:00
thorpej f1152a965b Modeled after mycroft's changes to the Alpha port, add PROC_PC() to
get profiling out of userret(), and move the preemption check to ast().
2001-01-11 18:30:16 +00:00
minoura b2bcd7ceb9 Use MI clock_subr.c. 2001-01-11 16:09:42 +00:00
bjh21 7424b1f3c1 Grotty hack to attach names to interrupts.
Should be fixed when I next overhaul this code.
2001-01-11 14:56:07 +00:00
minoura 9caeb5a28b isinram() argument is not a virtual address but a physical address. 2001-01-11 14:24:04 +00:00
minoura 0ef9589af4 X68k's physical RAM is not at lowram-0xffffffff, but has multiple segments. 2001-01-11 14:00:11 +00:00
minoura 8829b4cc1a Sync. w/ luna68k; eliminate irrelavant code imposed by
the restriction of hp300 hardware and HP-UX compatibility.
2001-01-11 13:18:36 +00:00
minoura 950e1bd9b8 Eliminate EIOMAPSIZE. 2001-01-11 10:40:55 +00:00
minoura 77f3a6ab78 G/C. 2001-01-11 10:36:46 +00:00
scw 65137701cf g/c the HP/UX core-dump code; it references a function which no longer exists. 2001-01-11 08:44:36 +00:00
augustss d968e32c3a Add usscanner. 2001-01-11 06:03:21 +00:00
bjh21 0cc28d54b1 ... this one's utterly pointless though. 2001-01-10 19:05:46 +00:00
bjh21 29de7da78b Header files which don't differ between arm32 and arm26 and can thus be
shared.
2001-01-10 19:02:05 +00:00
bjh21 5a91dd00b9 Add "arm" to the "machine" line, so we get files.arm pulled in, and more
importantly, the arm->arch/arm/include symlink.
2001-01-10 18:38:37 +00:00
bjh21 9e0af76a89 Empty file to keep config happy. 2001-01-10 18:33:47 +00:00
bjh21 6a4e1f2a38 Descend into the arm directory on arm26 and arm32. 2001-01-10 18:23:47 +00:00
bjh21 f4774e6659 Skeleton ARM include infrastructure. 2001-01-10 18:23:02 +00:00
nathanw 1c67d8b72d Add uftdi and ucom, now that they're tested and known to work. 2001-01-10 17:32:08 +00:00
sato 86035aa9c0 dummy WSKBDIO_SETLEDS WSKBDIO_GETLEDS for wsconsctl(8) 2001-01-10 08:43:13 +00:00
thorpej 3a7c4f5973 Don't panic if we detect an IRQ combination that can't be shared,
just return NULL.
2001-01-10 01:15:32 +00:00
martin 5d0c67c603 When adding isdn devices I forgot to check chrtoblktbl.
Fix this know for the affected archs.
2001-01-09 20:51:04 +00:00
bjh21 84a9223126 Add APCS-32 return instructions, though not used yet. 2001-01-09 12:11:57 +00:00
fvdl 5395f63f35 Revert apparently accidental commit. 2001-01-09 12:03:15 +00:00
minoura 8a3a316883 Do not range_test() unless DIAGNOSTIC.
Suggested by Tetsuya Isaki <isaki@v6.ipc.hiroshima-u.ac.jp>.
2001-01-09 11:38:32 +00:00
tsubai 3efddcd88e Configure PCI_INTERRUPT_LINE on the other side of the pci-bridge on OF3 too. 2001-01-09 08:04:53 +00:00
enami 7a36660307 If there remains no memory in a segment after we chopped off ``the last
page,'' skip the segment.  Fixes boot problem on Compaq ProLiant ML370
reported at current-users by Mark Davies.
2001-01-09 03:45:49 +00:00
lukem 443a19e035 convert to using .WAIT 2001-01-09 03:13:39 +00:00
itojun 6378ac40ee pass the right $CPP 2001-01-09 02:31:37 +00:00
lukem 7a9f0b9a95 sync to GENERIC 1.390:
- add an NIC & vlan
- add auich, esm, neo audio
2001-01-09 00:47:18 +00:00
lukem 6ac8983e9d sort auich in respect to auvia 2001-01-09 00:40:53 +00:00
pk 301b806db0 ebus_find_node(): plug memory leak; make debug output meaningfuller. 2001-01-08 22:15:47 +00:00
ragge 2987c0474d Fixes from OpenBSD by Brandon Creighton. (bjc@openbsd.org)
Log message from OpenBSD:

> - add EMODD emulation (EMODF) -- this fixes modf() and some libm code
>   on systems which don't have native EMODD (i.e., most of them)
>
> - big cleanup of the getval_* stuff - have one routine doing most of the work
>   instead of four doing the same thing
>
> - add some miscellaneous routines -- count sig. bits
>
> - add more operand addressing modes (still not all fully implemented)
>   both the existing POLYD and EMODD can use them
>
> - add me to copyright
>
2001-01-08 22:08:22 +00:00
martin f53c899649 Add isdn devices to all archs that seem to support at least one of the
necessary busses. Sync comments with reality for archs that already had
the devices.
2001-01-08 21:46:33 +00:00
rh c6274d6e3d Add and enable the esm PCI audio driver 2001-01-08 20:48:11 +00:00
nathanw 5af86c93fb The "#auvia" line was removed from this config; remove the "#audio* at
auvia?" line as well.
2001-01-08 17:35:29 +00:00
takemura a0a2fc0688 Implement WSMOUSEIO_SRES to control A/D port scan interval. 2001-01-08 09:50:08 +00:00
leo 0aa3c2b02f Sync machine types with atari/include/cpu.h 2001-01-07 21:24:05 +00:00
leo 427a7dcda0 Kill a typo. 2001-01-07 21:19:05 +00:00
leo b9a7cb087a Nuke a cf_unit abuse. 2001-01-07 21:17:32 +00:00
leo fb19421ce8 Expand identify_cpu() for the Milan. 2001-01-07 21:12:31 +00:00
leo c21ca4d86a Add the Milan as a possible machine type. 2001-01-07 21:08:03 +00:00
leo 3c48826086 Make ahdi_part and ahdi_root 'packed' so I can use this include file on
an x86 machine to analyze my atari disk.
2001-01-07 21:05:16 +00:00
leo 6ad6e22efb Update the printf format in straymfpint() too. 2001-01-07 20:59:29 +00:00
leo d6ef667612 Fixes for straytrap():
- make it clear that we are printing hex-numbers
        - fix the loop protection.
2001-01-07 20:56:51 +00:00
bjh21 2aa1fb4020 Remove old-style interrupt-counting infrastructure (intrnames/intrcnt). 2001-01-07 19:39:08 +00:00
fvdl 3947143db7 Define __HAVE_OLD_DISKLABEL in <machine/types.h> for i386 (where the
other __HAVE_* defines are). Conditionalize definition of old
disklabel struct and ODIOC* definitions on it, allowing other ports
to bump the number of partitions in the label if they want to
(see comment in sys/disklabel.h).
2001-01-07 17:55:40 +00:00
bjh21 d6bd1012e3 Add facilities for counting interrupts, and a "machine irqstat" command to
DDB to tell us what's going on.
2001-01-07 17:01:53 +00:00
bjh21 2b076072d3 Add a "name" argument to irq_establish and friends, in imitation of arm32. 2001-01-07 15:56:01 +00:00
bjh21 6b513dfe29 Remove ioc_irq_establish -- It wasn't serving any useful purpose. 2001-01-07 15:36:34 +00:00
bjh21 fb3dd6b589 ANSIfy. 2001-01-07 15:27:37 +00:00
bjh21 32ad12527c ANSIfy. 2001-01-07 15:00:02 +00:00
bjh21 32ff4eef91 ANSIfy. 2001-01-07 14:28:02 +00:00
bjh21 c730bd06be Un-__P, remove arg names. 2001-01-07 13:48:24 +00:00
bjh21 5c09bd5fc5 Un-__P and remove function arg names. 2001-01-07 13:38:42 +00:00
tsutsui f68bcbc806 Use ${PRINTOBJDIR}. 2001-01-07 08:38:01 +00:00
takemura e2173eff07 Add some definitions. 2001-01-07 07:29:33 +00:00
thorpej 6795b1b166 No, really, pass the PA to alpha_pa_access(), not the PFN. 2001-01-07 05:42:54 +00:00
simonb f514e805ed Move prototypes for mips_user_cachectl() and mips_user_cacheflush()
to <mips/cachectl.h>.
2001-01-07 04:13:16 +00:00
thorpej 7b9c3218e2 Make this C++ safe. 2001-01-07 03:59:31 +00:00
bjh21 610a127a3d Fix a stupid = vs == bug that prevented the code working usefully at all.
While I'm here, fix all the other GCC warnings too.
2001-01-07 00:30:29 +00:00
bjh21 fa64805abd Specify (void) arguments, hence avoiding GCC warning. 2001-01-07 00:07:58 +00:00
simonb 4152b5b212 Adjust recent netboot fix to work in the 5100 as well. 2001-01-06 16:59:53 +00:00
bjh21 32c62f1fdb ANSIfy 2001-01-06 13:09:05 +00:00
toshii 8ce2076cf5 Fix a typo in debug printf. 2001-01-06 06:01:59 +00:00
martin 7e14d8a67c Cosmetics 2001-01-05 23:58:02 +00:00
martin ebb91e152f Disable the daic driver for now. It's microcode handling needs
some thougths (legal problems), and the driver is not ready
for prime time anyway.
2001-01-05 23:22:01 +00:00
is b90c4c82d9 Make this actually sort-of-work for 68060 w. disabled FPU (tested), 68LC060,
and I suspect, 68LC040 and 68040V machines. Method used:

1. do NOT use the frames effective address at all
2. do NOT use the frames next instruction address, but
3. restore the "this instruction" pc into the pc field of the frame at the
   beginning of the emulation, if we got a frame format 4.

TODO:
A. find the bug in the usage of the frame EA, and revert to using it.
B. find the bug in the usage of the frames next instruction address, and
   consider whether it's worthwhile to use it.
C. make the emulation complete.... FEXP FETOM1, and the trigonometric functions
   are missing.
2001-01-05 19:54:30 +00:00
tsutsui 8303e98e40 Fix typo (s/req/reg/). 2001-01-05 19:08:04 +00:00
aymeric 6a808ce8c8 Initialize VIA Technologies' 82C686's ICU as if it were a 82C586.
This fixes interrupt allocation problems on modern Compaq laptops.
2001-01-05 18:39:12 +00:00
tsutsui 52f9536913 Add isapnp devices.
XXX CS4232 is not probed properly.
2001-01-05 17:55:38 +00:00
tsutsui d78ca7c54a Add isapnp attachment for prep. 2001-01-05 17:49:43 +00:00
takemura 5d91708fb9 Generating workspace and project files for eMbedded Visual Tools 3.0. 2001-01-05 15:00:56 +00:00
martin 242656c78a Enable the imported ISDN4BSD based ISDN subsystem.
This is the kernel part (userland to follow soon) of the latest (and
very probably last) release (version 0.96) of ISDN4BSD. ISDN4BSD has a
homepage at http://www.freebsd-support.de/i4b/.

It gives the user various ways to use the isdn connection: raw data (via
the i4brbch "raw b-channel" device), ppp (via the isp "isdn PPP" device),
voice/answering machine (the i4btel "telephone" device) and ip over isdn
(the ipr device, "IP over raw ISDN").

Supported are a bunch of common and older cards, more to be added soon
after some cleanup. Currently only the european E-DSS1 variant of the
ISDN D channel protocol is supported.
2001-01-05 13:09:15 +00:00
martin c3cb638bca Initial import of ISDN4BSD release 0.96 2001-01-05 12:49:52 +00:00
sato 37682e5488 - print debug message for WSDISPLAYIO_GETPARAM/WSDISPLAYIO_SETPARAM
when boot verbose mode.
  for debuging LCD control and/or keyboard cmds.
2001-01-05 09:09:48 +00:00
sato 78242b5fd8 - fix WSDISPLAYIO_MODE_EMUL mode redrawing.
- avoid null pointer dereference.
- clean up hpcfb_show_screen().
2001-01-05 09:04:55 +00:00
marcus fb7be69768 Fixed initial cache setup to handle launch from P2 as well as P1. 2001-01-05 01:14:31 +00:00
marcus d1e05bffc3 Updated linker script set include only RAM based image for Dreamcast. 2001-01-05 01:13:23 +00:00
tsubai 0374c83129 Fix lost-software-interrupt bug. 2001-01-04 15:01:25 +00:00
itojun 828bec041b committed local change by mistake :-) 2001-01-04 09:49:29 +00:00
itojun a8507fa1e7 pkgsrc/cross/sh-* do not supply cpp 2001-01-04 08:55:08 +00:00
itojun 26b1bcce00 cc -v is too verbose 2001-01-04 08:39:53 +00:00
itojun 973149dcb3 sh3 split 2001-01-04 08:32:02 +00:00
itojun a629edfcca use -O1 for now, -O2 dies 2001-01-04 07:55:32 +00:00
sato c381bbbf74 add missing evtype. 2001-01-04 07:55:15 +00:00
itojun da0e17f08c fix pathname to meet pkgsrc/cross/sh* 2001-01-04 07:51:50 +00:00
itojun 8a58f991f6 content were mixed up 2001-01-04 07:50:23 +00:00
sato 58b63998c2 handle pointer type event message and scaler type event message
for CONFIG_HOOK_PMEVENT_*.
2001-01-04 07:43:37 +00:00
itojun 156bea1018 nuke obsolete Makefile templates.
split build-sh3 into two, for sh3e[bl].
2001-01-04 07:09:47 +00:00
itojun 1e7e3274f4 split MACHINE_ARCH sh3e[lb]. userland build still needs checking. 2001-01-04 07:03:21 +00:00
minoura cd4d6511c8 Correct `Year 2001 problem'.
Pointed out by Okamoto Kohichi <GHG03305@nifty.ne.jp> and
URA Hiroshi <ura@hiru.aoba.yokohama.jp>.
2001-01-04 06:45:18 +00:00
sato 46921fecee Avoid null pointer dereference. dc_sc may be null on early stage. 2001-01-04 06:07:43 +00:00
takemura d403e873db Delete types.h and int_types.h in stand/include/mips and
use types.h and int_types.h with __COMPILER_INT64__ in kernel source.
The version of the binaries get 1.16.4.
2001-01-04 06:01:41 +00:00
sato 9d298fafdb adapt resent config_hook.h 2001-01-04 05:20:37 +00:00
sato 9eb0981033 re-define CONFIG_HOOK NICKNAME.
add some macros.
2001-01-04 05:16:26 +00:00
shin ce0d1ad2fe - don't ignore DEFCOPTS (Makefile.mips).
- DEFCOPTS of hpcmips is "-Os -mmemcpy" (std.hpcmips).
2001-01-04 05:13:30 +00:00
sato 3131dc2c04 make compilable. 2001-01-04 05:01:59 +00:00
itojun a493f2d3fd typo. struct fpregs -> struct fpreg 2001-01-04 04:42:59 +00:00
enami 62f0a92d52 Avoid null pointer dereference. dc_sc may be null on early stage. 2001-01-04 03:03:04 +00:00
enami 596f0820de Set HPCFB_DC_CURRENT bit in hpcfb_init() so that boot -d works. 2001-01-04 01:35:21 +00:00
itojun f5f5aac99a look at __LITTLE_ENDIAN__ (gcc symbol) to determine which endian we are in.
makes the file bi-endian.
2001-01-04 00:51:15 +00:00
thorpej d04f6f6d57 Just garbage-collect the #if 0'd pmap_transfer() stuff. 2001-01-04 00:17:43 +00:00
itojun 16b3064038 split big/little endian better. 2001-01-03 23:49:21 +00:00
eeh 4020842234 Fix faults caused by incorrect cacheing information in the pv_entry. 2001-01-03 23:05:22 +00:00
thorpej 33338b633a ANSI'ify, and inline userret(). 2001-01-03 22:15:38 +00:00
thorpej 09ffed2ba0 ANSI'ify. 2001-01-03 21:40:25 +00:00
thorpej dbe63d5a81 Some more slight cleanup. 2001-01-03 21:39:20 +00:00
thorpej 5602df2e07 Fix a couple of comments. 2001-01-03 21:27:07 +00:00
thorpej c3d730df25 ANSI'ify. 2001-01-03 20:29:58 +00:00
fvdl 3456657259 Bump shm max pages value to a more realistic one. 2001-01-03 20:19:33 +00:00
thorpej a2a696618e Restructure alpha_sgmap_dmamap_create() slightly. 2001-01-03 20:12:34 +00:00
thorpej db36913c87 The code that creates/destroys SGMAP DMA maps is the same; put it
in a common place and share it.
2001-01-03 19:15:59 +00:00
itojun 1d25215235 $NetBSD$ 2001-01-03 18:15:47 +00:00
itojun 10e1d3091a share sys/arch/sh3/conf/Makefile.sh3 across sh3-based architectures.
cleanup param.h a bit.
2001-01-03 18:14:44 +00:00
itojun f66249f478 dreamcast went to sys/arch/dreamcast 2001-01-03 17:59:02 +00:00
itojun 4eb5bbbdc2 wdog* does not compile due to the lack of WDOG_IRQ. 2001-01-03 15:42:48 +00:00
pk cf53c74834 * Apply proper cast for 32 -> 64 bit pointer argument conversion.
* Since probeget() isn't geared up to deal with _arbitrary_ memory fault
  types (and doesn't work at all when called from an interrupt context),
  add explicit sanity checks on a stack frame's contents before use
  (XXX - needs revisiting).
2001-01-03 15:33:34 +00:00
itojun 00fbe713e7 remove #if 0'ed portion 2001-01-03 15:26:17 +00:00
itojun 4469b35a09 retain empty "compile" directory 2001-01-03 15:22:14 +00:00
takemura c5fd828440 replace 'long long' with int64_t to compile stand alone program with
compiler other than GCC.
2001-01-03 10:08:55 +00:00
tron 0ce4a9a0de Use highest bit of minor as an extra bit for the partition number to
bump the maximum partition number on NetBSD-i386 to 16. (Approved by fvdl)
2001-01-02 23:06:54 +00:00
matthias 4cefdbee45 make sendsig/sigreturn work with p_sigctx. 2001-01-02 19:16:34 +00:00
simonb eaf4f43227 Add ELF support.
Thanks to Steve Woodford for his help!
2001-01-02 04:28:37 +00:00
simonb 472a75b08f Convert both bootblocks and mkboot to use libsa's loadfile(), and make
both ELF aware.
2001-01-02 04:14:33 +00:00
matt 4622cfafe0 Redefine the memset/memmove/bcopy/bzero/memset macros to use more agressive
constraints in their inline asm.  Gcc generates much better code now.
2001-01-02 04:03:42 +00:00
mrg d9a9b8d6d5 the tcds cards work in pmaxen. move tcds attachment to files.tc. leave asc
at tcds in files.alpha for now, and add a new `xasc at tcds' to files.pmax.
after pmax has moved fully to MI scsi (and `asc' is MI scsi), we should move
the device asc, etc., lines to files.tc.
2001-01-01 23:43:05 +00:00
thorpej bee6e31c0d Don't equate pmap_update() with tlbflush(), but instead call
tlbflush() when that's what we mean (currently everywhere, except
in the one place in MI code where it is called).

The whole pmap_update() thing needs to be reexamined, but this helps
to clarify things a little with the currently-defined semantics of
that function.
2001-01-01 22:13:53 +00:00
bjh21 7866e2f2c9 Arrange that the return value of copyin() and friends be provided by
do_fault(), in preparation for do_fault() being able to get it from
uvm_fault().
2001-01-01 16:00:42 +00:00
tsubai ad6af0a61b Make lasttb and tickspending per-CPU. 2001-01-01 05:28:54 +00:00
tsubai b3982b810e Allocate intstk and spillstk for cpu0. 2001-01-01 05:23:17 +00:00
tsubai 61096678a3 Forgot to commit this... 2001-01-01 05:17:15 +00:00
tsubai 6c4981f735 Switch to the idle stack before releasing the sched_lock (rev 1.31 was
wrong).
2001-01-01 05:16:12 +00:00
tsubai 9a7bf182cd MP support in external interrupt handler. 2001-01-01 05:01:11 +00:00
tsubai 26914e2bcf Make want_resched and astpending per-CPU.
Add some per-CPU variables to cpu_info.
2001-01-01 04:33:39 +00:00
sato f89afd86e1 re-disable experimental HPCFB_MULTI codes.... 2001-01-01 01:42:03 +00:00
eeh fe278fa440 Make INCR() atomic. 2000-12-31 21:05:21 +00:00
matt ab88a97d88 de-__P. cleanup the whitespace a bit. add a very small optimization. 2000-12-31 19:41:41 +00:00
matt 143230cc74 Rename arithflt to trap. Change trap label to Xtrap. This is due to that
arithflt is really the trap handler so call it that.
2000-12-31 19:27:24 +00:00
castor a0c38fa362 Fix sendsig/sigreturn for SOFTFLOAT case. 2000-12-31 19:06:40 +00:00
bjh21 bc86e85531 Correct various initial comments, and provide a useful overview of how the
MEMC works, at the suggestion of chs.
2000-12-31 16:09:34 +00:00
ragge de50d468c9 Do not touch pv_table when mapping/unmapping I/O registers. This caused
mmap() of framebuffers to give unpredictable faults.
2000-12-31 11:16:55 +00:00
matt 625392adca improv the stack trace by printing the fp at the start of each line and
noticing trap frames, and printing that information as well.  For example
Stack traceback :
0x87ba2bc4: _arithflt+0x1a7(0x87ba2cac)
0x87ba2c50: trap type=0x8c code=0x8 pc=0x800008ef psl=0xc00000
0x87ba2c1c: _copystr+0x23(0x8095f378,0xa539f,0x86c0bd20)
2000-12-31 05:52:48 +00:00
matt d962f9c52e Add a kludge that makes stack tracebacks work. 2000-12-30 20:16:34 +00:00
matt 8a55dd0d98 Make this compile without having a SMG device. 2000-12-30 20:15:02 +00:00
matt c03997bb51 Make this compile again. 2000-12-30 20:11:54 +00:00
mjacob 366352e859 Enable Qlogic PCI cards 2000-12-30 19:30:50 +00:00
bjh21 c1ad66d687 Whitespace cleanup. 2000-12-30 13:53:26 +00:00
bjh21 66c70101f3 Add a cache flush to pmap_fault() when it adds a r/w mapping, since there's
probably an old mapping around that we don't want to get stale.
2000-12-30 13:42:12 +00:00
bjh21 e9d5e8f1e5 Overhaul v(un)mapbuf: Don't worry about unmapping things (the pmap can handle
multiple wired mappings now).  Do worry about seeding referenced/modified
information correctly.
2000-12-30 13:33:15 +00:00
bjh21 e4c6b6f4e5 pmap_kenter_pa(): Seed referenced/modified information correctly. 2000-12-30 13:31:50 +00:00
mjacob a8b078eb95 more missing #ifdef DEBUG goop 2000-12-30 07:42:42 +00:00
mjacob f8e9b56ebf Fix a 'defined but not used' error (GENERIC doesn't define DEBUG). 2000-12-30 07:34:40 +00:00
tsutsui 93f151b221 Define VM_MAX_KERNEL_BUF and PAGER_MAP_SIZE (from macppc)
so that the kernel can boot with 128MB memory.

XXX: How can we determine size of the buffer cache on UBC?
2000-12-30 07:10:21 +00:00
tsutsui 647fc19862 Sync with GENERIC:
> PCMCIAVERBOSE (commented out)
> isapnp at isa (commented out)
> midi at pcppi
> ep at isapnp (commented out)
> ix at isa (commented out)
> iy at isa (commented out)
> wdc at isapnp (commented out)
> wss at isapnp (commented out)
>
> The isapnp stuff is commented out because it may crash due to unimplemented
> alloc methods on some machines with some devices.  This should really get
> fixed.
2000-12-30 07:01:31 +00:00
sato 6592f8f942 notify console polling mode or not to lower level video driver.
turn polling mode when console are polling mode.
disable redrawing when not EMUL mode.
2000-12-30 01:55:24 +00:00
bjh21 b3eae7d1c8 Since we need to have an aout_machdep.h, we may as well borrow the arm32 one. 2000-12-29 23:08:31 +00:00
bjh21 36f8a8d0f8 Purge vestiges of a.out support. 2000-12-29 23:07:29 +00:00
bjh21 00a01e20d8 Sync with arm32. No functional changes. 2000-12-29 22:42:23 +00:00
is d1089630fa The name is X-surf, not X-serv. I'll never learn this.
Thanks to Petri Koistinen for the correction.
2000-12-29 22:39:29 +00:00
is 9ae07c3362 Update for vlan addition and Xsurf name addition. 2000-12-29 22:36:51 +00:00
is f2ff118b7c Add name of X-surf Ethernet board. Patch by Petri Koistinen. 2000-12-29 22:31:56 +00:00
mycroft 584db4dfbf No need for this to be checked in any more. 2000-12-29 22:06:17 +00:00
mycroft 1642c89d86 Add some random things I've tested over the years:
PCMCIAVERBOSE (commented out)
isapnp at isa (commented out)
midi at pcppi
ep at isapnp (commented out)
ix at isa (commented out)
iy at isa (commented out)
wdc at isapnp (commented out)
wss at isapnp (commented out)

The isapnp stuff is commented out because it may crash due to unimplemented
alloc methods on some machines with some devices.  This should really get
fixed.
2000-12-29 22:03:47 +00:00
mycroft c95706b81d Long gone. 2000-12-29 21:52:03 +00:00