Commit Graph

2364 Commits

Author SHA1 Message Date
adrianp 475217d719 Remove iso(4) from GENERIC kernels, as discussed on tech-net@
Ok'ed by core@
2007-08-06 21:26:53 +00:00
ad 9c6535a6de Add ci_cpuid where it's missing. 2007-08-04 09:49:51 +00:00
ad a0d1fd8d0c It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 13:31:07 +00:00
ad 66fefd117b It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 12:15:35 +00:00
he 960a35be0a As per hint from ad@, change uvm.kernel_object to uvm_kernel_object,
to adapt to the recent uvm changes.
2007-07-23 17:32:25 +00:00
macallan a1457f5905 change pmap_phys_address()s parameter to paddr_t since that's what it gets
fed from mmap*() anyway
approved by gimpy
2007-07-16 23:48:03 +00:00
he 040448641c Regenerated files after adding COMPAT_40. 2007-07-16 06:23:58 +00:00
he 42a743dc4a The option COMPAT_AOUT_M68K now requires COMPAT_40 (recent mount changes),
so make sure to define COMPAT_40 too.
2007-07-16 06:23:28 +00:00
ad 63811f5275 Generic soft interrupts are mandatory. 2007-07-14 21:48:17 +00:00
he 6cfc4427ed Move the declaration of repeat_ch up before its first use,
so that this builds again.
2007-07-11 18:59:18 +00:00
ad 88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
dsl fdcf6a681a Put the argument to '#if defined' in ().
The C standard allows either form, but we normally treat 'defined' as
a function, not an operator.
2007-06-16 20:06:52 +00:00
mhitch d2eac2f631 Pass a frame pointer to trap() rather than the 'entire frame' trick. Gcc4
was optimizing away modifications to the frame contents (it's not nice to
trick gcc).  Pass the pointer as the first argument to reduce the number
of places that would be changed otherwise.  Fixes the getcwd regression
test on most m68k ports.
2007-06-12 03:34:28 +00:00
mhitch 0e58b18eb5 Add amiga/amiga/pmap_bootstrap.c. Amiga can now use either the amiga pmap.c
or the m68k common pmap_motorola.c.  Add comment-out entry for
m68k/m68k/pmap_motorola.c.  Currently still uses amiga pmap, but switching
to m68k common pmap_motorola is done easily for testing.
2007-06-09 16:31:08 +00:00
mhitch 5099e47d5c Move pmap_bootstrap() into a separate file. Amiga can now use either the
amiga pmap.c or the m68k common pmap_motorola.c.
2007-06-09 16:28:15 +00:00
mhitch 1357ef0f79 Separate pmap_bootstrap() into its own file; needed for common m68k
pmap_motorola.c.
2007-06-09 16:27:16 +00:00
martin 0cfdef558a regen 2007-06-06 08:16:10 +00:00
martin 094e363596 Grr, do the addition of pseudo-device agr the right way 2007-06-06 08:15:54 +00:00
mhitch f8884f1979 Switch amiga to common m68k include files, pcb.h, pmap_motorola.h, and
pte_motrola.h.
2007-06-05 04:46:27 +00:00
martin c2534a819b Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
2007-06-04 08:55:18 +00:00
mhitch fb64759fb7 Get rid of one more incompatibility with pmap_motorola.c from pmap_bootstrap(). 2007-06-01 04:05:05 +00:00
mhitch d9ac73c21c PTE for Sysptmap was not getting set correctly. 2007-05-31 22:16:48 +00:00
mhitch 82970a259f Got rid of too much - need to allocate virtual space for msgbuf. 2007-05-28 22:36:15 +00:00
mhitch 5a0ae3b2c5 Oops. I thought I had caught this before commiting the CMAP[12] removal,
but obviously I didn't.  Non-DEBUG kernels were unbootable because I left
some code inside an #ifdef DEBUG group.
2007-05-27 21:33:55 +00:00
mhitch 058579391c Rework pmap_zero_page() and pmap_copy_page() so it doesn't need the pte
pointers from pmap_bootstrap(), and make pmap_bootstrap() more compatible
with the common m68k pmap_motorola.c.
cVS: ----------------------------------------------------------------------
2007-05-23 00:47:03 +00:00
mhitch 786f6950fd Get rid of pcb_cmap2 - it hasn't been used for a long, long time. 2007-05-22 20:29:31 +00:00
mhitch 719ec3a2b9 From pmap_motorols,c:
Allow pmap_enter_ptpage to fail, sometimes. Pass WAIT/NOWAIT flags and
fix some obvious locking problems. This allows us to run a LOCKDEBUG
ernel now.
2007-05-22 05:05:32 +00:00
tsutsui 32b0b73c06 Move declarations of m68k common functions
from <machine/cpu.h> to <m68k/m68k.h>.
While here, remove some obsolete function decls.
2007-05-21 16:37:03 +00:00
tsutsui f06d68f845 curlwp can't be NULL so no need to check it. 2007-05-21 15:22:21 +00:00
tsutsui 79dff7e882 Add a comment. 2007-05-21 15:09:12 +00:00
mhitch 63fa6e9922 Forgot cpu.h for amiga - rename proc_trampoline()->lwp_trampoline(). 2007-05-20 06:01:05 +00:00
mhitch 795d4ea06e Amiga changes for idlelwp. 2007-05-18 01:39:52 +00:00
mhitch f524750b52 Fix warnings with DEBUG enabled. 2007-05-13 19:24:20 +00:00
mhitch 1f433a38eb Final changes to amiga kernel address space layout to match almost all the
other m68k ports (initially from the yamt-km branch a long time ago).

