Commit Graph

22205 Commits

Author SHA1 Message Date
scottr
0dfa8582c5 Make type explicit for egcs, from Erik Bertelsen in PR 5287.
Dump the register qualifier while we're here, as suggested in the PR.
1998-04-13 02:51:32 +00:00
scottr
d87f21702e Make type explicit for egcs, from Erik Bertelsen in PR 5288. 1998-04-13 02:36:24 +00:00
scottr
9a7810a03e Make type explicit for egcs, from Erik Bertelsen in PR 5288.
While we're here, kill register qualifier and other KNF.
1998-04-13 02:35:21 +00:00
tv
b21bfbde11 Add -Wno-main conditional on compiler being gcc 2.8 or egcs. (This adds
a HAVE_GCC28 check-variable that can now be used to add other gcc-2.8
flags in cases where they may be useful, or to remove gcc 2.7.2 "bug
workaround" flags.)
1998-04-12 23:47:41 +00:00
mjacob
e40e2ff2d0 A little buglet: softc for pceb is same as sio- so declare it as such.
By not doing so, a very obscure bug followed where the config search
stuff stopped at the bridge (pceb) and didn't even call match for the
two Qlogic ISP cards that followed.
1998-04-12 08:32:19 +00:00
is
4e23fff56a Make ser.c compile again (preliminary release). It needs still a lot of
cleanup, but at least mainstream usage should be possible again (worked
for me 5 minutes ago).
1998-04-11 19:30:56 +00:00
is
da0b5bf913 amiga_ttyspl -> amiga_serialspl (and keep ttyspl constant at 4 again).
(Part of this change slipped in with my last machdep commit; thanks to
Matthias Scheler for pointing this out).
1998-04-11 18:28:33 +00:00
matthias
2fe02dea17 Changes for kernels compiled with -mrtd:
locore.s:
- cpu_switch "returns" to proc_trampoline after cpu_fork. cpu_switch is
  called with an argument, remove it from the stack when not compiled
  with -DMRTD.
- use KENTRY instead of ENTRY for all functions called from C.
- when calling C code, don't clean up the stack when compiled with -DMRTD.
- need to split fusubail into fubail and subail, because fu and su
  take different number of arguments.

machdep.c:
- set sf_p when dumping
- new function do_softclock (that just calls softclock) because softclock
  doesn't take an argument.

mainbus.c:
- establish softclock interrupt to call do_softclock

trap.c:
- trap() and syscall() allways use std C calling conventions.
- need to split fusubail into fubail and subail, because fu and su
  take different number of arguments.
- make child_return take only one argument like the other functions
  "called" via cpu_set_kpc.

vm_machdep.c:
- set sf_p in cpu_fork.
1998-04-11 17:44:11 +00:00
matthias
bd4f1b48a9 cpu_switch is called with an argument. Reflect this in the switchframe. 1998-04-11 17:30:40 +00:00
mhitch
11b4024ccf Initialize proc0.p_addr so we don't dref NULL in trap(). [From hp300 locore.s]
Fixes PR 5281.
1998-04-11 16:13:57 +00:00
veego
dd9d3a3015 Fix an error introduced in rev 1.39 where jason fixed kern/5271:
s/vp/ap->a_vp/ in line 715.
1998-04-11 08:51:12 +00:00
cgd
edcb9b60e1 current_spl_level should be initialized to _SPL_HIGH. 1998-04-10 20:29:02 +00:00
mjacob
76970a00f5 trim ID of ST19171FC so that SUN drives are caught 1998-04-10 17:13:11 +00:00
mhitch
18114765d8 Fix a bug I think I introduced long, long ago. The bug would only show
up on systems that have Zorro I/O space allocated outside the Z2 I/O
region, and then only if kvm usage is high enough to begin allocating
pages already mapped for hardware mappings.  Found and fixed by Niklas
Hallqvist on OpenBSD.

From niklas@cvs.openbsd.org:
Yay! This fixes a bug that has been there since day one of the amiga port.
We have never protected the kvm area that maps Zorro I/O registers in the
Z2 memory space from being allocated by the kmem_* routines.  Lately kvm
usage has increased and we have needed more kvm allocated than earlier thus
this area have got allocated with random results.  Most often resulting in
MMU fault panics, but also in hangs.  This bug has stalled the amiga port
release builds for several weeks, but now I *hope* the amiga will have a
chance to be built and tested in time for 2.3.
1998-04-10 15:59:35 +00:00
leo
85966e661a Use MI wdc-driver. 1998-04-10 10:37:04 +00:00
leo
bc2d7f642e le_bus.c is dependent on pci & isa. 1998-04-10 10:28:47 +00:00
leo
bc9ebf17a7 Major overhaul of the atari bus_space implementation. 1998-04-10 08:19:53 +00:00
mark
af29a19dd0 Fix the interrupt number for the PS/2 mouse port on the ARM7500
(from David Forbes).
1998-04-10 06:54:30 +00:00
mark
447623df53 Correct the values of IOMD_MSDATA and IOMD_MSCR as they are 4 times too
big. Spotted by David Forbes.
1998-04-10 06:53:08 +00:00
scottr
ff2ed23c61 If we know the location and size of the on-board video buffer,
don't bother to try and suck the information out of the Mac OS page
tables.
1998-04-10 02:56:56 +00:00
thorpej
13eebaf27e Fix two problems in union_link():
(1) Fix a typo that caused a NULL pointer deref.
(2) union_copyup() locks the vnode, so unlock it before calling relookup().
PR #5272, MINOURA, Makoto <minoura@kw.netlaputa.ne.jp>.
1998-04-10 01:43:54 +00:00
thorpej
181995d5f7 Fix possible stray pointer deref in union_access, per PR #5271,
submitted by MINOURA, Makoto <minoura@kw.netlaputa.ne.jp>.
1998-04-10 01:39:45 +00:00
thorpej
db453b872d Add support for the VIA Technologies VT86C926, from Kazuki Sakamoto,
PR #5256.
1998-04-10 01:28:59 +00:00
hannken
30244f4eb7 Forgot to initialize sc->ioctl. From Matthias Drochner. 1998-04-09 17:16:57 +00:00
hannken
311e30018d Split wscons/wskbd.c's softc into a static and a nonstatic part.
Booting into debugger (-d) now works.
Cleaned wscons/wskbdvar.h. Use the same attach arguments for
console and normal keyboards.
1998-04-09 13:09:45 +00:00
tv
482063559a .y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
1998-04-09 00:32:31 +00:00
thorpej
fe97b1da8e Oops, fix a typo. 1998-04-09 00:24:05 +00:00
thorpej
2018d40811 Allocate kernel virtual address space for the U-area before allocating
the new proc structure when performing a fork.  This makes it much
easier to abort a fork operation and return an error if we run out
of KVA space.

The U-area pages are still wired down in {,u}vm_fork(), as before.
1998-04-09 00:23:38 +00:00
pk
98e9f557c2 No need to export bus_intr_establish(). 1998-04-07 20:43:58 +00:00
pk
03b9fa0bc1 Change last arg of vct_mmap_cookie' from int *' to `bus_space_handle_t *'. 1998-04-07 20:31:26 +00:00
pk
beb02e6b82 Use bus space methods to implement the vme bus space functions. 1998-04-07 20:21:55 +00:00
pk
b333d0bb62 The bus space functions now take care of "pass-through" methods. 1998-04-07 20:20:03 +00:00
pk
fbc1fe8213 bus_space_mmap() has changed to take a `bus_space_handle_t *' argument,
like other bus space methods.
1998-04-07 20:18:17 +00:00
pk
3f455e21d9 The bus space functions now take care of "pass-through" methods. 1998-04-07 20:11:54 +00:00
pk
5ecf4dce67 Remove old mapdev() function prototype. 1998-04-07 20:08:29 +00:00
pk
286472fe4d * Pass the bus tag instead of just the cookie to all bus space methods.
* In the bus tag structure, keep a reference to the parent bus.
* Express all bus space methods as inline functions in stead of macros
  and use the parent bus tag reference to find the nearest "upstream"
  bus that implements the method.
1998-04-07 20:07:23 +00:00
pk
dd3352e3e3 bus_space_*() functions now have the bus tag as first argument.
Remove old mapdev() function that is no longer used.
1998-04-07 19:57:37 +00:00
leo
fe60e74148 Add hooks to make exclusive hardware locking possible. This is necessary
to make the driver suitable for the atari falcon.
1998-04-07 19:51:57 +00:00
is
1e9c878d39 ser.c, mfc.c and msc.c dont compile currently. 1998-04-07 19:43:08 +00:00
thorpej
8e115c7176 Fill in pmap_collect(), doing what the Alpha port's pmap does - forget
the physical mappings for the entire address space, thus freeing up
the page tables held by the pmap.
1998-04-07 18:32:10 +00:00
drochner
0391896c27 Avoid namespace pollution. 1998-04-07 16:35:42 +00:00
drochner
2eea6bd8a4 We can't trust the "delay port" anymore - it doesn't work as expected on
newer chipsets. Use delay() instead.
Being here, remove BROKEN_INDIRECT_CONFIG.
1998-04-07 16:23:19 +00:00
drochner
ec9776e3ab Fix calculation of console minor device number.
Being here, remove BROKEN_INDIRECT_CONFIG.
1998-04-07 16:06:33 +00:00
drochner
7ce1360e4a Put some diagnostic output inside "#ifdef DIAGNOSTIC".
Being here, remove BROKEN_INDIRECT_CONFIG.
1998-04-07 16:02:25 +00:00
drochner
11da32b13c Clean up diagnostic printouts.
Being here, remove BROKEN_INDIRECT_CONFIG.
1998-04-07 15:57:48 +00:00
hannken
244266226c Fix typo. 1998-04-07 13:59:38 +00:00
hannken
47e698143a Oops. Forgot RCS ident and copyright. 1998-04-07 13:57:56 +00:00
hannken
64f1bb73d6 Initial import of MI keyboard translation for dev/wscons. 1998-04-07 13:43:16 +00:00
matt
b80f703f77 Fix problem with promicuously received packets. (ie. give them to bpf
but not fddi_input).
1998-04-07 13:32:06 +00:00
thorpej
47b4697587 Remember any source routes that may have accompanied a SYN. 1998-04-07 05:09:19 +00:00