Commit Graph

1022 Commits

Author SHA1 Message Date
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
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
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
eeh a07a06dd78 Only panic if we can't allocate a PT page for the kernel pmap. 2001-01-22 22:10:09 +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
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
martin 84af4fa114 Enable IO space mapping by default.
Fixes PR 11940.
2001-01-19 21:25:19 +00:00
tv e58532a4bf No-op commit to force update to a non-"-kk" revision. 2001-01-18 17:47:58 +00:00
jdolecek d5d431e8ae make db_[e]regs[] const 2001-01-18 10:54:27 +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
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
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
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 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
pk b1b7565190 Implement bus_space_subregion(). 2001-01-12 15:24:15 +00:00
pk 301b806db0 ebus_find_node(): plug memory leak; make debug output meaningfuller. 2001-01-08 22:15:47 +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
eeh 4020842234 Fix faults caused by incorrect cacheing information in the pv_entry. 2001-01-03 23:05:22 +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
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
eeh fe278fa440 Make INCR() atomic. 2000-12-31 21:05:21 +00:00
mjacob 366352e859 Enable Qlogic PCI cards 2000-12-30 19:30: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
eeh 3ec59504f9 Lower PIL_SCHED below the zs interrupt so we don't get silo overflows. 2000-12-29 18:37:05 +00:00
eeh f5c0f0c5a8 Separate schedclock from statclock on machines w/counter-timers. This
lets us lower splsched().
2000-12-29 18:35:18 +00:00
eeh e8b285df6a pseg_get tells us whether it really needed that spare page after all. 2000-12-29 18:32:47 +00:00
eeh fcae6c100a Fix LOCKDEBUG issues. 2000-12-29 18:29:19 +00:00
eeh a5ecd862b1 Fix some 32-bit assembly code. 2000-12-29 17:13:33 +00:00
eeh d8887bd0ea 64-bit address values should be unsigned. 2000-12-29 17:12:05 +00:00
eeh 5f7376ce1d Fix broken printf()s. 2000-12-29 17:09:49 +00:00
eeh ac00f21218 Fix broken printf(). 2000-12-29 17:08:54 +00:00
eeh 09c04e2283 Update for new signal structures in struct proc. 2000-12-29 17:07:12 +00:00
sommerfeld 851de295eb Change pci_intr_map to get interrupt source information from a "struct
pci_attach_args *" instead of from four separate parameters which in
all cases were extracted from the same "struct pci_attach_args".

This both simplifies the driver api, and allows for alternate PCI
interrupt mapping schemes, such as one using the tables described in
the Intel Multiprocessor Spec which describe interrupt wirings for
devices behind pci-pci bridges based on the device's location rather
the bridge's location.

Tested on alpha and i386; welcome to 1.5Q
2000-12-28 22:59:06 +00:00
itojun efa2b7073c make mbstate_t bigger (32 -> 128 bytes).
XXX if you have libc after citrus locale import, please recompile libc,
and your applications that use mbstate_t (rather rare).  really sorry
for the mess.
2000-12-26 10:35:28 +00:00
jdolecek e9e91a0fb5 split off thread specific stuff from struct sigacts to struct sigctx, leaving
only signal handler array sharable between threads
move other random signal stuff from struct proc to struct sigctx

This addresses kern/10981 by Matthew Orgass.
2000-12-22 22:58:52 +00:00
eeh 4c3121006d Use an extent map for I/O addresses instead of a base so addresses can
be both allocated and freed.
2000-12-21 22:19:21 +00:00
itojun 823498203f populate _BSD_MBSTATE_T_. add warning regarding to rune_t. 2000-12-21 06:03:47 +00:00
mrg 43251365b4 com_attach_subr() prints the newline for us. 2000-12-20 16:19:09 +00:00
thorpej 2563d39a6e This is long since obsolete. 2000-12-19 18:12:48 +00:00
mrg 3f647a126c clockattach(): print the hostid as a 32-bit value to avoid 64-bit sign extension. 2000-12-19 05:09:06 +00:00
mrg 32b8108b06 s/%qx/%llx/ 2000-12-18 15:57:15 +00:00
mrg dd2f1cdf71 - rename 32bit USRSTACK32, and define USRSTACK to that if !__arch64__, so that
64bit code can see USRSTACK32
- bump the limits
2000-12-18 14:48:26 +00:00
pk c421b5eb92 Pull over revision 1.23 from sparc:
Fake a label only if it appears to be blank, and if so use RAW_PART
	instead of 0.