- move Sysmap to the end of address space.
- move Amiga hardware mapping to immediately after Sysptmap.
- tweak virtual_avail/end accordingly.

A DEBUG kernel should now boot without panicing.  Also, kernel address space
layout is now compatible with m68k/m68k/pmap_motorola.c.
2007-05-12 16:51:42 +00:00
hubertf df0f62d579 Remove unneeded #include <getopt.h>
From: Slava Semushin <php-coder@altlinux.ru>
2007-03-26 23:08:29 +00:00
he 228e24a143 Correct a thinko of mine in the previous change, pointed out by
is@.  Even though the argument type changes as an effect of the
caddr_t removal, there really is no need to indirect where we didn't
before.  Instead, add the appropriate cast.
2007-03-11 17:34:37 +00:00
thorpej 32a8b62d33 - Shrink ipl_cookie_t from 32-bits to 16-bits (large enough to hold
an SR value or an IPL_* constant).
- Take advange of the smaller ipl_cookie_t to shrink kmutex_t from
  16 bytes to 8 bytes by overlapping storage where possible.
- Implement a RAS-based _lock_cas() for mc68010 systems (Sun2).  See
  sun68k/sun68k/isr.c.

Tested on various m68k platforms, but NOT Sun2.  In any case, at least
Sun2 compiles now.
2007-03-11 05:22:24 +00:00
he ffac364e10 Make the various graphics card drivers compile again.
Try to preserve `volatile' qualification where possible, though
uses of kvtop() gain an unfortunate but probably unavoidable __UNVOLATILE().
Correct various instances of "void *ba, fb" to have * in front of fb as well.
2007-03-06 00:46:00 +00:00
he 9f6b24c0fa Cast to char* before doing pointer arithmetic. 2007-03-05 20:48:42 +00:00
he f1f47464be Cast to char* before doing pointer arithmetic. 2007-03-05 20:38:19 +00:00
he a24f5d1f55 Convert "void * a, b, c;" to "void *a, *b, *c;" to make this build again. 2007-03-05 20:34:51 +00:00
he 068d2b32bc Use char* for pointer arithmetic. 2007-03-05 20:30:09 +00:00
he 3ba91b0595 Propagate volatile-ness from g_fbkva or g_regkva etc. as best as possible.
Some uses of __UNVOLATILE(), either in preparation of calls to bcopy()
or in the invocations themselves.
2007-03-05 20:29:07 +00:00
he 9b5b94d987 Cast to char* before doing pointer arithmetic. 2007-03-05 20:00:00 +00:00
he 8ecc297897 Do pointer arithmetic on char* or u_char* pointers. 2007-03-05 19:58:43 +00:00
he 8247f5f1d2 Make the various graphics card drivers compile again.
Use casts to char* before pointer arithmetic.
Try to preserve `volatile' qualification where possible, though
uses of kvtop(), strcpy(), copyin() and copyout() gain an unfortunate
but probably unavoidable __UNVOLATILE().
Correct various instances of "void *ba, fb" to have * in front of fb as well.
Remove some redundant parenthesis pairs in some of the vga* macros.
2007-03-05 19:48:19 +00:00
he b5a6705297 Fix one missing indirection causing a type conflict, and use char* for
pointer arithmetic.
2007-03-05 18:46:41 +00:00
he 51b20dc64d Use char* for pointer arithmetic. 2007-03-05 18:43:30 +00:00
he d6887d96f0 Fix one missing indirection causing a type conflict, and use char* for
pointer arithmetic.
2007-03-05 18:35:58 +00:00
he 38678ed9a1 Use char* for pointer arithmetic. 2007-03-05 18:33:34 +00:00