mycroft
c52debae3f
Redefine the first part of struct frame to be a struct trapframe, and add a
...
struct switchframe.
1995-05-12 12:45:24 +00:00
chopps
4567f74662
add stdframe (4-word frame)
1995-05-12 00:01:05 +00:00
chopps
2526492410
fix typo
1995-05-11 23:49:56 +00:00
chopps
1ba39fdfd1
conditional use of kstack, specifically there is no kstack on the amiga
1995-05-11 23:15:13 +00:00
cgd
9b7c37148b
new-config files list. missed this yesterday.
1995-04-30 02:44:44 +00:00
cgd
0e59975fac
rename files files for new config/config.old naming
1995-04-28 08:19:12 +00:00
chopps
10eb24c459
add needed signal debug stuff so it will compile with DEBUG
1995-04-23 18:22:14 +00:00
briggs
11632db942
Make this actually compile...
1995-04-23 00:27:48 +00:00
christos
00e1cff41a
Shared sunos_machdep.c
1995-04-22 23:43:07 +00:00
mycroft
4b5c13c2c7
Shift the bit positions.
1995-04-09 23:29:22 +00:00
mycroft
e957423a98
Move fp_except and fp_rnd definitions to machine/include.
1995-04-09 21:31:58 +00:00
jtc
7a5da7fda2
Changed FLT_ROUNDS from constant to a call to __flt_rounds(), so that the
...
current rounding mode is accurately reported.
1995-04-07 00:44:37 +00:00
briggs
71a63538b8
KERNEL -> _KERNEL
1995-03-26 17:08:36 +00:00
jtc
f86410093b
Changed name of __weak_reference() to __indr_reference(). They really
...
are indirect references, and I want to add a real __weak_reference()
macro to <machine/cdefs.h> soon.
1995-03-23 19:58:48 +00:00
gwr
d0dba9b2d2
Add missing break in switch (not that it mattered 8^)
1995-03-10 01:43:05 +00:00
gwr
6ca3d5b258
First cut at an mc68881 emulator. Works only for fmovem right now.
1995-03-01 04:56:27 +00:00
chopps
70d3768555
add amiga in here too
1995-02-13 00:44:33 +00:00
mycroft
aa166654e0
Fix typos copied from i386 code.
1995-02-11 21:59:29 +00:00
gwr
664fc712cc
Make most of the labels local (start with "L")
...
Remove sun3-specific code (no longer necessary)
Add diagnostic to verify correct sfc/dfc (applies to all m68k).
1995-02-11 20:54:11 +00:00
mycroft
bc743704d0
Change comment style to match the rest of locore.
1995-02-08 17:38:03 +00:00
mycroft
989a13ef22
Oops. Change the su*() functions back to using d0, to avoid conflict with
...
the Sun 3 code.
1995-02-08 17:32:13 +00:00
mycroft
601e2d1b77
Add fu/su functions from hp300, modified for Sun 3.
1995-02-08 14:50:38 +00:00
mycroft
56c0e01a38
The count argument is always unsigned.
1995-02-08 14:26:10 +00:00
mycroft
f42e0c3e36
Pull in necessary include files to make the stand-alone.
1995-02-08 14:19:37 +00:00
mycroft
5cd0312141
Minor change.
1995-02-08 14:14:26 +00:00
mycroft
b6363586fd
Copy hp300 version, with Sun 3 sfc/dfc frobnication added.
1995-02-08 14:11:50 +00:00
jtc
830a53e394
ANSI says that <stdarg.h>'s va_end macro must expand to a void expression.
...
For consistancy, I'm changing <varargs.h> too.
1995-01-28 01:51:46 +00:00
mycroft
0460b0fe44
Fix syntax errors.
1995-01-26 21:28:09 +00:00
mycroft
70442b438d
Add struct fpreg.
1995-01-26 19:48:48 +00:00
mycroft
e3a9f05f7d
Add PT_[GS]ETFPREGS.
1995-01-26 19:47:10 +00:00
mycroft
3f74df614e
Add process_{read,write}_fpregs().
1995-01-26 19:46:17 +00:00
mycroft
1783c9f972
Rearrange struct reg to match what the rest of the world expects.
1995-01-26 18:26:01 +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
gwr
cea77bf837
Make kdb_trap return zero for traps that have not been "handled".
1995-01-18 17:10:47 +00:00
mycroft
93cd120f4e
Faster version from Michael Schr"oder.
1995-01-15 22:32:35 +00:00
jtc
d7a8b2964f
Only define sig_atomic_t when _ANSI_SOURCE is defined.
1995-01-10 19:01:00 +00:00
cgd
7b8535b554
do the right thing with strange-sized varargs objects.
1994-12-28 22:45:42 +00:00
cgd
e5049f4d59
make the definition of _JBLEN mach. dep. header-dependent.
1994-12-20 10:36:27 +00:00
gwr
c2466a5ffa
The sun3 port now has its own db_read_bytes() too.
1994-11-28 19:29:14 +00:00
gwr
81839ca1f7
The sun3 needs its own version of db_write_bytes() so just
...
added #ifndef sun3 around it for now. This function should
probably be provided by each port (like sun3/db_write.c).
1994-11-17 05:04:35 +00:00
gwr
2e0e96ea27
Fix disassembly of 8-bit branch displacements (sign extend).
...
Fix invalid array references disassembling float instructions.
Make the system stack pointer visible in show regs.
Make "sr" a proper short, remove some junk...
1994-11-14 20:53:52 +00:00
cgd
57fb77a14e
new RCS ID format.
1994-10-26 07:48:18 +00:00
cgd
5aea0d3fd2
update for new syscall args description mechanism
1994-10-20 04:46:23 +00:00
cgd
f501e4e128
make <stdarg.h> a symlink, and clean up ports' stdarg.h and varargs.h files.
1994-10-15 04:57:29 +00:00
mycroft
cbe87dbb9c
Remove BYTE_MSF.
1994-10-09 09:21:53 +00:00
chopps
241af64f6d
fix typo.
1994-10-06 20:32:04 +00:00
jtc
badcc17a6d
Add constants required by XPG3
1994-10-05 17:16:29 +00:00
cgd
cefdccbf31
changes for the new sys_process.c, and some cleanup
1994-08-15 16:37:04 +00:00
chopps
37330ed064
mama always said to protect those macro args..
1994-08-05 23:21:31 +00:00
cgd
3fbc338a62
define __BIT_TYPES_DEFINED__ for compatibility with things like BIND and nvi
1994-07-20 05:44:19 +00:00
mycroft
03ff2f15e7
Add copyright; clean up a bit.
1994-07-07 07:29:07 +00:00
mycroft
48f0b8e554
.ascii'd version of the copyright.
1994-07-07 07:28:49 +00:00
mycroft
4ebdb629aa
Simplify, speed it up, and do the right thing for floating point constants.
1994-07-07 01:51:18 +00:00
mycroft
d5b1b6a1cd
Rewrite an odd instruction.
1994-07-07 01:49:58 +00:00
mycroft
eddb30ab43
Port to NetBSD, with some bug fixes and minor performance tweaks.
1994-07-05 17:56:52 +00:00
mycroft
716b96f660
Clean up deleted files.
1994-07-05 17:56:19 +00:00
mycroft
22ef5fa9e9
Import the Motorola 68040 Floating Point Software Package.
1994-07-05 17:50:24 +00:00
mycroft
8133f8819b
Clean up deleted files.
1994-07-05 17:22:09 +00:00
mycroft
df5fb04d0c
Remove fpsp.U.
1994-07-05 17:12:45 +00:00
mycroft
67545e35a4
Remove bogon.
1994-07-03 10:24:21 +00:00
mycroft
75d34a2362
Clean up deleted files.
1994-07-03 10:23:31 +00:00
gwr
1f142431e8
Fix disassembly of branches with byte displacement.
...
Disassembler routine no longer prints the address because
db_examine now does it for us (fixes "double speak" bug).
1994-06-30 12:54:44 +00:00
deraadt
50b13742e4
_MACHINE_VARGS_H_
1994-06-29 00:45:01 +00:00
hpeyerl
0c62469161
fix to avoid duplicate symbols w/hpfplib.
1994-06-21 02:34:54 +00:00
chopps
5820b21813
default is MIT syntax not moto.
1994-06-16 14:32:05 +00:00
mycroft
5b3fef124c
Fresh compilation, with a few bugs fixed.
1994-05-29 05:11:30 +00:00
cgd
4d7a245049
can't use u_long
1994-05-23 07:41:24 +00:00
mycroft
87ffceb2c9
Add RCS ids.
1994-05-23 06:32:35 +00:00
mycroft
d27eb7ac28
Merge with 4.4-Lite.
1994-05-23 06:29:07 +00:00
mycroft
0c7a9f0d58
Remove copy.s. It's simply not that generic.
1994-05-23 06:25:58 +00:00
cgd
cbfe06b441
update from lite
1994-05-21 06:49:14 +00:00
cgd
06e74952e7
new way of naming things
1994-05-21 06:49:08 +00:00
mycroft
5a13b41bbc
Speed up process_sstep() and process_set_pc().
1994-05-19 06:36:06 +00:00
chopps
1bae027600
conditional contents on !FPSP
1994-05-18 16:31:49 +00:00
chopps
5f360da32c
always assemble fpspnull.s
1994-05-18 16:31:19 +00:00
gwr
2d6f34fc15
Fix disassembly of "mov #0xNNNN,sr"
1994-05-16 16:51:48 +00:00
cgd
c9d464003e
USL copyright foo
1994-05-16 10:58:26 +00:00
mycroft
19ab195faf
Needed for new profiling code.
1994-05-13 10:40:50 +00:00
gwr
468d5c3b45
Print offset from symbol in same format as input parser understands
...
(so they can be cut and pasted in an xterm).
1994-05-13 04:46:47 +00:00
gwr
3cd58e94d9
Fix parentheses bug in code that counts function args.
1994-05-13 04:41:43 +00:00
gwr
7e97ccb740
This file was using off_t where it should have had db_expr_t and
...
these are, of course, no longer the same thing.
1994-05-09 16:17:08 +00:00
chopps
896d6fdb2e
Add SSIZE_MAX and SIZE_T_MAX, also fix other broken values.
1994-05-09 12:39:38 +00:00
chopps
86bc8153cd
Add _SSIZE_T_.
1994-05-09 11:44:32 +00:00
briggs
2998461b9c
Add fuswintr and suswintr.
1994-05-06 17:37:37 +00:00
cgd
a0a7429482
lots of changes: prototype migration, move lots of variables, definitions,
...
and structure elements around. kill some unnecessary type and macro
definitions. standardize clock handling. More changes than you'd want.
1994-05-05 05:35:42 +00:00
cgd
4bbabd8e7a
Rename a lot of process flags.
1994-05-04 03:41:12 +00:00
briggs
18f9441f44
Add fpsp support. Comment out fpspnull line until I figure out how to
...
specify "not option" with new config. Don't need it yet, anyway.
1994-04-21 23:07:30 +00:00
briggs
7df08ffd59
vm/queue.h doesn't exist any more.
1994-04-18 21:25:22 +00:00
mycroft
d2f28a1124
Someone made a typo.
1994-04-11 01:15:47 +00:00
chopps
8ae488d659
protect against multiple inclusion
1994-04-10 02:22:09 +00:00
brezak
39e3da4a69
Add RCSID macro; be sure ENTRY is in .text
1994-03-18 21:18:07 +00:00
cgd
ff30e7db73
add basic integral types (a la sparc port) that new nvi wants.
1994-03-14 02:12:15 +00:00
chopps
54fa15b809
That comment at least needed fixing now. Also changed some buffer
...
sizes to more reasonable ammounts.
1994-03-04 13:53:48 +00:00
chopps
32d1d2b36a
1 pounds of coffee, 6 packs of smokes and a couple pizzas.
...
This is for backup purposes only. It works in a hacked up
user-mode setting. I have to get ddb working with amiga's to
test this any further though. I tested the main opcodes pretty
much, not too much testing on the fpu ops and it printed pflusha :^)
major externally visible changes still planned.
1994-03-04 13:44:30 +00:00
glass
1bf91e4911
so you can compile a kernel w/o using our hacked gas
1994-03-01 07:50:49 +00:00
glass
1fa0d00b1a
should use ENTRY() macro
1994-03-01 07:47:59 +00:00
chopps
776563485e
copyinstr: 4321, not 2143 :^) also removed a couple beq's. fixes from
...
Michael Hitch.
1994-02-28 00:27:26 +00:00
mycroft
7ef6eb49d3
Do the right thing on overflow.
1994-02-13 07:42:47 +00:00
mycroft
42c9ef1c6b
Minor tweak, though the assembler probably does this anyway.
1994-02-03 19:05:34 +00:00
mycroft
fa6b27bee1
Add random.s.
1994-02-03 18:58:40 +00:00
mycroft
39341183bd
Needed for multicast code. Retains UCB copyright, since it is derived from
...
the i386 code.
1994-02-03 18:56:21 +00:00
mycroft
c70f4764d7
Specify the byte order.
1994-01-31 23:52:10 +00:00
mycroft
9dd9d2c6af
Default to displaying 5 args if size is unknown. Allow for multiple addq's
...
following the jsr. Don't try to trace into the user's stack. Other minor
cleanup.
1994-01-31 23:50:40 +00:00
mycroft
0317b97e04
Remove bogus \ that someone inserted.
1994-01-30 22:14:00 +00:00
mycroft
b20e7826bb
GPROF --> PROF
1994-01-30 21:56:15 +00:00
mycroft
d510b6eb3a
PT_[SG]ETFPREGS are not yet implemented.
1994-01-30 17:33:55 +00:00
mycroft
b5f845fbef
Forgot the .even...
1994-01-29 16:28:16 +00:00
mycroft
dcfe932f65
Fix typo.
1994-01-29 10:14:01 +00:00
mycroft
ecddf55fa4
Add .type directive.
1994-01-29 10:02:44 +00:00
cgd
a537c5039a
make FPSP m68k-generic
1994-01-29 02:49:16 +00:00
jtc
5235180083
Fix spelling error in Copyright notice
1994-01-28 23:43:26 +00:00
mycroft
99150d20bf
Protect against multiple inclusions.
1994-01-28 04:41:26 +00:00
pk
24e4cb4bad
move varargs stuff to arch/<machine>/include.
1994-01-27 00:18:18 +00:00
mw
b638719362
Add support for 68040 frames and flag bits.
1994-01-26 21:35:37 +00:00
mw
9b4fe6ffc7
FPU software emulator for '40
1994-01-26 21:24:05 +00:00
cgd
f45152beb2
use <machine/asm.h> rather than "m68k/asm.h"
1994-01-23 00:19:18 +00:00
cgd
59ab2607ce
add copy.s to files.m68k, and alphabetize files.m68k.newconf
1994-01-23 00:13:40 +00:00
briggs
4861250d0c
Define ENTRY and ALTENTRY--hopefully for both STDC and K&R style...
...
Nabbed & mangled from sun3/include/asm.h and locore.s...
1994-01-22 13:41:08 +00:00
briggs
7f7f0683a3
Add include of "m68k/asm.h" and ditch ENTRY/ALTENTRY defines.
1994-01-22 13:38:36 +00:00
briggs
4629d6e367
Add parameter of function process_sstep to function header as well as body.
...
(blush)
1994-01-22 13:37:50 +00:00
briggs
19bd1bdf04
Add includes and ENTRY defs so it will compile.
...
Fixup copyinstr to get rid of 64k limitation on maxlength.
Non-optimal solution--needs to be sped up, and other functions need to
be fixed to overcome same limitation.
1994-01-22 03:45:03 +00:00
briggs
5760384081
Use m68k/m68k/copy.s.
1994-01-22 03:36:58 +00:00
cgd
5fa9501505
kill the TWOENTRY gunk
1994-01-21 23:10:13 +00:00
cgd
756f7e744f
move over from the sun3 tree, and generalize so that the sun3 sfc/dfc
...
twiddling doesn't happen on the rest of the archs. this file should
be included by m68k ports via '#include "m68k/copy.s"' at the end of
locore. arguably, it should be linked in from a seperate .o, but
i can't untangle the necessary include file inclusions w/o a m68k to
compile on.
1994-01-21 22:50:10 +00:00
briggs
f03dd88794
New parameter to process_sstep().
1994-01-21 04:21:06 +00:00
mycroft
bb3d7004c8
Deal with linkl in addition to linkw.
1994-01-10 17:59:45 +00:00
mycroft
77ae87e498
Fix some bogus spacing.
1994-01-10 02:22:11 +00:00
mycroft
d13e46daf0
Add some padding before SR.
1994-01-10 02:19:51 +00:00
mycroft
b75455c4a3
Fix a buglet.
1994-01-10 02:18:34 +00:00
mycroft
999a718334
T_WATCHPOINT doesn't really exist. Deal.
1994-01-09 23:38:46 +00:00
mycroft
532938fe07
Gratuitous change.
1994-01-09 22:58:07 +00:00
mycroft
384b7f777a
Fix jmp_buf definitions.
1994-01-09 22:28:50 +00:00
mycroft
1c1f7996c5
Fix some #includes.
1994-01-09 22:26:26 +00:00
mycroft
65a81b945b
KNFify, and fix a condition where we might miss the register saves if the
...
frame length is short.
1994-01-09 21:24:46 +00:00
mycroft
71c7280658
Thinko. code is always 0 on m68k; no need to print it.
1994-01-09 20:05:47 +00:00
mycroft
8243207be1
Some more minor cleanup.
1994-01-09 19:39:23 +00:00
mycroft
642f2bffba
Alias T_TRAP15 to T_BREAKPOINT globally.
1994-01-09 19:30:01 +00:00
mycroft
e2662b6ceb
Clean up a bit.
1994-01-09 19:28:53 +00:00
cgd
8cdc8d997d
define PT_STEP, and clean up some
1994-01-09 16:53:03 +00:00
cgd
f77210debf
add ddb files, and also make sure alphabetically ordered
1994-01-09 16:31:50 +00:00
cgd
ba8d0fb00f
kill logs, and minor cleanup
1994-01-09 16:26:51 +00:00
cgd
12d80e6797
stub.
1994-01-09 16:17:10 +00:00
cgd
b29e20a007
kill logs, and clean up. some of this will need cpu-dependent hooks.
1994-01-09 16:13:04 +00:00
cgd
bb92026b3e
add files.m68k.newconf for the mac folks
1994-01-08 18:08:12 +00:00
cgd
b44f8257b1
common code
1994-01-08 11:15:53 +00:00
cgd
b1d368ed16
HP300 -> M68K, and light trimming
1994-01-08 10:41:23 +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
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
glass
8585a64107
sun3 port updated. netboot integrated.
1993-10-12 05:17:41 +00:00
mycroft
0b3f240c49
Ditto.
1993-09-02 19:05:40 +00:00
glass
a2133ea268
last snapshot before uploading. we still have serious clock problems
1993-08-28 15:35:16 +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
glass
a1d3be118e
fixed problem that caused two consecutive segments to be using the same
...
pmeg unknowingly. still too many printfs, not sure how many are actualy
in the machine dependent code. reaches cpu_startup() where it stops
deliberately. next project: autoconfig(), maybe kgdb
1993-08-10 08:42:34 +00:00
glass
3cdabf7870
lots of changes, too many printfs
1993-08-08 12:21:50 +00:00
glass
3b87958501
various changes
1993-08-08 12:18:27 +00:00
glass
2ba88bc252
cleanup, one time compile with -Wall, include systm.h
...
conversion to new asm.h, removal of ALTENTRY(), ENTRY() pairs replaced by
TWOENTRY().
moved idprom fetching stuff to sun3_startup
bug fixes to pmap
added to sun3_startup.c support for initializing the vm layout, and for
verifying the hardware vs the -Ds from config(8)
still doesn't link. but list is much shorter, and much stupider
1993-08-02 02:08:25 +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
glass
e1fec74952
clock.c: now compiles even if address is bogus :)
...
conf.c: compiled, until prom addition :)
cons.c: add entry for prom driver
lib.s: remove some includes; we're being included by locore.s
locore.s: include asm.h, syscall.h, add icode
m68k.s: now included by locore.s
added signal.s; contains signal support
sun3_startup.c: fixed compile bug in vector table initialization; fixed mon
usage
swapgeneric.c: doesn't refer to drivers we don't have
1993-06-27 00:46:09 +00:00
cgd
30177b538f
add rcsids to everything and clean up headers
1993-05-22 07:56:12 +00:00
cgd
1ffe55b9c2
add from net2. was symlink to ../../tahoe/tahoe/ns_cksum.c
1993-05-13 20:36:25 +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