chs
ac3bc537bd
eliminate the KERN_* error codes in favor of the traditional E* codes.
...
the mapping is:
KERN_SUCCESS 0
KERN_INVALID_ADDRESS EFAULT
KERN_PROTECTION_FAILURE EACCES
KERN_NO_SPACE ENOMEM
KERN_INVALID_ARGUMENT EINVAL
KERN_FAILURE various, mostly turn into KASSERTs
KERN_RESOURCE_SHORTAGE ENOMEM
KERN_NOT_RECEIVER <unused>
KERN_NO_ACCESS <unused>
KERN_PAGES_LOCKED <unused>
2001-03-15 06:10:32 +00:00
scw
bb17ec14d3
Conditionalise inclusion of opt_compat_svr4.h for the benefit of LKMs.
2001-03-13 18:47:19 +00:00
scw
e4a4f09fa8
Make this compile again; chan_attn() prototype has changed.
2001-03-11 20:24:52 +00:00
thorpej
2c4c690f14
Add the BUS_DMA_STREAMING flag.
2001-03-07 22:42:16 +00:00
scw
23cf8fe52b
Add a missing _ASM_LABEL()
2001-02-15 11:49:25 +00:00
bjh21
fe3273fbb4
Patch from PR kern/8001, submitted by Rafal Boni.
...
This adds support for EtherExpress/16 cards with 16k of RAM, and in the
process adds general support for PIO mode on these cards. This entails
changing the way the i82586 driver handles bus barriers, since it doesn't
allow for strange cases like this.
This has been tested on the i386 port with the 'ix' driver in both
16KB (which was the source of the problem) and 32KB modes, as well
as with the 'ef' driver. I've tested it (briefly) with 'ei' on arm26
as well. In theory, drivers other than 'ix' should follow precisely the
same code paths as before.
2001-01-22 22:28:43 +00:00
scw
2c13177ff8
Create machine/m68k symlinks before trying to build the program.
2001-01-21 10:58:04 +00:00
tv
e58532a4bf
No-op commit to force update to a non-"-kk" revision.
2001-01-18 17:47:58 +00:00
fvdl
c7f1462f3e
Add machdep file for procfs. Currently only used for linux-style
...
/proc/cpuinfo (only active when procfs is mounted with -o linux).
For ports other than the i386 this currently produces an empty
string.
2001-01-17 00:07:18 +00:00
thorpej
d74e432ed3
Make softclock a generic soft interrupt of the API is available,
...
adding the requisite void * argument to softclock().
2001-01-15 20:19:50 +00:00
thorpej
45de366b2e
Rename __GENERIC_SOFT_INTERRUPTS to __HAVE_GENERIC_SOFT_INTERRUPTS,
...
and place the definition in <machine/types.h>. This can now be used
as a flag to indicate whether or not <machine/intr.h> can be included
to get the generic soft interrupt API.
2001-01-14 23:50:28 +00:00
thorpej
a3ec356d52
splimp() -> splvm()
2001-01-14 03:22:04 +00:00
thorpej
d85a75f583
Make sure everybody has an splvm() and equate it with splimp() (splimp()
...
is the historical name for this interrupt level, and the historical name
is going to go away in the near future).
2001-01-14 02:00:37 +00:00
scw
65137701cf
g/c the HP/UX core-dump code; it references a function which no longer exists.
2001-01-11 08:44:36 +00:00
dbj
e992baf394
fix logic error in bus_dmamap_sync that was preventing from flush/purging
...
full pages instead of only by cache lines
2000-12-26 07:27:01 +00:00
jdolecek
de31133f1d
split off thread specific stuff from struct sigacts to struct sigctx, leaving
...
only signal handler array sharable between threads
move other random signal stuff from struct proc to struct sigctx
This addresses kern/10981 by Matthew Orgass.
XXX I wish m68k ports would share trap.c
2000-12-23 09:35:51 +00:00
scw
8336df62f7
Some small optimisations:
...
o Avoid checking cputype when the kernel is built for one cpu variant only.
o In writeback(), don't use bcopy() to write a mere 16 bytes of 16-byte
aligned data; it's much quicker to copy it inline.
2000-12-22 21:02:05 +00:00
scw
d11562c429
A couple of minor functions which return pointers need to do so in %a0 now.
...
Spotted by Chuck Silvers.
2000-12-22 20:57:21 +00:00
scw
00627955a1
Some minor optimisations to avoid checking {cpu,mmu}type when
...
the kernel was built for only one type of CPU.
2000-12-20 16:53:50 +00:00
scw
4350a7f2b7
Unification of the m68k syscall() function.
2000-12-19 21:09:54 +00:00
bouyer
c71f40d166
Add pseudo-device vlan
2000-12-19 10:42:02 +00:00
scw
e82303a96d
s/MDECDIR/MDEC_DIR/
2000-12-18 21:27:01 +00:00
jdolecek
cacec11253
delete obsolete comment
2000-12-17 15:52:39 +00:00
scw
5cabdd3709
Some snippets of documentation for mvme68k...
2000-12-14 20:30:14 +00:00
jdolecek
ca57e681bd
g/c obsolete vtrace(2) stuff
2000-12-13 18:13:05 +00:00
scw
5d5ebb1b73
Simplify the reboot code:
...
Always jump through the PROM's reset vector, regardless of board type.
Fix a stack offset problem in the mvme147 reset code path.
2000-12-10 20:00:21 +00:00
scw
8ace7abc75
A small splx()/spl0()/soft interrupt related optimisation. If we're
...
dropping to spl0, use inline code to check if a soft interrupt is
pending instead of taking the hit of a function call to do the check.
2000-12-10 18:43:02 +00:00
scw
c5b6f43634
Define `splzs()' to be `splserial()' instead of `spl4()', which was
...
wrong anyway since it blindly set SPL to 4 regardless of the prevailing
level.
2000-12-10 18:00:24 +00:00
scw
1a0a12c5b4
Bah. Somehow the a.out versions of the bootxx symbols got deleted; put
...
them back.
2000-12-09 22:33:24 +00:00
scw
a3dc741c03
Delete the commented out EXEC_ELF32 now that it's in std.mvme68k.
...
(Spotted by Simon Burge)
2000-12-09 21:02:09 +00:00
scw
3c748b810f
Missed this one in yesterday's bootloader commits:
...
Change BUGCRT from bugcrt.o to bugstart.o.
2000-12-07 21:37:51 +00:00
scw
3f7cfb70ef
Add "options COMPAT_AOUT_M68K".
2000-12-07 08:40:06 +00:00
scw
ac80517816
Add some #defines for offsets into the bugargs structure, and make the
...
register names usable within assembly code.
2000-12-05 21:57:13 +00:00
scw
86c7dac956
Replace the startup C code with assembler, which avoids having to
...
explicitly tell the compiler what registers the Bug args come in on.
2000-12-05 21:54:33 +00:00
scw
7da5cde117
bootxx doesn't need the code relocating stub linked in.
2000-12-05 21:51:38 +00:00
scw
634dc65636
Backout the last change; I'll deal with it another way.
2000-12-05 19:54:09 +00:00
scw
1f9f7cbe53
UPAGES -> 2 as recommended by Chuck Silvers.
2000-12-05 18:46:10 +00:00
scw
2ec144518f
Add loadfile_machdep.h to list of installed machine headers.
2000-12-05 18:42:18 +00:00
scw
37f5782c0a
Update pm_stats.resident_count when entering pages in the kernel pmap.
2000-12-05 16:07:39 +00:00
scw
bfcd71c79c
Clean up the build process to ensure libsa/libbug are built
...
before linking the bootloaders.
2000-12-04 21:25:57 +00:00
scw
349445391c
Make this work with the ELF tape bootloader.
2000-12-04 21:24:34 +00:00
scw
5a17a935bc
Declare `start' in addition to `_start'.
2000-12-04 20:31:16 +00:00
scw
269a30a733
s/a6/fp/ again...
2000-12-04 18:48:18 +00:00
scw
e267f2466b
Add support for ELF boot blocks.
2000-12-04 18:44:51 +00:00
scw
b29bcb645b
The LOAD_TEXTA flag is required when loading a.out kernels.
...
Also add some non-standalone versions for the benefit of installboot(8).
2000-12-04 18:41:51 +00:00
scw
c28723715c
Prefix the register names with `%'.
2000-12-04 18:40:05 +00:00
scw
d0da91f9e2
Use -fomit-frame-pointer when compiling bugcrt.c; a6 needs to be reserved
...
for Bug arguments.
2000-12-04 18:35:16 +00:00
scw
9fc2cc70dc
Include the a.out m68k compatibility module.
2000-12-03 15:40:06 +00:00
scw
2e68384b0c
Back out the previous change after discussion with thorpej and cgd.
2000-12-03 15:38:30 +00:00
scw
53323bf36d
Revert the previous change, after discussion with thorpej and cgd.
2000-12-03 15:37:46 +00:00