ragge
9a6b7bcffa
Support for the 4000/600 cache, from Lord Isildur. (mrfusion@vaxpower.org)
2001-03-31 11:50:12 +00:00
ragge
b6aa1dfc2b
Compile vsbus_dma.c if vax53, hinted by Michael Kukat.
2001-03-27 18:01:59 +00:00
lukem
20ba07f2fe
- add dev_noimpl(xxx,yyy) macro to replace "(dev_type_xxx((*))) yyy",
...
and use appropriately
- create more helper macros:
. cdev__xyz_init(c,n), such as cdev__ocri_init() for
/* open, close, read, ioctl */, etc.
. cdev__xRy_init(c,n), where nullop is used instead of enodev to dummy out
method `R' and the comments now read /* xxx (read) yyy */ instead
. cdev__xyz_t_init(c,n,t) - as per cdev__xyz_init, but sets d_type = t
as well
- use seltrue instead of dev_noimpl(poll,*), as (IIRC) cdevsw.d_poll should
always DTRT WRT returning a valid result. (a few devices previously
incorrectly returned ENODEV)
- use dev_noimpl(stop,enodev) instead of dev_noimpl(stop,nullop) if tty
== 0, because it doesn't matter if dev_type_stop isn't implemented in that
case, and it allows the use of the cdev__xyz_init macros. certain ports
(sparc,sparc64,x68k) used the nullop method for dev_type_stop in a few
drivers, whereas everything else uses enodev
- ensure that the comments are accurate WRT the behaviour of a given entry
2001-03-26 12:33:22 +00:00
ragge
4a933b0a25
VAX_STYP_690 added, from Lord Isildur.
2001-03-21 21:11:13 +00:00
soren
912c115675
s/vm_page_alloc_memory/uvm_pglistalloc/ in panic message.
2001-03-21 18:40:28 +00:00
matt
96184e84cf
Add a diagnostic when we encounter an unknown boot device type.
2001-03-20 05:51:35 +00:00
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
thorpej
2c4c690f14
Add the BUS_DMA_STREAMING flag.
2001-03-07 22:42:16 +00:00
ragge
f860eda596
This file hasn't been in use for a long time.
2001-03-05 16:02:23 +00:00
mrg
dc3c3a7bdd
re-add.
2001-02-25 14:56:47 +00:00
mrg
c4b3d490bb
delete (again), then add (again) ?
2001-02-25 14:56:01 +00:00
mrg
af19a7de64
try a `cvs ci -f' to make this appear on the trunk again. no changes.
2001-02-25 14:47:22 +00:00
cgd
8a986b2e96
convert to use getprogname()
2001-02-19 22:48:57 +00:00
ragge
195dd4efe6
Make the machine halt when halted and reboot when rebooted.
...
From Shinmyoh Koji (yesu@rb3.so-net.ne.jp ).
2001-02-18 16:56:22 +00:00
ragge
aa13a12702
Support to control the leds on VAXstations, taken from Sun3 and ported
...
to vax by Shinmyoh Koji (yesu@rb3.so-net.ne.jp ).
2001-02-18 10:44:20 +00:00
ragge
4e155d4593
Check page reference in pmap_clear_reference(). Fixes vax hang problem
...
with ubc, tested by Chuck Silvers.
2001-02-11 19:25:55 +00:00
chs
fac51ab1a0
create dependency info for assym.h.
2001-02-08 15:19:14 +00:00
abs
c78bf4efdb
Add ipfilter, and a bunch of (commented out) network options.
2001-02-05 17:32:08 +00:00
ragge
1af765a6dd
Oops, forgot this file.
2001-02-05 13:20:10 +00:00
ragge
2c1941b3eb
Giant update from Michael Kukat (michael@unixiron.org).
...
Fixes support for:
MicroVAX 3100m90
MicroVAX 3100m95
VAX 4000/100 (tested)
VAX 4000/105A (tested)
VAX 4000/108
VAX 4000/400 (tested)
VAX 4000/500 (tested)
VAX 4000/600
2001-02-04 20:36:26 +00:00
ragge
e4d9af4b42
A bunch of new CPUs that are supported, from Michael Kukat
...
(michael@unixiron.org ). Among them are 4000/400, 4000/500 and 4000/105A.
2001-01-28 21:01:52 +00:00
ragge
747983bb5b
Fix late "constifying" in ddb.
2001-01-28 20:47:45 +00:00
ragge
630d0523f6
These are not used anymore.
2001-01-28 20:04:50 +00:00
ragge
8032849729
Rename dz_ibus to dz_vsbus.
2001-01-28 19:26:34 +00:00
tv
e58532a4bf
No-op commit to force update to a non-"-kk" revision.
2001-01-18 17:47:58 +00:00
jdolecek
d5d431e8ae
make db_[e]regs[] const
2001-01-18 10:54:27 +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
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
matt
27980172f6
Add the types needed by the new locale code.
2001-01-13 03:48:26 +00:00
ragge
2987c0474d
Fixes from OpenBSD by Brandon Creighton. (bjc@openbsd.org)
...
Log message from OpenBSD:
> - add EMODD emulation (EMODF) -- this fixes modf() and some libm code
> on systems which don't have native EMODD (i.e., most of them)
>
> - big cleanup of the getval_* stuff - have one routine doing most of the work
> instead of four doing the same thing
>
> - add some miscellaneous routines -- count sig. bits
>
> - add more operand addressing modes (still not all fully implemented)
> both the existing POLYD and EMODD can use them
>
> - add me to copyright
>
2001-01-08 22:08:22 +00:00
takemura
c5fd828440
replace 'long long' with int64_t to compile stand alone program with
...
compiler other than GCC.
2001-01-03 10:08:55 +00:00
matt
4622cfafe0
Redefine the memset/memmove/bcopy/bzero/memset macros to use more agressive
...
constraints in their inline asm. Gcc generates much better code now.
2001-01-02 04:03:42 +00:00
matt
ab88a97d88
de-__P. cleanup the whitespace a bit. add a very small optimization.
2000-12-31 19:41:41 +00:00
matt
143230cc74
Rename arithflt to trap. Change trap label to Xtrap. This is due to that
...
arithflt is really the trap handler so call it that.
2000-12-31 19:27:24 +00:00
ragge
de50d468c9
Do not touch pv_table when mapping/unmapping I/O registers. This caused
...
mmap() of framebuffers to give unpredictable faults.
2000-12-31 11:16:55 +00:00
matt
625392adca
improv the stack trace by printing the fp at the start of each line and
...
noticing trap frames, and printing that information as well. For example
Stack traceback :
0x87ba2bc4: _arithflt+0x1a7(0x87ba2cac)
0x87ba2c50: trap type=0x8c code=0x8 pc=0x800008ef psl=0xc00000
0x87ba2c1c: _copystr+0x23(0x8095f378,0xa539f,0x86c0bd20)
2000-12-31 05:52:48 +00:00
matt
d962f9c52e
Add a kludge that makes stack tracebacks work.
2000-12-30 20:16:34 +00:00
matt
8a55dd0d98
Make this compile without having a SMG device.
2000-12-30 20:15:02 +00:00
matt
c03997bb51
Make this compile again.
2000-12-30 20:11:54 +00:00
jdolecek
e9e91a0fb5
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.
2000-12-22 22:58:52 +00:00
tsutsui
cb7f7c7f3b
Remove "rnd is EXPERIMENTAL" comments.
2000-12-19 15:51:47 +00:00
bouyer
c71f40d166
Add pseudo-device vlan
2000-12-19 10:42:02 +00:00
jdolecek
cacec11253
delete obsolete comment
2000-12-17 15:52:39 +00:00
matt
3d9cc98e9a
Add VAX 4000/200
2000-12-10 03:37:56 +00:00
matt
f7b27589e3
Enable VS4000/90 SCSI controller in INSTALL kernel.
2000-12-07 01:24:25 +00:00
ragge
f8a6a4ce46
Add lkkbd/lkms/fonts, remove lkc.
2000-12-02 17:18:54 +00:00
ragge
2f2f3de2ed
Recent lkkbd/lkms/lkc changes.
2000-12-02 17:15:37 +00:00
ragge
cfcd7e9e98
Use lkkbd. Add hardware cursor support. Use wsfont fonts instead of the
...
old QDSS fonts (support not finished). KNF cleanup.
2000-12-02 17:14:00 +00:00
ragge
3321363123
Remove lkc, add lkkbd/lkms support.
2000-12-02 17:09:43 +00:00
ragge
a81d92ef69
Add prototype.
2000-12-02 17:08:32 +00:00
ragge
37bfa1d6e8
Add fusword() + a MP change.
2000-12-02 17:07:55 +00:00
ragge
e392e575c1
lkc is gone, long live wskbd.
2000-12-02 17:07:27 +00:00
matt
ca7a0ec817
Make this compile again.
2000-11-24 09:39:37 +00:00
chs
197f7aae9c
two changes to pmap_enter():
...
- allow entry of the same mapping that's already there.
this can happen with UBC.
- if PMAP_CANFAIL, return failure rather than sleeping
when we fail to allocate a ptp.
2000-11-21 06:14:40 +00:00
chs
2116915a30
eliminate TRUNC_PAGE() and ROUND_PAGE() in favor of their
...
lowercase counterparts. also, a little misc cleanup.
2000-11-21 05:49:07 +00:00
chs
c62d17a551
rationalize the use of b_flags for geteblk() buffers.
...
rather than assigning to the whole field, set or clear individual flags,
which implies that the B_BUSY and B_INVAL flags will remain set.
this allows us to make the assertion in brelse() that B_BUSY is set,
which is the purpose of all this.
2000-11-20 08:24:08 +00:00
matt
b605c997e2
Commit changes to SCSI working on the VS4000/9x. "Don't overthink the
...
plumbing! Duh!".
2000-11-16 19:25:40 +00:00
thorpej
b84f740be0
Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().
2000-11-15 01:02:11 +00:00
matt
960800cbb8
Convert some spaces to tabs.
2000-11-15 00:49:31 +00:00
thorpej
fb50850754
We use 4K VM pages on the VAX. Make PAGE_SIZE and friends into
...
compile-time constants.
2000-11-14 19:49:57 +00:00
matt
037cfa6d83
Fix a thinko or two i made a few days ago. I could have sworn i compiled
...
this. :)
2000-11-09 01:54:20 +00:00
matt
b9d975e3d2
NOMAN needs to be *before* we include bsd.own.mk
2000-11-09 01:52:55 +00:00
simonb
be1c09c850
Use the canonical RF_PROTECTED_SECTORS #define hack.
2000-11-03 00:30:34 +00:00
matt
2f33599840
Casting lvalues is evil. Do it the right way.
2000-11-02 17:04:28 +00:00
matt
ab1d1ef33d
Add code to read the disklabel and add the beginning offset for A. Add
...
support for booting off a RAID root parition.
2000-11-02 17:01:47 +00:00
matt
fba0f63c68
Change the way we make machine-links so that only occurs when we are building
...
on VAX.
2000-11-02 17:00:24 +00:00
ragge
78e81aa036
Remove unused define.
2000-11-02 14:48:51 +00:00
eeh
8c3f6a0d10
Adapt to new line discipline scheme.
2000-11-02 00:37:56 +00:00
ragge
8aed9a24ac
Define NO_MID_CHECK, to allow booting of old VAX kernels with other (or
...
none) mid.
2000-11-01 14:25:38 +00:00
ragge
d89e5a54ad
Start address must be == 0, otherwise loading on some MicroVAXen will
...
fail (boot program loaded at address 0 anyway, but tries to start at
the compiled entry point).
2000-11-01 14:06:44 +00:00
ragge
a0bc5f5454
Declare revision correctly.
2000-11-01 14:04:28 +00:00
ragge
b43932dec2
If a process is locked into memory with mlockall() (like ntpd is)
...
pmap_enter() will get called trying to wire an already wired page again
if sysctl() is called. To avoid a panic the "wired" check is moved after
the double-mapping check.
2000-10-31 20:15:09 +00:00
matt
76afe54fae
add a clarifying comment.
2000-10-18 21:38:52 +00:00
dmcmahill
07f0a9daf8
add '-s' option which will cause the installboot program to recalculate the
...
16 bit sun checksum. This flag is needed when making iso 9660 images which
are bootable on both sparc and vax machines.
2000-10-17 22:11:22 +00:00
ragge
7ac8ee6f59
By accident, a previously unused bit in the PTE got used as wired bit.
...
Because of this kvtophys() of wired pages did set the leftmost bit, causing
the pager to hang while swapping. This is now fixed by using another
free bit in the PTE as wired bit instead.
This fixes PR#11121.
Many thanks to Chuck Silvers that found what the problem was!
2000-10-15 11:00:38 +00:00
ragge
de4982c7fa
Fix bug that prevented DMA to work on SCSI chain B. This fixes PR#11124
...
but in a different way than suggested by the submitter.
2000-10-05 07:34:49 +00:00
itojun
9e47af8814
enable rnd device. they are now mandatory for ssh/sshd support,
...
so it makes more sense to enable it.
please disable them if there's any issues, but in that case, in-tree
ssh/sshd won't work.
2000-10-04 03:35:53 +00:00
abs
2824f4906d
Ensure all INSTALL* kernels have two ptys, and a note explaining why:
...
pseudo-device pty 2 # pseudo-terminals (Sysinst needs two)
(Some installers may not be using sysinst, in which case this just reduces
the number of ptys from 16 that are not used to 2 that are not used)
For i386 conf files, no change other than comments.
2000-10-02 18:43:34 +00:00
thorpej
7ca3fb9ef0
Move the check for "promisc + unicast + not for us" into ether_input(),
...
and change Ethernet drivers to always pass all received frames to
ether_input() (with a few exceptions, which are documented in the
code).
2000-10-01 23:32:39 +00:00
abs
3ef92f0bdb
Use "options<SPACE><TAB>" not "options<TAB>" - noted by simonb.
...
Move VNODE_OP_NOINLINE and NFS_V2_ONLY into '# Filesystem options' section.
Consistently label '# Filesystem options' and '#File systems' sections.
2000-09-25 13:54:50 +00:00
abs
ccf1c822a6
Ensure all INSTALL config files have (at least) COPTS="-Os", cincluding bebox
...
based on it working already for macppc.
Also add commented out:
#options VNODE_OP_NOINLINE # Don't inline vnode op calls
#options NFS_V2_ONLY # Exclude NFS3 and NQNFS code
as suggestions for additional savings
2000-09-25 11:46:37 +00:00
jdolecek
b1f94e26ab
don't specify number of ptys if >= 16 (current default initial number)
...
pty comments: normalize and g/c what is no longer relevant
2000-09-24 15:59:26 +00:00
jdolecek
49c105ffdb
add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
...
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate
as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro
for hpcmips, use new bootverbose instead of it's own hpcmips_verbose
Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
2000-09-24 12:32:31 +00:00
simonb
cd2e1c1e91
Use ${COPY} instead of -c for ${INSTALL} commands.
2000-09-23 13:53:41 +00:00
thorpej
72a24b4eae
Add an align argument to uvm_map() and some callers of that
...
routine. Works similarly fto pmap_prefer(), but allows callers
to specify a minimum power-of-two alignment of the region.
How we ever got along without this for so long is beyond me.
2000-09-13 15:00:15 +00:00
chs
e3b6ec1d77
remove extra paren so this compiles again.
2000-09-08 19:26:17 +00:00
ragge
d85872dd78
By some reason setstatclockrate() suddenly get called occationally
...
(it hasn't been called since -94 :-) Remove the panic that happens when
it is called.
2000-09-08 11:41:59 +00:00
ragge
7b3463b7d7
Fix to correctly identify 3100/m30. From moj@stacken.kth.se.
2000-09-04 11:46:33 +00:00
jhawk
a022cf9d37
Use
...
${MAKE}
instead of
make
2000-08-30 23:51:46 +00:00
jdolecek
ad4cbd94a4
Switch to newvers_stand.sh-based boot block versioning. Add sensible 'version'
...
template, the boot block changes were picked from cvs annotates for Makefile
and boot.c.
Reviewed by Ragge.
2000-08-30 18:16:09 +00:00
matt
4027af140c
Make the pmap: enter on myself panic conditional under DIAGNOSTIC
2000-08-27 17:14:44 +00:00
ragge
fa53886b69
Wiring of a page were done at the wrong place, so pages in kernel space
...
never got the wired bit set. This caused panics if a swapped out process
was swapped in again and the kernel stack had not yet been unmapped.
While here, add a forgotten lock initializer.
2000-08-27 14:14:50 +00:00
matt
98e5e148fa
Since cpu_switch (aka Swtch) is now called at splsched() with sched_lock
...
locked, cpu_exit needs to do that too. Since in the lock debug case we
have to use a CALLS which wipes out R0-R6, change the convention for Swtch
so that the proc is passed in R6 and that R6 is clobbered. This is so
Swtch itself doesn't have to save/restore the proc pointer explicitly.
2000-08-27 00:21:46 +00:00
matt
5c62e0cab4
Fix the idle loop.
2000-08-26 15:13:23 +00:00
matt
7e0ad8b0c2
Update to reflect new processor switching conventions w/ LOCKDEBUG
...
and MULTIPROCESSOR
2000-08-26 03:38:46 +00:00
matt
fc1511e910
add a COMPAT_15 and remove TCP_COMPAT_42
2000-08-26 02:32:57 +00:00
matt
3fec8167d3
Reverse polarity on INSN_EMULATION to NO_INSN_EMULATION. Thus by default
...
all kernels will have instruction emulation.
2000-08-26 02:30:59 +00:00
matt
3351f4cf4b
Need <bsd.own.mk> for OBJECT_FMT.
2000-08-25 03:51:34 +00:00
thorpej
4db6fc7542
Make need_resched() take a "struct cpu_info *" argument. This
...
causes gives a primitive form of processor affinity. Its use in
roundrobin() still needs some work.
2000-08-25 01:04:06 +00:00
ragge
5796505d43
Fix after %b fixes.
2000-08-24 13:12:25 +00:00
thorpej
58e7a6954b
Add spllock(). See spl(9) for details.
2000-08-22 19:46:26 +00:00
thorpej
23a7f255d4
Make sure we provide splsched() as described in spl(9).
2000-08-21 02:06:31 +00:00
ragge
d9bb2fc1fa
Clear result registers before using them.
...
Be more informative if unimplemented addressing modes.
2000-08-14 11:16:52 +00:00
itojun
85dda25e94
move "options PULLDOWN_TEST" into sys/sys/mbuf.h (in #ifdef _KERNEL),
...
as it is no wthe default setting for everyone.
the reason we still use the name "PULLDOWN_TEST" while it is now default:
kame code sharing.
2000-08-13 01:31:15 +00:00
tv
ccb5bdbdd9
%b -> bitmask_snprintf()
2000-08-09 03:02:52 +00:00
tshiozak
51a53de0d5
Preparation for the future introduction of multibyte locale.
...
- MB_LEN_MAX is increased to 32.
- To ensure binary compatibility for old executables
under multibyte locale, versioned setlocale is added.
- __mb_len_cur definision is added in setlocale.c
and enable it in stdlib.h .
It is also important for multibyte locale stuffs,
but I just forgot.
2000-08-08 22:31:13 +00:00
ragge
d254a73539
Remove some unneccessary TBIA's. Keep track of wired pages.
...
Fix PR#8503 (refcount error).
2000-08-08 19:06:52 +00:00
ragge
a8b7c77ff8
Be sure that cache is enabled.
2000-08-08 17:54:46 +00:00
ragge
73bb1e9018
Write code to handle unimplemented instructions trapped via SCB vector 0x18.
...
This may happen on machines missing parts of the instruction set (like
some floating point formats).
Only one new instruction added; POLYD, so that the libm assembly files can
be used on architectures missing that instruction.
Also; include emulation code if compile-time option INSN_EMULATE is defined
instead of trying to match on which cputype it is.
N.B. POLYD isn't fully implemented, just enough to make libm happy.
2000-08-08 16:48:12 +00:00
ragge
cf62d07e82
Fix bug that trashed the SPT if any copy* function were used before
...
the first swtch().
2000-08-02 12:13:22 +00:00
mason
4a353b5330
Moving to a default of 64 PTYs.
2000-07-27 17:53:35 +00:00
matt
63466a9699
Un __P.
2000-07-26 21:50:48 +00:00
ragge
1d79c50d61
Oops, forgot a debug return.
2000-07-26 15:16:55 +00:00
ragge
97c8ae87cd
nmi files.
2000-07-26 12:37:14 +00:00
ragge
f9374fe05f
Add bi interrupt allocator. Should be somewhere else.
2000-07-26 11:55:55 +00:00
ragge
e50ddafc0b
Add badaddr() field.
2000-07-26 11:55:01 +00:00
ragge
550bb5fbb2
Make yeartonum/numtoyear visible.
2000-07-26 11:54:32 +00:00
ragge
c034e1d483
VAX-specific bi support changes.
2000-07-26 11:53:30 +00:00
ragge
9c3b3ed9c6
Discover the KA88 cpu.
2000-07-26 11:50:51 +00:00
ragge
3a73106b1b
KA88 console support.
2000-07-26 11:50:16 +00:00
ragge
0aeb2853f9
Support for a machine-specific badaddr handler.
2000-07-26 11:48:50 +00:00
ragge
b38b1995fa
Support for the KA88 CPU and the NMI backplane.
2000-07-26 11:47:15 +00:00
ragge
851da6dda0
Remove the use of global "mastercpu", the world is different now.
2000-07-26 11:44:25 +00:00
matt
a6f212052a
Enable emulation for everything but 7xx/8xxxx
2000-07-22 05:03:23 +00:00
ragge
96122c2884
Do mtpr(0, PR_TBIA), not mtpr(1, PR_TBIA). This has worked on all CPUs
...
except for KA88.
2000-07-19 21:08:06 +00:00
matt
b14e1fbbd4
Tpyo
2000-07-19 20:29:45 +00:00
matt
38c659cca5
Include ELF support by default.
2000-07-19 18:29:21 +00:00
matt
8e9ff5814e
More ELF changes (a.out still works).
2000-07-19 18:15:01 +00:00
matt
d66b7dcc2d
Switch to loadfile instead of exec. Now we can load a.out or ELF kernels.
2000-07-19 02:39:11 +00:00
matt
ad99ca5ed2
use size_t instead of u_int.
2000-07-19 01:02:52 +00:00
matt
ab5d2882a0
Move KA630 definitions from boot/boot/consio.c to here.
2000-07-19 01:01:58 +00:00
matt
15c6bb6dbd
ELFify (udiv -> __udiv, urem -> __rem)
2000-07-19 01:01:02 +00:00
matt
732a08c3c3
Put the assembly consio routines in a separate file so it can deal with
...
a.out/ELF differences.
2000-07-19 00:59:20 +00:00
matt
9b4c867626
Add support for loading a 2nd stage boot in either a.out or ELF.
...
Add support for loading a 2nd stage boot directly to it's desired address
if possible.
cleanup use of u_int/size_t.
2000-07-19 00:58:23 +00:00
matt
f96915efa5
Changes so that the kernel can be compiled under __ELF__.
2000-07-17 02:54:04 +00:00
matt
5d9fda1ecd
switch size_t, ptrdiff_t, & ssize_t to long int (signed or unsigned) for
...
__ELF__.
2000-07-17 02:52:24 +00:00
matt
cb551c438d
Reflect the new reality.
2000-07-13 03:18:22 +00:00
matt
841f05f1b2
Use <machine/asm.h>
2000-07-13 03:17:21 +00:00
matt
20b3698aee
Include libkern.h
2000-07-13 03:13:40 +00:00
matt
98ffc615b2
Use <machine/asm.h>. (e.g. prepare for ELF)
2000-07-13 03:13:05 +00:00
ragge
c71d0f69c6
Forgot a debug printf.
2000-07-10 10:45:21 +00:00
ragge
5ae755e1bf
Save registers for eventually later usage.
...
Use REI to clear pipes after code copy.
2000-07-10 10:42:27 +00:00
ragge
baec928850
NODESIZE -> BI_NODESIZE.
2000-07-10 10:40:38 +00:00
ragge
ed83213bf2
Add support for VAX 6000 + VAX 8000. Tweak console routines.
...
Create a fake RPB if either netbooted (on machine without RPB) or
loaded from console storage (without VMB intervention).
2000-07-10 10:38:23 +00:00
ragge
175e6ad859
Add code that allows the boot blocks to be loaded by VMB.EXE, and
...
also have optional MTPR printf available.
2000-07-10 09:55:36 +00:00
ragge
8658157274
Nexus vector number is 0x14-0x17, not 14-17! Fortunately, 3 wrong did
...
one right. Pointed out by Kenn Humborg (kenn@linux.ie ).
2000-07-10 09:14:32 +00:00
ragge
089ed65ef7
Add NMI and XMI outcommented, the same with VAX 6400 and VAX 8000.
2000-07-06 18:04:56 +00:00
ragge
0e29b678ce
Add xmi_mainbus.c file.
2000-07-06 17:43:38 +00:00
ragge
63852b4193
Some defines for the 6000/400 CPU.
2000-07-06 17:42:49 +00:00
ragge
443db45277
Framework for the mainbus-XMI block. Not completely finished.
2000-07-06 17:41:37 +00:00
ragge
b98189c9f5
CPU support for the 6000/400 CPU. No support for spinning up the
...
slave processor yet, though.
2000-07-06 17:40:00 +00:00
ragge
d5e70ee279
Add code to support loading of kernel directly via MOP.
...
This is only intended for development purposes, not production use.
2000-07-06 17:37:40 +00:00
ragge
6bf625c8c0
Recognise VAX 6000/400.
2000-07-06 17:36:22 +00:00
ragge
5c50116697
Console Communication Area (CCA) layout description.
...
Used on for example VAX 6000 machines.
2000-07-06 17:34:29 +00:00
matt
8fbc28d991
Revert WEAK_ALIAS back to ELF only.
...
Change ALTENTRY so there is no change of alignment or section
2000-07-03 23:05:32 +00:00
matt
4f1fa84a93
Rework ALTENTRY a bit.
2000-07-03 04:24:56 +00:00
matt
959b8d8a1e
Make cross-compile friendly
2000-07-03 04:24:12 +00:00
cgd
a5c13f9ad4
Kwality control:
...
* put #includes of opt headers and headers to get protos used by
net/netisr_dispatch.h in net/netisr.h (if !defined(_LOCORE)) (rather than
in netisr_dispatch.h itself, and potentially nowhere, respectively).
* require netisr.h to be included before netisr_dispatch.h.
* minor additional cleanup of both netisr.h and netisr_dispatch.h.
* clean up uses to remove now-unnecessary header file inclusions, and
local prototypes of the fns.
* convert netisr dispatch implementations which didn't use
netisr_dispatch.h (pc532) to use it.
2000-07-02 04:40:33 +00:00
matt
c9e87920af
GCC 2.96 wants the = constraint first. Older gcc(s) don't care.
2000-07-01 06:43:42 +00:00
matt
5ccb0f3e95
Add ELF support.
2000-07-01 06:42:54 +00:00
matt
c9e3b4a94f
a.out allow weak symbols too.
2000-07-01 06:42:06 +00:00
matt
e9b3d6fc85
GCC 2.96 wants the = constraint first. Also change to be a bit more
...
efficient. Instead of using indirect register access, change the
constraint to memory and use the value directly. This allow PC-rel
access among other things.
2000-07-01 06:41:06 +00:00
matt
54a2dbe16a
More GCC 2.96 changes.
2000-07-01 06:38:53 +00:00
itojun
d738f90fd7
raise MSIZE from 128 to 256.
...
- for sizeof(void *) == 8 arch, this is mandatory. MHLEN is too small
already (less than 80) and there are chances for unwanted packet loss due
to m_pullup restriction.
- for other cases, the change should avoid allocating clusters in most cases
(even when you have IPv4 IPsec tunnel, or IPv6 with moderate amount of
extension header)
portmasters: if your arch chokes with the change (high memory usage or
whatever), please backout the change for your arch.
2000-06-30 17:55:11 +00:00
itojun
d76ae83df8
add PULLDOWN_TEST for all the platforms.
...
XXX should be moved to somewhere else when stabilized
2000-06-30 17:10:15 +00:00
matt
8231e1afca
fix typo
2000-06-30 03:35:32 +00:00
mrg
7e590c46fe
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
2000-06-29 07:07:52 +00:00
matt
f77f36407d
Use __builtin_va_list when GCC >= 2.96
2000-06-28 21:13:35 +00:00
ragge
30a1a1bb3c
Add hdc controller and rd disks.
2000-06-27 18:50:47 +00:00
ragge
2be09b4a84
Do 3 retries on a failing sector before giving up.
...
Clear pending interrupts before starting a DMA transfer. If an interrupt
occurs while the HDC9224 is doing DMA, the transfered data will be
scrambled (without giving any errors, quite bad).
2000-06-27 18:46:17 +00:00
ragge
92f0a8f388
Make this file compile again.
2000-06-27 18:38:27 +00:00
mrg
d726c1dfc5
remove redundant vm includes.
2000-06-27 09:09:51 +00:00
matt
34def42c3d
Add ELF support.
2000-06-27 06:17:28 +00:00
kleink
bb2ed0f487
G/c _BSD_INTPTR_T_ and _BSD_UINTPTR_T_.
2000-06-27 05:53:22 +00:00
kleink
47b5c5e3b1
Resolve some formatting nits; add __intptr_t and __uintptr_t.
2000-06-27 04:58:51 +00:00
kleink
e695f72a2e
Add <machine/int_types.h>, which provides namespace-pure definitions
...
of exact-width integer types.
2000-06-26 15:42:16 +00:00
mrg
2f159a1bac
remove/move more mach vm header files:
...
<vm/pglist.h> -> <uvm/uvm_pglist.h>
<vm/vm_inherit.h> -> <uvm/uvm_inherit.h>
<vm/vm_kern.h> -> into <uvm/uvm_extern.h>
<vm/vm_object.h> -> nothing
<vm/vm_pager.h> -> into <uvm/uvm_pager.h>
also includes a bunch of <vm/vm_page.h> include removals (due to redudancy
with <vm/vm.h>), and a scattering of other similar headers.
2000-06-26 14:20:25 +00:00
simonb
889c658b5b
Change the kernel mmap interface so that the offset to map is an
...
"off_t" and the return value is a "paddr_t" to allow mappings
at offsets past 2^31 bytes. Somewhat inspired by FreeBSD, which
only changed the offset to a "vm_offset_t".
Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
2000-06-26 04:55:19 +00:00
ragge
7781fd263e
Detect "rd" as root device.
2000-06-25 18:27:24 +00:00
ragge
bd66c9dafc
Make the HDC9224 MFM device driver up-to-date; has been not-working
...
since NetBSD 1.2 (!) It also uses interrupts instead of polling now.
Also fix the DMA area locking between SCSI and MFM disks.
Still missing - floppy support.
2000-06-25 16:00:43 +00:00
kleink
133ea38323
Add a WEAK_ALIAS() macro.
2000-06-23 12:18:45 +00:00
fvdl
1ee7d22c0b
Remove prefix construction for softdeps. Add SOFTDEP option to GENERIC.
2000-06-22 20:27:49 +00:00
matt
15511d1dcc
Move COFF_LDPGSZ to ibcs2_machdep.h. Fix nmagic loader to deal with
...
subpage mappings.
2000-06-21 05:45:15 +00:00
ragge
e79e5730cc
Variable "from" must be in first block read from disk, otherwise it will be
...
overwritten on non-VMB machines.
2000-06-19 20:05:17 +00:00
matt
1293f1b88b
Rename ncr[5380] device to si to more consistent with other ports.
...
Add VAX660 to cputype.h. Remove needs-flag from si & asc entries.
2000-06-19 04:22:14 +00:00
matt
955a631ce4
We use opt_cputype.h now.
2000-06-18 22:47:19 +00:00
matt
4e6d07206d
make printf happy.
2000-06-17 01:05:11 +00:00
matt
ff76991706
Add an installboot.
2000-06-17 01:01:06 +00:00
matt
94956e7869
Adjust this a bit so that the primary entry point is 0x200, not 0x0a.
2000-06-17 01:00:17 +00:00
matt
4343326b78
Add an installboot(8) for vax. This is needed so the VAX can do multiboot
...
CDroms.
2000-06-17 00:59:24 +00:00
matt
bd160eabec
these are obsolete now that vax uses sysinst.
2000-06-16 06:36:45 +00:00
matt
1e3f670589
This file now lives one level down in common.
2000-06-16 06:35:12 +00:00
matt
2aaf9eb5c7
now lives one level down in boot.
2000-06-16 06:33:22 +00:00
ragge
53cc7ebe6b
Standalone device driver for DEBNx (ni) ethernet controllers.
2000-06-15 19:53:23 +00:00
ragge
8767feaaff
Recognize "ni" as boot device.
2000-06-15 19:49:37 +00:00
veego
223d7455c7
Remove the obsolete config fragments for kernel crypto, because the IPsec
...
crypto code is now in the kernel source tree.
2000-06-14 22:02:13 +00:00
ragge
2df63a9cc1
Evil bug: sizeof(struct cpu_info) -> sizeof(struct ka820_softc).
2000-06-12 11:26:26 +00:00
ragge
8ea974e809
Put all cputype definitions in one file instead of separate files.
...
This was becoming unmaintainable.
2000-06-12 11:13:14 +00:00