2000-12-17 22:39:18 +00:00
pk 065dbd3604 Make pointer formats work with a 32-bit compiler. 2000-12-17 21:54:20 +00:00
pk 51dca5ed7c Fix printf() pointer formats & make them work with a 32-bit compiler. 2000-12-17 21:43:54 +00:00
pk 4d082438e0 Literal `%' in format string => `%%' 2000-12-17 21:42:21 +00:00
pk 107489f7a1 Remove spurious `#define DEBUG' 2000-12-17 21:41:43 +00:00
jdolecek cacec11253 delete obsolete comment 2000-12-17 15:52:39 +00:00
martin ee0eb24c13 Don't include opt_*.h if compiling as LKM. 2000-12-14 10:24:42 +00:00
jdolecek ca57e681bd g/c obsolete vtrace(2) stuff 2000-12-13 18:13:05 +00:00
eeh ce7f4ef73f Don't use rwindow_save() since the stack has already been made COW. 2000-12-11 18:51:55 +00:00
eeh 264fbb89af Cleanup types in DEBUG printf()s. 2000-12-10 19:52:17 +00:00
eeh 40638d9f35 Zero proc 0 stack pages so the pcb is cleared out before use. 2000-12-10 19:33:02 +00:00
martin d9d7c42e0c Remove esp specific function from ddb when esp @ sbus is not included
in the kernel config. Makes compiling sbus-less kernels possible again.
2000-12-08 17:29:12 +00:00
eeh 873101cd21 Fix a bug in rwindow_save() that always wrote out window 0 in 64-bit
code and caused problems with ksh.
2000-12-07 01:05:55 +00:00
eeh 297dba1163 Add a call to db_esp() and make `mach phys /u' read user addresses. 2000-12-07 01:03:17 +00:00
eeh 660d1fc6c7 Fixup calculating where fpstate should be saved in the signal trampoline
code so it doesn't overwrite something important like the registers.
2000-12-07 00:59:42 +00:00
eeh a5a8c50c48 Initialize pcb_lastcall so db_dump_pcb() will not bomb on non-DEBUG kernels. 2000-12-07 00:53:29 +00:00
mrg 703ec39a02 fix warnings in DEBUG & DIAGNSTIC code. 2000-12-06 01:47:49 +00:00
fvdl 3de7a35dc2 More cast / format cleanup to make this compile cleanly in 32bit mode. 2000-12-04 20:40:07 +00:00
fvdl b5f5b707ea Make gcc happy about casts. 2000-12-04 20:33:12 +00:00
fvdl 95ed1f82c4 Make gcc like a cast. 2000-12-04 20:29:34 +00:00
fvdl 2ccdc61f62 Avoid (safe) cast warnings. 2000-12-04 20:19:49 +00:00
fvdl 2c81c82473 Comment out caxsa, it's not used. Avoids 32 bit compile errors. 2000-12-04 20:14:05 +00:00
fvdl 42efb3639a Avoid a warning in bus_dmamap_load_uio by inserting a 'return 0' for
good measure in this unimplemented function.
2000-12-04 20:12:10 +00:00
eeh c5080ee564 Fix uninitialized variable bug and code cleanup. 2000-12-04 17:26:41 +00:00
fvdl 2fb588e51d Warning police. Mostly useless format warnings. Switch Makefile for
kernel compiles to the warning flags that other ports also use.
2000-12-04 16:01:18 +00:00
mrg 247f2c42d7 Remove __BROKEN_CONFIG_UNIT_USAGE. (sync with sparc) 2000-12-04 09:56:56 +00:00
mrg ac9988aef0 remove duplicate function prototypes. 2000-12-04 01:39:04 +00:00
fvdl a21f36eeb2 Make softintr_establish prototype match other ports, avoiding compile
warnings.
2000-12-03 14:49:50 +00:00
fvdl 1f04bc7933 TRAPWIN is defined by default in trap.c, don't define it here. 2000-12-03 14:49:14 +00:00
mrg 3da40e83e7 const poison to avoid a warning. 2000-12-02 03:57:26 +00:00
eeh bf3bbac849 Don't allow pmap_collect() to run on the kernel pmap since it will
undo the work of pmap_growkernel().
2000-12-01 17:17:29 +00:00
soren 66864e1f05 Removed increased BUFCACHE/BUFPAGES. 2000-11-27 08:55:41 +00:00
chs 0ac52aaf1d remove MD functions for printing vnodes and buffers since there are
MI versions now.
2000-11-21 16:34:52 +00:00
chs c62d17a551 rationalize the use of b_flags for geteblk() buffers.
rather than assigning to the whole field, set or clear individual flags,
which implies that the B_BUSY and B_INVAL flags will remain set.
this allows us to make the assertion in brelse() that B_BUSY is set,
which is the purpose of all this.
2000-11-20 08:24:08 +00:00
mrg 5d04f7b69d update to reality. sync with GENERIC32. 2000-11-19 15:23:55 +00:00
mrg 1368967d8c fix some comments. 2000-11-19 15:22:51 +00:00
mrg e97f9e9f7a use OpenFirmware, not prom version 0, operations. eeprom(8) works now. 2000-11-18 23:45:05 +00:00
mrg a2ea64e265 sync with sparc port. add support for OF_setprop(), OF_nextprop(),
OF_interpret() and OF_milliseconds().
2000-11-18 23:43:06 +00:00
mrg d6d4159b1a s/register// 2000-11-18 03:52:50 +00:00
mrg 40095eb6a1 struct pcb's lastcall is const char * 2000-11-18 03:51:14 +00:00
mrg 0485f611f1 remove dead debugging code. 2000-11-18 03:49:38 +00:00
mrg 215d0d2dcd pull over from sparc port's mem.c:
>revision 1.26
>date: 2000/11/13 15:31:44;  author: pk;  state: Exp;  lines: +10 -1
>Detect "EOF" conditions on the memory-special files.
2000-11-17 23:18:53 +00:00
eeh efaf3dbb74 Remove unnecessary header file that causes linker issues. 2000-11-10 17:47:55 +00:00
eeh 132d16957c Clean up config and fix things so kbd.h is generated even w/no keyboard. 2000-11-10 16:05:40 +00:00
mrg 3ea4c67b6b remove unused variable 2000-11-10 11:57:26 +00:00
eeh ccf7f1446f Fix ILP32 bug in probe_get(). 2000-11-09 00:35:02 +00:00
eeh c3a041249b Enable clean up keyboard attach and make formatting prettier. 2000-11-09 00:06:47 +00:00
eeh 17b69d1833 Attach the sunkbd line discipline to zstty. 2000-11-09 00:02:54 +00:00
eeh 954a7b9824 Switch to sunkbd for both com and zstty. 2000-11-09 00:00:40 +00:00
eeh 71b0c155a0 Support for MI console magic framework. 2000-11-08 23:41:42 +00:00
eeh 052afce2a5 Use new MI console magic framework. 2000-11-08 23:40:31 +00:00
eeh 2b8da88d55 Remove debug printfs. 2000-11-08 23:24:12 +00:00
ad e6be92ad99 Pull in dev/i2o/files.i2o. 2000-11-08 19:48:51 +00:00