thorpej
639cc899cf
Basic elf_machdep.h for m68k; doesn't include relocations, yet.
1998-07-12 01:17:58 +00:00
thorpej
1ea93eea1c
Define one page free list, and put all pages on it.
1998-07-08 04:35:23 +00:00
thorpej
37b378d836
defopt COMPAT_HPUX
1998-06-25 23:56:39 +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
kleink
3e08a4a027
Spell `interrupt' correctly.
1998-05-18 17:37:38 +00:00
scottr
4804060a6b
GC the old MACHINE_NONCONTIG code.
1998-04-26 21:24:27 +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
scottr
f49dd3ef30
Avoid declaring the "astpending" and "want_resched" globals in cpu.h,
...
as this breaks C++ code that happens to indirectly include this header.
Both Matthias Scheler and I noticed this, independently.
This problem notably does not affect the atari and sun3/sun3x ports,
which have already implemented a similar solution.
1998-02-13 07:41:45 +00:00
thorpej
223caea788
pmap_page_index() is not used in the MACHINE_NEW_NONCONTIG case.
1998-02-08 18:47:06 +00:00
thorpej
2f55a48f5c
Implement MACHINE_NEW_NONCONTIG and switch the hp300 port to use it.
1998-02-08 18:37:55 +00:00
mycroft
b5c132e4d2
Prototype __flt_rounds() consistently.
1998-02-03 01:26:20 +00:00
thorpej
871cf5e7ce
Update for changes to config.
1998-01-12 18:30:41 +00:00
thorpej
b69358e4ca
bus.h for the hp300 port. Only supports bus_space for now.
1998-01-11 21:26:04 +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
61567b54de
Garbage-collect pm_stchanged; it's not used by anything.
1998-01-06 07:02:58 +00:00
thorpej
d11b109f2b
Garbage-collect use of the PCB's copy of the user segment table pointer.
1998-01-06 06:51:40 +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
dd966fca05
Change an argument name to PMAP_ACTIVATE() to more accurately describe the
...
semantics of the argument.
1998-01-01 20:05:23 +00:00
thorpej
9c20093835
Make pmap_activate() and pmap_deactivate() take a struct proc *.
1997-12-31 10:12:55 +00:00
is
a16fd7d74e
Make these compile after m68k/m68k.h 1.4->1.5.
1997-10-26 21:41:34 +00:00
thorpej
f53f16dd2e
Move the prototype of hp300_calibrate_delay() to cpu.h
1997-10-12 18:37:56 +00:00
jtc
4c9d6e4d9c
Fix tipo inherited from old version of TNF copyright template.
1997-10-09 08:58:45 +00:00
carrel
3f5b21562b
Add missing definition needed for COMPAT_SUNOS
1997-10-05 02:12:52 +00:00
leo
c5ba7a3102
Move the definition of MSGBUFSIZE up to the machine-arch level if
...
possible. Pointed out by Bernd Ernesti.
1997-09-20 12:06:37 +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
mycroft
42c101eb00
Fix execve(2) and *setregs() interfaces so emulations can set registers in a
...
more correct way. (See tech-kern.)
1997-09-12 05:48:08 +00:00
scottr
0755be1f84
Use optimized _splraise() implementation, from mac68k/intr.h
1997-07-24 05:43:08 +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
1c599835b4
Restore the defines of UPAGES and NPTEPG.
1997-07-10 08:22:36 +00:00
mrg
dc6a98e92c
bring mrg-vm-swap2 onto mainilne.
1997-06-12 15:09:23 +00:00
kleink
a10178c21e
GC this file. It has been unused for quite a while.
1997-06-11 08:42:31 +00:00
veego
be611a44d5
The 'Mach derived conversion macros' are now in <m68k/param.h>
1997-06-10 18:59:12 +00:00
veego
323d575e58
s/hp300_btop/m68k_btop/
1997-06-10 18:58:19 +00:00
veego
931d90fcee
Use the MI <m68k/param.h> include.
1997-06-10 07:54:35 +00:00
thorpej
989ed431e1
Oops, the numbers for "t" and "s" got swapped around. No functional
...
difference, just correct now.
1997-05-01 05:26:48 +00:00
thorpej
97a6c32e58
Garbage-collect a bunch of _very_ hp300-specific code, most of which
...
doesn't work anyhow (due to current and future fundamental differences
between NetBSD and HP-UX device semantics). This can probably be shared
with other m68k ports now.
1997-04-27 21:38:57 +00:00
thorpej
80ff0f0f2f
- Move a bunch of hp300 SPU-specific stuff out of cpu.h, and place it
...
in new hp300spu.h file. This includes the code that associates
model number with cpu/mmu/cache combinations.
- Define "mmuid" constants for several models, derived from code
provided by Mike Smith.
1997-04-27 20:37:07 +00:00
thorpej
30166b9778
Rearrange the interrupt code slightly:
...
- place all interrupt-related macros, prototypes, etc. into <machine/intr.h>,
like other ports.
- rename isrlink/isrunlink/isrinit, etc. intr_establish/intr_disestablish/
intr_init, etc., and move to intr.c for naming consistency.
- don't call intr_init() twice.
1997-04-14 02:28:43 +00:00
thorpej
81f55f1cc8
regdump() is prototyped in m68k/cpu.h now.
1997-04-09 20:08:25 +00:00
thorpej
c3c59721e2
kcore.h for hp300 - just pulls in the common m68k kcore.h
1997-04-09 19:51:36 +00:00
scottr
6c7f504b20
Add forward declarations for struct exec_package and struct exec_vmcmd,
...
to minimize the number of unnecessary #includes.
1997-04-01 20:05:14 +00:00
scottr
4c6e335897
Add prototypes as appropriate.
1997-04-01 03:03:56 +00:00
gwr
5485e1ff75
Need a common <m68k/pcb.h> for gdb.
1997-03-31 21:39:51 +00:00
mycroft
c14b8539e0
Make active_user_pmap() DTRT while a process is exiting.
1997-03-18 16:39:30 +00:00
mycroft
d19eaa3d4f
Add an active_user_pmap() macro, and use it as appropriate.
1997-03-18 14:13:55 +00:00
thorpej
e93bf2f15b
Garbage-collect hpux_dumpu().
1997-03-16 10:00:45 +00:00
thorpej
5a1149b25d
Nuke MDP_HPUXTRACE.
1997-03-16 09:40:01 +00:00
thorpej
c5b6d5ed07
Prototype hpux_setregs().
1997-03-16 09:14:25 +00:00
thorpej
27c7e59344
Define the HP-UX sigcontext structure here, and prototype hpux_sendsig().
1997-03-16 03:45:33 +00:00
thorpej
1023932f47
User text segment begins at 8k, now, to match the other m68k ports.
1997-03-15 22:02:24 +00:00
thorpej
26644d1232
Change MID_MACHINE to MID_M68K; we now use the same executable format as
...
the rest of the m68k ports.
1997-03-15 22:01:02 +00:00
thorpej
0e368d2e40
Don't set __LDPGSZ to 4096; we use 8192 like the rest of m68k-land, now.
1997-03-15 21:59:20 +00:00
fvdl
115b6d92fa
Define ALIGNED_POINTER
1997-02-24 23:16:53 +00:00
thorpej
14a4465f0b
- Implement _splraise(), like _spl(), but only modifies the SR if the
...
new ipl is higher than the ipl currently set in SR. (Thanks to
scottr@netbsd.org for implementing it while I was busy with other stuff!)
- Define spl{bio,net,tty,imp} in terms of _splraise().
- Move definition of splhil() here, and define splkbd() as an alias for it.
1997-02-02 09:34:26 +00:00
thorpej
7b4ca2ebe5
Kill __BROKEN_INDIRECT_CONFIG
1996-12-17 08:11:50 +00:00
thorpej
ce7ecde8a3
Dynamically compute the PSL value for spl{bio,net,tty,imp}() calls.
1996-12-09 03:04:46 +00:00
cgd
96acdadef7
First step inn removing config_scan() and the hacks that gave devices
...
on indirect-config busses a (permanent) softc that they could share
between 'match' and 'attach' routines:
Define __BROKEN_INDIRECT_CONFIG so that old autoconfiguration
interfaces are used, until drivers are converted to use the new
interfaces (actually, converted back to use the _older_ interfaces)
which prohibit indirect configuration devices from receiving a softc
in their match routine that they can share with their attach routine.
1996-12-05 00:13:47 +00:00
thorpej
bbdd41a2a7
Back out last change, and add a comment about what should happen.
...
(*grumble* will teach me to do a `make clean' next time.)
1996-10-20 23:23:28 +00:00
thorpej
7958973110
Set VM_MIN_KERNEL_ADDRESS to NBPG. This is a better way of getting
...
the kernel_map to treat page 0 properly.
1996-10-19 21:07:42 +00:00
cgd
e36e19cf1e
repoint at shared aout_machdep.h, not exec.h
1996-10-08 13:07:26 +00:00
cgd
472889f8e4
moved to aout_machdep.h (via repository copy)
1996-10-08 12:57:37 +00:00
thorpej
eeef0d1784
Prototypes for functions in locore.s and machdep.c (oops, forgot to
...
check this in the other day...)
1996-10-07 06:29:30 +00:00
thorpej
67cd067f25
Nuke __BDEVSW_DUMP_OLD_TYPE.
1996-10-06 00:15:31 +00:00
thorpej
e469c7beca
Use <m68k/cpu.h>.
1996-09-11 00:11:42 +00:00
thorpej
de5110f41e
Use <m68k/exec.h>.
1996-09-08 01:00:35 +00:00
thorpej
503413590e
Changes for the new delay() function.
1996-05-17 15:38:08 +00:00
thorpej
91cb72e7ea
remove the now unused MHz constants, add a declaration for vectab[],
...
and document some globals.
1996-05-17 15:37:07 +00:00
scottr
a7b314774d
doboot() takes no arguments (from Thorsten Frueauf)
1996-05-09 21:17:04 +00:00
thorpej
8591bb3346
Prototype doboot() and give it the __noreturn__ attribute, so that
...
machdep.c will compile.
1996-04-27 00:38:44 +00:00
cgd
18ec26aa21
add _MACHINE and _MACHINE_ARCH, which are like MACHINE and MACHINE_ARCH,
...
execpt without quotes. meant to be __CONCAT()ted for easy #includes
of machine-dependent headers for MI code (e.g. for the MI ISA/EISA/PCI/TC
bus code).
1996-03-04 05:04:10 +00:00
thorpej
b2c3f54207
Fix logic errors in new console probe code that caused framebuffers
...
outside of "internal i/o" space to not even have a chance at console-hood.
Fix tested by Thorsten Frueauf <frueauf@ira.uka.de>, and offered with
my sincerest apologies that the bug ever existed in the first place.
1996-03-03 16:48:52 +00:00
thorpej
ee8a2c002f
Copyright assigned to The NetBSD Foundation.
1996-02-28 01:01:17 +00:00
thorpej
fa7bee29a5
Completely rework how the console is probed. Console probing no longer
...
requires pre-autoconfigured devices. Fix up some prototypes. Part of the
long journey towards new config. (GETTING THERE!)
1996-02-24 00:54:53 +00:00
mycroft
88e512b693
LOCORE -> _LOCORE
1996-02-01 22:28:24 +00:00
thorpej
d9bce7422e
Move the obviously machine-dependent HP-UX compat code to hpux_machdep.{c,h}.
...
A fair bit of this, the m68k core dump and exec goo, can probably be
made into a generic m68k hpux module, eventually.
More to be placed in hpux_machdep.c - keep your eyes peeled...
1996-01-06 12:44:06 +00:00
mycroft
ce000f04ef
Remove deprecated cpu_setstack().
1995-12-21 05:01:32 +00:00
thorpej
540dfebf15
Rather than using individual HP300 model names, map those model names to
...
properties such as "M68040" and "M68K_MMU_MOTOROLA", used to conditionally
compile code. This is more in-line with now the other m68k ports do it,
and makes it much easier to find "common ground" among them.
In locore.s, use the MMU-type constants defined my <machine/cpu.h> rather
than "expanded" values.
Because HP300-model names are mapped to CPU/MMU combinations in
<machine/cpu.h>, no change to kernel configuration will be necessary.
1995-12-11 17:09:09 +00:00
thorpej
b92924680d
Garbage collect some stuff that isn't used. Rename the relocation info
...
structure to be consistent with the other m68k ports. XXX that struct needs
to move to an m68k common file.
1995-11-20 01:15:26 +00:00
mycroft
54c9a1df90
Replace splnet() with splsoftnet(). Add splnet().
1995-08-13 00:22:40 +00:00
cgd
c83f9c5568
remove unused cpu_exec() definitions. moved "broken swap" markers, for
...
ports that still need it, to types.h.
1995-06-28 02:55:18 +00:00
cgd
d4a54b73d2
kill user-land DELAY macro, as suggested by gwr.
1995-06-28 02:43:36 +00:00
cgd
2d49c3885b
clean up definitions of ctod(), dtoc(), ctob(), btoc(), btodb(), and
...
dbtob(). remove unused definitions of ctos(), stoc(), and dtob().
1995-06-26 06:55:38 +00:00
cgd
1c0be437b1
define __BDEVSW_DUMP_OLD_TYPE for ports where it's true. clean up
...
some m68k ports inclusion of common header.
1995-06-26 05:13:37 +00:00
jtc
55fbbc705d
Wrap with #ifndef _XXX_FLOAT_H_/#define _XXX_FLOAT_H_/ ... /#endif.
1995-06-20 20:45:22 +00:00
mycroft
9877d5d787
Eliminate the double mapping of the kernel stack. Enable swapping.
1995-05-12 12:54:44 +00:00
jtc
8aa6c376b6
KERNEL -> _KERNEL
1995-05-11 16:52:54 +00:00
cgd
8703076975
define BROKEN_SWAP and/or cpu_swapout as appropriate.
1995-05-05 03:41:51 +00:00
christos
de42a28a1b
- added sunos_machdep.c for sun3, atari, amiga and mac68k.
...
- changed machdep.c and trap.c to use struct emul.
- remove ep_setup references.
- added struct emul to all emulations.
1995-04-22 20:24:40 +00:00
jtc
4d37095e31
Fix typo: ieefp.h -> ieeefp.h.
1995-04-16 16:47:03 +00:00
mycroft
22cefc03bc
Bring back pmap_kernel(), for now always inlined as a pointer to
...
kernel_pmap_store.
1995-04-10 12:41:29 +00:00
mycroft
e957423a98
Move fp_except and fp_rnd definitions to machine/include.
1995-04-09 21:31:58 +00:00
jtc
71ab4ed9dc
KERNEL -> _KERNEL
1995-03-28 18:13:48 +00:00
cgd
b8403d582b
don't be so quick to cast macro arguments to unsigned; if the
...
arguments are really off_t's (e.g. to btodb), then you can lose
information. This was the "> 4G file systems don't work" bug; physio
uses btodb, which was broken.
1995-03-18 07:22:43 +00:00
mycroft
30a80c01af
Make these consisteny with i386. Mostly cosmetic.
1995-03-05 22:06:42 +00:00
jtc
9540190d45
This file, which will be included by <sys/cdefs.h>, will contain macros
...
such as __warn_references() and __weak_reference() which are actually
machine dependant. This will make it easier for ports that are being
bootstraped with ELF and ECOFF based toolchains.
This change also introduces a new macro, _C_LABEL(x). _C_LABEL expands
its argument, an identifier, to a character string of the identifier
name as it is represented in an object file.
For most ports, _C_LABEL(x) will expand to "_x", for ELF based ports
_C_LABEL(x) will expand to "x".
1995-01-19 01:38:36 +00:00
cgd
e5049f4d59
make the definition of _JBLEN mach. dep. header-dependent.
1994-12-20 10:36:27 +00:00
cgd
132b41434c
new RCS ID format.
1994-10-26 07:22:45 +00:00
cgd
49c34d3337
move arch dependence to archs. clean up a bit. deal with weird MAXPARTITONS.
1994-10-14 18:26:22 +00:00
jtc
23ece5babc
asm -> __asm (PR #463 ).
1994-09-16 02:39:36 +00:00
mycroft
c7d5bf7b64
Nuke struct ste, struct ste40, struct pte, and HP_PAGE_SIZE. Use my
...
pv_entry allocator. Change pa_index() to pmap_page_index() for consistency
with other ports.
1994-09-09 23:52:49 +00:00
mycroft
d20de15399
Add USPACE.
1994-08-24 19:32:36 +00:00
mycroft
2b3a0d92f6
MDP_AST is deprecated.
1994-07-19 21:43:57 +00:00
mycroft
a031f19ad8
For 4.4 profiling stuff.
1994-05-28 15:41:47 +00:00
mycroft
0c3f5c039d
Merge with 4.4-Lite.
1994-05-23 06:21:18 +00:00
cgd
5cdafa6720
struct md_coredump
1994-05-21 09:16:34 +00:00
mycroft
2fa167c047
Kill stupid #ifndef.
1994-05-20 18:21:26 +00:00
cgd
25bfe2fdc8
cpu_swapin and need_proftick
1994-05-17 10:30:33 +00:00
cgd
0918278c51
splstatclock
1994-05-17 10:29:52 +00:00
cgd
3e4570726f
cast
1994-05-17 10:28:30 +00:00
mycroft
44a9de93e3
Add sysctl() stuff.
1994-05-07 06:26:03 +00:00
mycroft
89a5de9e12
Most of the changes needed to make this continue to run.
1994-05-05 10:10:21 +00:00
mycroft
e1f885f156
HPUXCOMPAT -> COMPAT_HPUX
1994-05-04 04:10:28 +00:00
mycroft
e3e3d72f66
Update to match proc.h.
1994-05-04 03:47:10 +00:00
hpeyerl
965017cfd9
define disklabel location.
1994-02-22 07:29:02 +00:00
mycroft
6169755d98
Reorder clockframe.
1994-02-04 23:09:04 +00:00
jtc
5235180083
Fix spelling error in Copyright notice
1994-01-28 23:43:26 +00:00
mycroft
ed3beef088
.
1994-01-27 15:24:36 +00:00
cgd
c9c3b2abbe
HP300 -> MACHINE
1994-01-27 02:12:44 +00:00
cgd
36a23c4ad8
stub
1994-01-23 00:23:02 +00:00
cgd
849b864238
stub
1994-01-09 16:35:32 +00:00
cgd
b38fa5acf8
stubs which pint to m68k include
1994-01-08 12:41:41 +00:00
mycroft
ed95321df9
Still need old #defines for now.
1994-01-06 17:05:34 +00:00
mycroft
f76fdd7722
Implement `struct reg'.
1994-01-06 16:50:13 +00:00
mycroft
f67ccd2bf0
Move #define of NIPCREG outside #fidef.
1993-12-08 22:46:15 +00:00
mycroft
f573b79d43
Make sure min values are correct when used at a larger size.
1993-12-07 20:44:28 +00:00
mycroft
73f2af0512
Add quad support.
1993-12-06 07:35:56 +00:00
mycroft
e52bc1d4f0
Add quad stuff, etc.
1993-12-06 07:25:07 +00:00
cgd
638c145efa
add MACHINE_ARCH
1993-12-04 02:20:11 +00:00
pk
14e6ea89aa
Put definition of __LDPGSZ and `struct relocation_info' where they belong:
...
in <machine/exec.h>.
1993-10-18 09:46:56 +00:00
cgd
ca99ee2862
md signal context.
1993-10-13 07:58:39 +00:00
cgd
944e753f33
get rid of #ifndef KERNEL around inclusion of cdefs.h
1993-10-13 07:51:09 +00:00
mycroft
0b3f240c49
Ditto.
1993-09-02 19:05:40 +00:00
mycroft
59bd26aec5
Double data size limits to make GCC happier.
1993-08-24 17:56:21 +00:00
mycroft
4a5baa80a0
Remove cpu_exec_makecmds() macro and declare it as a function. Also, wrap
...
everything in `#ifdef KERNEL'.
1993-08-19 14:34:25 +00:00
mycroft
5aa52f5be0
Set USRTEXT to NBPG.
1993-08-19 14:32:24 +00:00
jtc
c41b22b4f6
Removed CLK_TCK, it's value is not machine dependant.
...
It's supposed to be defined in <time.h>, not <limits.h> anyway.
1993-08-18 00:22:44 +00:00
mycroft
a5b04640d7
Adjust DBL_MIN so it doesn't underflow.
1993-08-15 15:46:35 +00:00
mycroft
8c11b590fb
Adjust DBL_MAX so it doesn't overflow.
1993-08-15 15:45:51 +00:00
mycroft
a770c59274
Set MID_MACHINE to MID_M68K4K.
1993-08-14 02:46:00 +00:00
mycroft
697610ba7f
Add ALIGNBYTES.
1993-08-09 04:45:30 +00:00
mycroft
b5181de827
Move pte.h to /usr/include/machine, like it is in other ports.
1993-08-09 04:44:11 +00:00
mycroft
4862b84c92
Add RCS identifiers (this time on the correct side of the branch), and
...
incorporate recent changes in netbsd-0-9 branch.
1993-08-01 19:22:24 +00:00
cgd
119ad60ccf
add MID_MACHINE #defined to be MID_HP300
1993-07-04 02:27:30 +00:00
cgd
20ed989018
fix stupid missing ||
1993-06-04 01:12:04 +00:00
cgd
53f34e4d5b
add support for a macro to be called from execve to check a_mid type
1993-06-03 01:28:36 +00:00
cgd
eff5542792
machine-dependent exec stuff
1993-06-02 02:46:58 +00:00
cgd
30177b538f
add rcsids to everything and clean up headers
1993-05-22 07:56:12 +00:00
cgd
a3219ac4fa
add from net2. were symlinks to ../../vax/include/*
1993-05-13 20:35:11 +00:00
cgd
0e180f179d
add from net/2 sources. was symlink to ../../tahoe/include/endian.h
1993-05-13 20:34:47 +00:00
cgd
6dedb5151c
add hp300 kernel files. generic kernel files might need some help...
1993-05-13 13:56:20 +00:00