Commit Graph

316 Commits

Author SHA1 Message Date
mycroft c3e1f6741d A foolish consistency. 1999-08-30 18:58:01 +00:00
simonb 06a92524c2 Include <sys/bswap.h> for function prototypes. i386, pc532 and vax
still include <machine/byte_swap.h> and define macros for some of
the bswap*() functions.
1999-08-21 05:39:51 +00:00
chs cb6a6fecce copy some definitions from the sparc port. fixes PR 7880. 1999-08-20 03:53:50 +00:00
thorpej 28fb7c1eb8 Define cpu_number() as discussed on tech-smp. 1999-08-10 21:08:05 +00:00
thorpej eb20bbc780 Change the semantics of splsoftclock() to be like other spl*() functions,
that is priority is rasied.  Add a new spllowersoftclock() to provide the
atomic drop-to-softclock semantics that the old splsoftclock() provided,
and update calls accordingly.

This fixes a problem with using the "rnd" pseudo-device from within
interrupt context to extract random data (e.g. from within the softnet
interrupt) where doing so would incorrectly unblock interrupts (causing
all sorts of lossage).

XXX 4 platforms do not have priority-raising capability: newsmips, sparc,
XXX sparc64, and VAX.  This platforms still have this bug until their
XXX spl*() functions are fixed.
1999-08-05 18:08:08 +00:00
kleink e1529b8f93 Pull in the right generic m68k header. (Where was my mind?) 1999-04-29 14:38:39 +00:00
thorpej b8073b401b Garbage-collect the VM_MBUF_SIZE constant. Instead, use the size
(nmbclusters * mclbytes), so that the right amount of KVA space is
allocated if those variables are patched.
1999-04-26 22:46:44 +00:00
kleink ed74932033 Add COMPAT_SVR4 for m68k. 1999-04-19 21:22:56 +00:00
gwr a8d683c525 Fix compile error in: sys/lkm/vfs/miscfs/procfs 1999-04-10 02:15:46 +00:00
gwr 95e8060c58 Move VM_PHYSSEG_MAX to the common vmparam.h (needed by LKMs). 1999-04-05 14:35:13 +00:00
gwr 2cc28dc7b6 Make it clear that MSGBUFSIZE is not user-adjustable. 1999-04-05 14:34:18 +00:00
minoura e518820ca8 Pullin m68k/ieee.h. 1999-03-15 11:55:53 +00:00
gwr 69dc3a4695 Add IDPROM_CKSUM_SIZE 1999-03-04 05:57:18 +00:00
is d04273bac7 sun3 part of fix for PR 6152 1999-02-26 22:03:28 +00:00
gwr 5cf3f8e3b2 It appears that pmap_physseg is now required in userland. Too bad. 1999-02-18 07:13:21 +00:00
chuck 90ddaed9b5 MNN is no longer optional, remove dead code 1999-01-16 20:43:21 +00:00
bouyer dc306354b0 Move the bswap functions from libutil to libc (this bups the
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
1999-01-15 13:31:15 +00:00
gwr 02b9dc7632 Switch to MACHINE_NEW_NONCONTIG (Yea! Finally!:) 1998-12-12 05:28:24 +00:00
kleink 799ebea61d Need declarations of defined inlined spl/sr functions. 1998-11-24 17:07:54 +00:00
kleink eec814ba1c Remove argument name from function declaration. 1998-10-24 16:22:58 +00:00
gwr 4a15b6ba7d Make this like the other redirect includes. 1998-07-23 23:47:02 +00:00
veego 1b46ebe1d9 Add elf_machdep.h to the INCS list. 1998-07-12 17:53:29 +00:00
thorpej 639cc899cf Basic elf_machdep.h for m68k; doesn't include relocations, yet. 1998-07-12 01:17:58 +00:00
thorpej d47ea67c1f Define one page free list, and put all pages on it. 1998-07-08 04:43:18 +00:00
mrg 1caf02a0cf moved <machine/sun_disklabel.h> to <dev/sun/disklabel.h> 1998-06-20 03:50:51 +00:00
mrg 096ec47ff9 moved to <dev/sun/disklabel.h> 1998-06-20 03:46:24 +00:00
gwr 019d982c8f Turn off MACHINE_NEW_NONCONTIG for now. Bug... 1998-06-17 15:33:27 +00:00
cgd 651b44e211 Rework the way kernel include files are installed. In the new method,
as with user-land programs, include files are installed by each directory
in the tree that has includes to install.  (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.)  The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change.  Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
1998-06-12 23:22:30 +00:00
gwr dbeb2648a6 Switch over to MACHINE_NEW_NONCONTIG 1998-06-10 02:42:14 +00:00
gwr 557be5668b Move sun3x _pmap_fault macro from pmap.h to trap.c 1998-06-09 19:58:50 +00:00
tv 00ede2160e Change ddb_init() for a.out to provision for kernels which are not booted by
the current 'bootblock' method, like the Shark, which preloads and preformats
the symbol table right in the boot code.
1998-06-09 01:57:41 +00:00
gwr 19db8f3960 Add an anonymous declaration of struct pmap in pmap.h and put
typedef struct pmap *pmap_t there, removing the latter from
pmap3.h and pmap3x.h (so LKMs can use <vm/vm.h>).
1998-03-16 16:25:38 +00:00
fair 78836acdba make sure _SUN3_ or _SUN3X_ is defined. 1998-03-15 22:36:08 +00:00
gwr 5f0963e887 Switch to MACHINE_NEW_NONCONTIG 1998-02-20 21:51:29 +00:00
cgd 3bbb7f7d45 Move pmap_map() function definition to MD headers, as appropriate. It's
an internal function, and the VM system shouldn't try to prototype it.
(Note that some ports _don't_ prototype it.)
1998-02-18 02:05:32 +00:00
gwr 5193e1e30e Factor *peek out of bus_subr.c and move it to autoconf.c
(to reduce duplication).  Add bus_tmapin and bus_tmapout
for use in probe functions (gets a temporary mapping).
Add bus_mapout() to undo bus_mapin() if needed.
1998-02-08 05:02:50 +00:00
gwr eff2e270bd Merge arch/sun3x into arch/sun3 1998-02-05 04:56:24 +00:00
gwr 5ba5bda641 Use the same names as the sun3x (DVMA_MAP_*) 1998-01-22 23:45:05 +00:00
gwr c292276dcf Change our DVMA map from the last 16MB to the last 1MB because that is
the only part that is visible to VME masters, and is adequate space.
This allows the "si" driver (on VME) to use DMA transfers.
1998-01-22 22:20:35 +00:00
perry 6f57e5c573 multiple include protect machine/limits.h, fixes pr 4473 (from Mika Nystrom) 1998-01-09 22:23:44 +00:00
thorpej b9f1b716f3 Now that all ports have pmap_activate(), and it has an identical interface,
prototype it in <vm/pmap.h>
1998-01-03 01:12:59 +00:00
thorpej f39e44955b Make pmap_activate() take a proc *. 1998-01-02 20:37:28 +00:00
thorpej d14e18faa9 Make pmap_activate() take a proc *. 1998-01-02 20:10:26 +00:00
gwr 6b8137f8f0 Make DVMA space pointers (void *) like the sun3x. 1997-10-17 03:20:13 +00:00
gwr 991d9e236b Declare functions for _STANDALONE too. 1997-10-17 03:19:20 +00:00
gwr c427423ad4 cosmetic 1997-10-16 15:45:46 +00:00
gwr 5e10630004 Add stuff for the ie driver 1997-10-07 16:10:25 +00:00
gwr a5e95ba86d Move some of the VM initialization work from _startup.c to pmap.c
where it is normally found.
1997-10-06 20:04:02 +00:00
gwr 210e726aba Use vm_offset_t to represent control space addresses, because
they are more like physical addresses in that you can not just
dereference a pointer to access the space.  (Also, if you use a
pointer type for such things, gdb will _try_ to deference it.)
1997-10-06 19:58:01 +00:00
gwr d07537bd72 Do kernel core header initialization a little differently. 1997-10-05 20:53:41 +00:00
gwr f0f6b5ab35 cosmetic 1997-10-05 20:37:56 +00:00
gwr 9d9695813b Declare kbd_docmd() 1997-10-03 23:08:08 +00:00
gwr 167d06be57 Increase MSGBUFOFF to 512 so we can be sure there is room for a
kernel core header before the message buffer.
1997-10-03 02:16:15 +00:00
gwr a3cc0968d7 Fix MSGBUFSIZE 1997-10-02 01:12:09 +00:00
leo 1e11bfa8b7 Move the definition of MSGBUFSIZE up to the machine-arch level if
possible. Pointed out by Bernd Ernesti.
1997-09-20 12:12:24 +00:00
leo 2b138578d7 Correct for the extra member in 'struct kern_msgbuf' when calculating
the number of bytes we want to allocate.
1997-09-20 12:10:09 +00:00
leo d4713d24c2 Implement the kernel part of pr-1891. This allows for a more flexible sized
msgbuf. Note that old 'dmesg' and 'syslogd' binaries will continue running,
though old 'dmesg' binaries will output a few bytes of junk at the start of
the buffer, and will miss a few bytes at the end of the buffer.
1997-09-19 13:52:37 +00:00
perry ad1710ce1e update comment from 1981 on memory and disk prices -- pr-2754 from Curt Sampson 1997-07-12 16:18:36 +00:00
veego 3feb40be26 Restore the define of UPAGES. 1997-07-10 08:23:30 +00:00
mrg dc6a98e92c bring mrg-vm-swap2 onto mainilne. 1997-06-12 15:09:23 +00:00
veego 3aed12bd06 Delete _btos and _stob.
The remaining 'Mach derived conversion macros' are now in <m68k/param.h>
1997-06-10 19:48:33 +00:00
veego 489e0898d3 Delete _btos and _stob.
The remaining 'Mach derived conversion macros' are now in <m68k/param.h>
1997-06-10 19:35:56 +00:00
veego 05b8948c41 Define NBSG from (1 << SEGSHIFT) and move some variables before
<m68k/param.h>.
1997-06-10 19:32:15 +00:00
veego 931d90fcee Use the MI <m68k/param.h> include. 1997-06-10 07:54:35 +00:00
gwr b2502668e5 Increase the default datasize limit to 16MB (enough to build libc). 1997-05-29 21:18:42 +00:00
gwr 175d58b59a Define getsr() as _getsr() for backward compatibility. 1997-05-29 21:17:38 +00:00
gwr 9ab3caec28 Add inline definitions for _getsr() and _splraise(), and
define splimp() using splraise so early calls to the VM
code (and pmap) do not accidently enable interrupts.
1997-05-29 21:16:59 +00:00
jeremy ebb856e274 Long awaited MI/MD separation completed. 1997-05-14 01:37:23 +00:00
gwr 712f2e8d93 Moved leds_* declarations into leds.h 1997-04-28 23:19:39 +00:00
gwr 388bf0e0e0 Rename obio_alloc/obio_mapin and check for obio in match functions
for attachments that will use obio_mapin.
1997-04-28 21:59:19 +00:00
gwr 46cd1d0fec Add a kernel declarations section. 1997-04-28 21:47:10 +00:00
gwr 52e455e8ba Fix declaration of get_control_byte(). 1997-04-28 21:46:31 +00:00
gwr 236a126750 Declare peek_long(). 1997-04-28 21:45:47 +00:00
thorpej 7b5647f03a regdump() is prototyped in m68k/cpu.h now. 1997-04-09 20:42:25 +00:00
thorpej fb4514fe4d Use <m68k/kcore.h> 1997-04-09 20:40:54 +00:00
gwr a09110f073 Use <m68k/pcb.h> 1997-03-31 21:35:39 +00:00
gwr a4b8e33b2b This needs muli-include protection now. 1997-03-20 16:21:10 +00:00
gwr dee24f1082 Moved the _KERNEL declarations to machdep.h 1997-03-18 23:26:38 +00:00
gwr c960be72aa Add /dev/leds (closes PR#2172 from der Mouse) 1997-03-18 22:21:50 +00:00
gwr d531b1ed42 s/fpu_type/fputype/g 1997-03-17 19:03:11 +00:00
gwr ee531cb3c9 s/sun3x_/_/ in sun3x_(round|trunc)_(page|seg) macros 1997-03-13 17:40:33 +00:00
gwr 032d13fc7d s/sun3_/_/ in sun3_(round|trunc)_(page|seg) macros 1997-03-13 15:58:49 +00:00
gwr 3aa49c4b33 Remove unnecessary differences (T_BRKPT, T_WATCHPOINT gone). 1997-03-11 20:31:20 +00:00
gwr c03be2ad19 Add declaration for isbad(). 1997-03-04 21:59:08 +00:00
gwr 507bc60404 Define pmap_page_index as a macro. 1997-02-28 19:57:35 +00:00
gwr 4d534f3d52 Define VM_MAX_KERNEL_ADDRESS using KERN_END instead of a constant. 1997-02-27 18:22:53 +00:00
gwr 9b75e011ab Allow option MCLSHIFT=x to control MCLBYTES etc. 1997-02-27 18:12:38 +00:00
gwr bb9cc8ad2b Use ALIGNBYTES in the new ALIGNED_POINTER macro.
(That is always good enough on the m68k.)
1997-02-26 20:36:13 +00:00
fvdl 115b6d92fa Define ALIGNED_POINTER 1997-02-24 23:16:53 +00:00
gwr 5f501028f6 No longer need pm_stats 1997-02-18 21:21:11 +00:00
gwr 9ed330d6df Add pmap_wired_count() 1997-02-18 20:18:56 +00:00
gwr dc9ad25881 Define pmap_resident_count(), pmap_wired_count() as
macros that call pmap_count().  (from Jeremy).
1997-02-14 03:55:33 +00:00
gwr bb35ee4ae8 In struct pmap, replace pm_mmucrp with pm_a_phys.
Define pmap_resident_count(), pmap_wired_count()
to call pmap_resident_pages(), pmap_wired_pages()
respectively, so we can keep those statistics on
lower-level structures instead of here.
1997-02-12 23:01:28 +00:00
gwr 9b3ad7dd7e Now using <sys/kgdb.h> 1997-02-12 01:30:36 +00:00
gwr aebbe3f083 Change most occurrences of "struct frame" (union of all frames formats)
to "struct trapframe" (the minimal frame) because in most cases, all we
care about is the minimal, invariant part.  Further, if the declaration
says we have an arg of type "frame" (big union), then KGDB will try to
print the whole bloody thing out whether you want to see it or not.
1997-02-11 00:18:25 +00:00
gwr 8b6cbcf45c sync with the sun3x version 1997-02-05 14:51:23 +00:00
perry 19d153fc48 Nuke some options GENERIC residue. 1997-02-04 04:57:10 +00:00
gwr cdac61715c Just declare the sunmon_* functions here. No need for sunmon.h 1997-01-27 21:48:37 +00:00
gwr feaca6a0df Let idprom_init() have void return. 1997-01-27 20:36:50 +00:00
gwr ced023ffd8 Let bus_mapin() return void * 1997-01-27 19:54:53 +00:00