Commit Graph

15582 Commits

Author SHA1 Message Date
tls d21c733fd8 greatly expanded pcidevs file courtesy of Carl Shapiro <cshapiro@sparky.ic.sunysb.edu>. 1997-02-15 11:07:08 +00:00
gwr 2053794556 Add sun3/regdump.c 1997-02-14 20:10:50 +00:00
gwr ae0ec6bc84 Moved regdump() and friends to sun3/regdump.c 1997-02-14 20:09:14 +00:00
gwr da6b170800 Add sun3/regdump.c, sun3/sig_machdep.c 1997-02-14 20:01:41 +00:00
gwr f01121ece4 Moved sendsig(), sys_sigreturn() to sun3/sig_machdep.c
Moved regdump() and friends to sun3/regdump.c
1997-02-14 20:00:51 +00:00
gwr 780e636b2d Pull regdump() out of machdep.c and correct a problem where it
would try to print things that are beyond the end of the stack.
1997-02-14 19:55:18 +00:00
is 85aab927f0 Fix obvious typo. 1997-02-14 13:06:28 +00:00
scottr 25c49f276f Revive in simplified form; include GENERIC and enable md_root hooks. 1997-02-14 06:27:20 +00:00
scottr 150538df02 Add memory disk pseudo-device 1997-02-14 06:23:14 +00:00
scottr 0b91c7f0cb Use MAKEBOOTDEV macro to construct bootdev 1997-02-14 06:15:30 +00:00
scottr 662401449a Remove incorrect comment re: bootdev 1997-02-14 06:13:50 +00:00
scottr 967e257614 Implement bus_space_alloc() and bus_space_free(), borrowed from i386. 1997-02-14 06:10:53 +00:00
scottr 6066941306 Add prototypes for bus_space_alloc() and bus_space_free() 1997-02-14 06:02:57 +00:00
gwr 7275a8976f Add pmap_count(), fix some bugs... (from Jeremy). 1997-02-14 03:56:49 +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 fb373dd41e Add sun3/sig_machdep.c 1997-02-13 22:21:22 +00:00
gwr 905e296504 Moved sendsig() and sys_sigreturn() to sig_machdep.c
Rename some trapframe variables for consistency.
1997-02-13 22:16:53 +00:00
gwr 91c7291256 Move sendsig() and sys_sigreturn() from machdep.c to here.
Should probably move to m68k/m68k eventually...
1997-02-13 22:04:03 +00:00
gwr 443faad4e1 Reorganize/simplify the way the memory layout is done.
Update to the latest sys/dev/isa/if_ie.c (new ieget).
1997-02-13 20:48:36 +00:00
gwr 5997a69a3e Tune MXFRAMES and MXFRAMES down a little.
Reorganize the softc for convenience in ddb.
1997-02-13 20:43:18 +00:00
gwr 6a83772a4e Replace caddr_t with u_int in device structs.
Reduce MAXMCAST by a few to be safe.
1997-02-13 20:40:11 +00:00
scottr f6f4cf1d40 Remove redundant info from bus_space_map() diagnostic in ascattach() 1997-02-13 19:55:48 +00:00
scottr 0f53b79607 #include <sys/systm.h> to bring in printf() prototype 1997-02-13 19:42:42 +00:00
scottr 603a2bd8f4 Add hsk and drq locators, which will be used only by SCSI devices. 1997-02-13 19:01:07 +00:00
scottr ed573bfb7c Split the obio interface into two forms: optional address only for most
devices (obio_norm) or optional address, HSK, and DMA for 5380-based SCSI
controllers (obio_scsi5380).  Update all obio-attached drivers
appropriately.

Also, attach fpu to mainbus, rather than obio.
1997-02-13 18:59:06 +00:00
gwr 45ff882a54 Replace sun3/kgdb_stub.c with sun3/kgdb_machdep.c 1997-02-13 18:14:31 +00:00
scottr 570e1f1eb2 Attach the fpu to mainbus, not obio 1997-02-13 17:29:43 +00:00
jeremy 8869e895a8 Convert meaningless '0' into a more human readable 'IOMMU_PDE_DT_INVALID'. 1997-02-13 07:38:21 +00:00
tls 4b1213d27c sync needs to clean VM objects backed by vnode pagers 1997-02-13 02:54:06 +00:00
jonathan a7b2815a55 Import Dennis Ferguson's i386 clock change request from PR 2785:
* Add table-driven assembly-coded microtime().

   * add boot-time computation of the interpolation table,
     allowing the hand-coded microtime() to work with locally-tuned
     nonstandard values of HZ or TIMER_FREQ.

   * delete old C version of microtime().
1997-02-13 00:59:12 +00:00
thorpej a8756f0775 Pass the bus PA (i/o address) to pdq_eisa_init() to avoid doing
arithmetic on bus space handles (which is strictly forbitten.
Pointed out by Matthias Drochner <drochner@zelz28.zel.kfa-juelich.de>
in PR #3216.
1997-02-13 00:08:27 +00:00
thorpej 2953a0ce90 Pass the i/o handle, not bus PA, to bus_space_unmap().
From Matthias Drochner <drochner@zelz28.zel.kfa-juelich.de>,
in PR #3216.
1997-02-12 23:37:38 +00:00
thorpej dfa1224fab Oops, pass the memory handle, not bus PA, to bus_space_unmap().
From Matthias Drochner <drochner@zelz28.zel.kfa-juelich.de>, in
PR #3216.
1997-02-12 23:36:04 +00:00
gwr 69506806ea Add NetBSD cvs id lines. 1997-02-12 23:35:06 +00:00
gwr 27b8c79679 Latest version from Jeremy. Changes too numerous to describe here. 1997-02-12 23:09:32 +00:00
gwr c4fa121f14 Reinstate call to pmap_activate() for now, because it is helpful
for debugging the pmap code.  The in-line version of the same is
still here and will be used if PMAP_DEBUG is not defined.
1997-02-12 23:06:27 +00:00
gwr 3476b1d4a4 Adapt to changes in pmap.h 1997-02-12 23:03:14 +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 48faabf317 Macros for gdb when debugging the kernel (from 4.4-Lite2). 1997-02-12 22:09:45 +00:00
ragge b2d40fd746 Fix bug that caused crash when root device was specified as 'ra0*'. 1997-02-12 19:27:08 +00:00
ragge 9efff168a1 Remove :: 1997-02-12 18:07:53 +00:00
ragge cb344cfe97 ra disks is DV_DISK, not DV_DULL. 1997-02-12 18:02:47 +00:00
ragge 40f0692085 s/tms/mt/ 1997-02-12 18:00:42 +00:00
ragge e7d1921239 Remove bogus prototypes. 1997-02-12 17:58:56 +00:00
ragge e42e582ebb Fix so it works with root over NFS. 1997-02-12 17:57:39 +00:00
ragge c44e241f49 Add a forgotten #ifdef DDB 1997-02-12 17:55:54 +00:00
ragge f5f92a31ca Walk a step closer to more intelligent User PTE handling. 1997-02-12 17:52:59 +00:00
ragge 2bb5ceb3e0 Improve sub-type identification of the CVAX CPU, for later cache handling. 1997-02-12 17:50:36 +00:00
fvdl 744438b408 Don't set sillyrename field to 0 for directories, as it's in a union with
the head of the cookie list. Fixes PR 3215, fix supplied by
Hiroshi Tezuka <tezuka@trc.rwcp.or.jp>. Should also fix M_NFSDIROFF
memory leak.
1997-02-12 17:26:56 +00:00
gwr ccee4cf825 Machine-dependent part of the KGDB remote "stub" 1997-02-12 16:24:02 +00:00
gwr 9c755c6566 Now using <sys/kgdb.h> 1997-02-12 16:16:58 +00:00
gwr 198969f083 Replace kgdb_stub.c with kgdb_machdep.c 1997-02-12 16:14:04 +00:00
gwr 6cb54de668 Avoid dereferencing null curproc in dumpmem(). 1997-02-12 16:06:18 +00:00
gwr bb7dc881a3 Force RB_SINGLE for now (in addition to RB_KDB). 1997-02-12 16:04:33 +00:00
gwr 05a09b938e Must convert from/to BCD when reading/writing the clock chip. 1997-02-12 16:00:31 +00:00
mikel ff4c83accc Don't build ip_mroute.o unless MROUTING is defined; fixes PR kern/2820.
Don't build PPP compression code unless ppp pseudo-device is configured,
  regardless of PPP_COMPRESS and PPP_DEFLATE options.
1997-02-12 08:18:15 +00:00
scottr 7e1c9811f9 Move asc0 here from std.mac68k. Remove COMPAT_SUNOS, as it's dead weight
on this machine.  Add some minimal driver descriptions.
1997-02-12 04:47:05 +00:00
scottr 362d7e5473 Move asc0 here from std.mac68k. Add some minimal driver descriptions. 1997-02-12 04:31:35 +00:00
scottr 8807428ab4 Move asc0 here from std.mac68k, and enable PFIL_HOOKS option so that
the if_ipl LKM can be loaded.  Add some minimal driver descriptions.
1997-02-12 04:29:10 +00:00
scottr cdcbc525e6 Move asc to individual kernel config files 1997-02-12 04:26:05 +00:00
gwr 20c8082e79 Now using <kern/kgdb_stub.c> 1997-02-12 01:32:39 +00:00
gwr 9b3ad7dd7e Now using <sys/kgdb.h> 1997-02-12 01:30:36 +00:00
gwr 292e8e784f The KGDB include is now <sys/kgdb.h>
Add the kgdb_recover trick.
1997-02-12 01:10:21 +00:00
gwr a4b09086fe Actually works now! 1997-02-12 01:07:56 +00:00
gwr cfb896375f Machine-dependent part of the KGDB remote "stub" 1997-02-12 01:03:20 +00:00
gwr 2d1b2f72cd Add m68k/kgdb_m68k.c 1997-02-12 01:01:07 +00:00
gwr 09cc42f318 Add kgdb_reg_t, KGDB_NUMREGS, KGDB_BUFLEN 1997-02-12 00:59:46 +00:00
gwr 64b7559e4f Machine-dependent KGDB sharable on all m68k machines. 1997-02-12 00:58:01 +00:00
gwr f96d73ce59 Add kern/kgdb_stub.c 1997-02-12 00:56:06 +00:00
gwr 06e961d04e Reincarnation of the old hp300/kgdb_stub.c, worked over by
Matthias Pfaller and Gordon Ross
1997-02-12 00:51:47 +00:00
gwr 02ba855714 Protocol definition for KGDB 1997-02-11 23:44:07 +00:00
scottr f5ac9d5deb Add a bus space tag field to obio_attach args, initialize it in
obio_search(), and use it in the ASC driver.  Thanks to Jason for
pointing this out.  Minor KNFing while I'm here.
1997-02-11 22:44:25 +00:00
scottr f9e4592ed5 Add an addr locator to obio. 1997-02-11 21:25:07 +00:00
gwr 6ef591a70b Add a few more coments. (i.e. why init a6=0) 1997-02-11 19:06:08 +00:00
gwr f914f723de Add NBPG 1997-02-11 19:02:30 +00:00
gwr 9c65cce961 Only run dbsym if not KGDB 1997-02-11 19:00:21 +00:00
gwr 9536056d54 Fix some comments 1997-02-11 18:59:23 +00:00
is fa0bef0e54 Allocate and define AF_ARP and PF_ARP. These will be used to
a) communicate the hardware independent part of ARP packets (rfc826) from/to
if_*subr.c in the ongoing effort to rewrite the ARP subsystem for non-Ethernet
networks
b) communicate the hardware independent part of RARP packets (rfc903) from/to
userland sockets to avoid putting link level header format knowledge into
rarpd, when it is enhanced to support non-Ethernet networks.
1997-02-11 17:47:44 +00:00
scottr 78098d98dc Remove dependency on asc driver, using generic console bell callback
instead.  Bell parameters are now entirely self-contained, as they
are managed by ite-specific ioctl()'s.
1997-02-11 07:51:18 +00:00
scottr 77e960bf17 Complete revamp of Apple Sound Chip support. The ASC can now be accessed
as a real device whose registers and buffers are available through mmap(2),
which makes further development of the driver considerably less painful.
1997-02-11 07:47:36 +00:00
scottr 2a2a70d39c Initialize and use extent manager for bus space mapping functions.
Tweak bus_space_{tag,handle}_t types slightly to facilitate this.
1997-02-11 07:37:41 +00:00
scottr 154aa56b01 Add asc character device; kill cdev_grf_init() macro. 1997-02-11 07:35:49 +00:00
mark 83697fa8b9 Added a field sc_ixfer to the sfas_softc structure to allow the standard
sfas ixfer() routine to be overridden with a card specific one.
1997-02-11 03:33:46 +00:00
gwr 7bd7620f61 Sync with sun3. 1997-02-11 00:56:08 +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 f13b3f57fd This is obsolete (and has been for a while) 1997-02-11 00:10:35 +00:00
gwr 2bdded1c83 Move the logic about entering the kernel debugger (whichever one) to
trap.c:trap_kdebug() so it can be C code instead of assembly.
Make sure the initial frame pointer is zero so KGDB will know when to
stop trying to follow frame pointers during backtrace.
1997-02-11 00:05:01 +00:00
gwr 1e0e399b63 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.

Also add the function trap_kdebug() which takes care of calling one of:
kgdb_trap (for KGDB), or kdb_trap, (for DDB) or the Sun PROM monitor.
This logic used to be in locore, but it is better as C code.
1997-02-11 00:01:15 +00:00
gwr 4bcf6b565f 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-10 23:57:34 +00:00
gwr 569d97a2f9 Save/restore the monitor "v" command handler. 1997-02-10 23:44:23 +00:00
gwr b31965da5a Set cputype,mmutype at compile-time. 1997-02-10 23:42:05 +00:00
gwr b7d7f667f3 minor nit in bounds_check_with_label() 1997-02-10 23:40:24 +00:00
gwr c70de0b625 Actually works now. 1997-02-10 23:36:09 +00:00
gwr 2f46cb47e2 update comments 1997-02-10 23:35:27 +00:00
gwr dfddf9c39b Actually works now. 1997-02-10 23:34:38 +00:00
gwr f55c7652b7 Export zs_get_chan_addr() for zs_kgdb.c
Print the "console on ..." in cninit(), and
avoid reference to kbd/kd drivers if NKBD==0
1997-02-10 23:29:52 +00:00
gwr 196f91101a Make some more things static, and cosmetic stuff. 1997-02-10 23:26:21 +00:00
gwr 9f9e8281e0 Add zs_get_chan_addr(), zs_kgdb_init() 1997-02-10 23:24:18 +00:00
scottr 876ad8d706 Console bell callback support prototypes 1997-02-10 22:13:40 +00:00
scottr e0be798a98 Add needs-flag to asc driver 1997-02-10 22:11:27 +00:00
scottr c1370f4435 Add console bell callback support 1997-02-10 22:06:20 +00:00
gwr 7ceee3c729 Add -fno-defer-pop to COPTS (helps ddb backtrace).
Add AFLAGS=-m68020 and use it with ${AS} commands.
Depend kgdb_stub.o on Makefile (KGDBDEV, KGDBRATE).
1997-02-10 19:23:41 +00:00
gwr a5b114c665 Forgot to initialize cn->cn_dev, cn->cn_pri 1997-02-10 19:11:12 +00:00
fvdl c745cba077 If the target for a rename() call exists, it will be removed. So, don't
leave any pages around (i,e, insert a vnode_pager_uncache()).
1997-02-10 12:41:19 +00:00
fvdl c76913c26f Move vnode_pager_uncache to a better spot in nfsrv_remove. Also use it
in nfsrv_rename, if the 2nd argument is an existing file and will thus
be removed.
1997-02-10 12:20:49 +00:00
matthias 258699485f add missing parentheses to assym.h rule. 1997-02-10 10:54:00 +00:00
mark faec60a06c Add a define for the cpu_functions structure member cf_sleep. 1997-02-10 04:01:08 +00:00
mark 700a2e2041 Remove the code force the processor into a sleep mode during idle() and
instead call the sleep function defined in the cpufunctions structure.
1997-02-10 03:57:42 +00:00
mark 187f8c7c3d Remove local definitions of macros to push and pull trapframes and instead
include machine/frame.h to get these definitions.
1997-02-10 03:50:53 +00:00
mark 60cab4af5d Centralise the definition of the ASM macros used to push and pull and
trapframe and irqframe structures defined here top and from the stack.
1997-02-10 03:26:28 +00:00
mark 28203348d8 Process the parameters passed in the SYNC_ICACHE sysarch() call and just
sync the caches for the specified virtual address range.
1997-02-10 03:19:36 +00:00
mark 5f3ba778ab Define parameters for the arm32_sync_icache() function. 1997-02-10 03:14:22 +00:00
fvdl be787cc073 * Fix some bugs in NQNFS (malformed RPC requests, no directory lease eviction)
* Avoid possible NULL ptr ref in nfs_reply
* Don't ever try to sillyrename directories (from FreeBSD)
1997-02-09 21:19:04 +00:00
christos 041fb607e0 Add a break; in the irq/drq allocation loop so we take the first one instead
of the last one.
1997-02-09 18:36:44 +00:00
christos 12a7c99376 Fix an irq -> drq typo 1997-02-09 18:36:11 +00:00
matthias 9712aaf1b5 * clean:: -> clean: change. 1997-02-08 09:34:46 +00:00
matthias f3cdc89574 * Use Phil Budne's full name in the copyright header.
* Define RECOVER to something faster.
* Check for a valid softc in scnsoft. When there is
  a "hole" (e.g. you have scn0,scn1, scn4, scn5) the
  old code would panic. Thank's to Phil Budne for
  finding and fixing this bug.
1997-02-08 09:34:31 +00:00
matthias f3ae5cdf29 * Convert NetBSD/pc532 to use the new libkvm. 1997-02-08 09:34:12 +00:00
matthias 8a3b8c0477 * Fix a bug that would had cause an hang on fpuless machines. 1997-02-08 09:34:09 +00:00
matthias 8ec2fa0cfa * Convert NetBSD/pc532 to use the new libkvm by stealing code
from the alpha port.
1997-02-08 09:34:06 +00:00
matthias 5a17e54866 * Convert NetBSD/pc532 to use the new libkvm. 1997-02-08 09:34:01 +00:00
matthias 92842a6db7 * Remove some unused macros. 1997-02-08 09:33:58 +00:00
matthias efea7eb83f * Correctly format the NetBSD-Id string. 1997-02-08 09:33:55 +00:00
matthias 6f5bca455b * Remove whitespaces from empty lines.
* Add (commented out) type and asmtype commands. asmtype will
  be used to define the gcc constraint used to emit constants
  and type will be used to define the type the constant should
  get casted to before passing it to printf.
1997-02-08 09:33:52 +00:00
matthias 869f7f78fb * Now that we use genassym.sh/genassym.cf this is no longer needed. 1997-02-08 09:33:50 +00:00
matthias 0e2fbfdbcd * The rom monitor and the bootprogram might have another idea about unit
numbers then the kernel. Use some code stolen from the mvme68k port
  to find the bootdevice.
1997-02-08 09:33:45 +00:00
matthias ed7d482ddf * Don't wildcard scn[0-7]. This will not work for holes (at the moment). 1997-02-08 09:33:28 +00:00
matthias d90eb8ee1e * Corrected rule for assym.h. In case genassym.sh fails assym.h
has to be removed and a non-zero exit value has to be provided
  to make.
* Removed last references to genassym and genassym.o.
1997-02-08 09:33:27 +00:00
matthias 3eded68a05 * Added PFIL_HOOKS to make modloading of the ipf module possible.
* Aded UNION fs. The lkm doesn't work at the moment.
1997-02-08 09:33:24 +00:00
matthias 6224783740 * Added KMEMSTATS option to save some memory. 1997-02-08 09:33:22 +00:00
matthias 021ca50fe4 * Added INSECURE to allow modloads in multiuser mode.
* Added PFIL_HOOKS to make modloading of the ipf module possible.
1997-02-08 09:33:20 +00:00
matthias 64065fbba2 * Removed old and invalid comment.
* Added LKM, PFIL_HOOKS and NFSSERVER options.
* Added four ccd devices.
* Removed PLIP and NO_INLINE_SPLX options.
* Removed MFS, MSDOSFS, CD9660, FDESK, KERNFS and PROCFS filesystems
  because they all are lkmable.
1997-02-08 09:33:17 +00:00
matthias 67c8bca33d * Convert NetBSD/pc532 to use the new libkvm. 1997-02-08 09:33:03 +00:00
matthias 8f1067c4d8 * Remove some unused macros. 1997-02-08 09:32:33 +00:00
matthias 1f7aefb0a1 * Declare bootdev and booted_device. 1997-02-08 09:32:30 +00:00
mrg f5c45aaa78 allow queue.h macro's to act as functions. 1997-02-08 04:47:41 +00:00
cgd 9277910d32 kill wdc/wd, which accidentally crept in in the last commit 1997-02-08 01:06:58 +00:00
gwr 60d4782469 Get rid of HOSTED_CC. 1997-02-07 22:55:44 +00:00
mycroft 1dd1504980 Move the aha ISA probe functions into a separate file. 1997-02-07 17:37:27 +00:00
mikel c96410d0c1 move inclusion of <sys/cdefs.h> up to catch all uses of __P();
PR kern/2712.
1997-02-07 07:29:38 +00:00
mikel 24378379b8 eliminate obsolete t_min and t_time shortcuts; from Bill Studenmund in
PR kern/2440.
1997-02-07 06:35:44 +00:00
mikel 6131acb9c8 fix typos; from Erik Bertelsen in PR port-i386/2272. 1997-02-07 06:12:46 +00:00
mikel e707982f35 check options argument to wait{3,4,pid}(); from Klaus Klein in PR 3182. 1997-02-07 05:33:07 +00:00
pk 5851e327c5 Inline functions and place variable assigment after the program.
This enables other versions of AWK (eg. `nawk') to grok the script.
1997-02-06 22:16:12 +00:00
gwr ea3925f508 FIXUP_PC_AFTER_BREAK now takes an arg of type db_regs_t * 1997-02-06 21:16:28 +00:00
is 721627ba4a The last few libsa/open.c changes gradually increased code size, until fdboot
became too big. Disable its building, til we can squeeze a couple of bytes
out of the code again.
XXX Yes, this is a disgusting hack.
1997-02-05 22:32:44 +00:00
cgd 711939bcf4 add a bunch of commented-out, unconfirmed entries, based on data from
a "Smart Frame Buffer TURBOchannel Module" user's manual(?), and from
some "DECstation 5000 Model 240 Options and Upgrades" guides found
while cleaning out my office.
1997-02-05 22:14:18 +00:00
thorpej 82adcde8ca Fix edit-o that caused panic's when root was on HP-IB disk. 1997-02-05 20:56:29 +00:00
mhitch f470b2c5b5 Fix makebootdev() bug when boot device isn't in pmax_nam2blk. When booting
from the network, makebootdev() would attempt to use a NULL pointer and
silently hang.
1997-02-05 17:53:52 +00:00
gwr ca11ffdfae Kill a type-cast. 1997-02-05 17:44:59 +00:00
gwr b4f4d97d22 s/romp/romVectorPtr/ 1997-02-05 17:39:21 +00:00
gwr 84fad0db28 include <machine/pte.h> 1997-02-05 17:33:46 +00:00
gwr 699e513ced Add -Dsun3 1997-02-05 17:31:46 +00:00
oki d3fdda40ff Use bitmask_snprintf (from i386) 1997-02-05 16:35:47 +00:00
gwr 8b6cbcf45c sync with the sun3x version 1997-02-05 14:51:23 +00:00
gwr 2ae3afc4d0 Simplify the cpp conditional sections near the end.
Get rid of "romp" (too prone to name conflicts).
1997-02-05 14:36:46 +00:00
gwr 05c4b6759d Apply that fix from Bill Studenmund that keeps us from ignoring DCD.
Also fix the copyright (s/REGENTS/FOUNDATION/).
1997-02-05 14:06:58 +00:00
mrg 491e8af174 minor KNF from jason. 1997-02-05 08:26:25 +00:00
mrg eadd7792d9 add thread_sleep_msg() that takes a wait message, and change thread_sleep()
into a macro for backwards compat.  alter vm_object_sleep() to take advantage
of this.
1997-02-05 08:09:45 +00:00
mrg 85328f7b35 KNF. 1997-02-05 07:48:42 +00:00
scottr 6d39698236 db_expr_t is now a long. 1997-02-05 05:10:24 +00:00
pk ddb0d6fa06 Add `-mno-fpu' to compiler flags; pulled up from 1.2 version. 1997-02-05 00:12:46 +00:00
pk 095b310e77 db_expr_t is now a long. 1997-02-05 00:01:50 +00:00
thorpej 39d0deba46 - Don't include option headers if _LKM is defined.
- If _LKM is defined, always use the function versions of malloc()/free().
1997-02-04 22:23:53 +00:00
pk 79da30bb31 typo. 1997-02-04 21:59:26 +00:00
fvdl 64fcae7bcb * Make sure a new socket is created when switching to/from NOCONN with
a mount
* Add extra printf statements to hopefully get some more info on lockups,
  specifically when a send error is ignored.
1997-02-04 21:33:19 +00:00
fvdl 0a4a706e84 Cast initialization of 2nd field in db_variable struct to (long *). Should
probably be register_t *
1997-02-04 19:52:55 +00:00
thorpej f79798f810 Bump version: Add support for booting gzip'd kernels 1997-02-04 19:42:29 +00:00
thorpej 76839db714 Add the ".gz" names of the kernels to the kernel names list. New
boot order is:

	netbsd -> netbsd.gz -> netbsd.bak -> netbsd.bak.gz ->
	  netbsd.old -> netbsd.old.gz -> onetbsd -> onetbsd.gz
1997-02-04 19:40:07 +00:00
thorpej 6a721b41eb Bump version: Add support for reading gzip'd miniroot images 1997-02-04 19:36:29 +00:00
thorpej 8ceaa2c3f5 - If copying the miniroot from an NFS server, don't attempt to
compute the number of iterations through the copy loop based
  on file size; the miniroot image may be compressed.  Instead,
  ignore short reads in the NFS case, and handle them like EOF.
- Fix typo in a printf format.
1997-02-04 19:34:09 +00:00
thorpej e876a86309 Add support for transparent handling of decompressing read, useful
for gzip'd kernels and miniroot images.
1997-02-04 19:28:50 +00:00
thorpej 5a9b27d5cf Set the heap limit to the last byte of the 3rd page from the
end of RAM, i.e.:

	[ heap limit page][msgbuf page][ROM scratch page]
                        |                              |
		    heap limit                     end of RAM
1997-02-04 19:14:57 +00:00
ragge a1d8a4570c Support for DL11 (-compatible) async ctlr.
Written by Ben Harris (bjh@mail.dotcom.fr).
1997-02-04 19:13:15 +00:00
thorpej 9a6b12944d In close(), if the file descriptor was used for writing, don't free
data structures that weren't allocated.  Fix sanity-checked
by Matthias Drochner.
1997-02-04 18:38:20 +00:00
thorpej 63930d7db4 Add some debugging code to free(), to catch frees before the
start of the heap and beyond the end of the heap (if a heap limit
is defined).
1997-02-04 18:36:33 +00:00
gwr 599d8811dc Adapt to changed definition of struct db_variable. 1997-02-04 18:15:18 +00:00
gwr c0b220738c change :: to : 1997-02-04 17:15:38 +00:00
oki aabb7063c9 Added copyright notice 1997-02-04 11:45:03 +00:00
oki 53aceb9c4b hit any key to reboot when halted (like hp300) 1997-02-04 11:43:30 +00:00
oki 0e9085546c Added ipfilter device 1997-02-04 10:35:39 +00:00
thorpej 1e250357ac Thou shalt not taunt the HP BOOTROM with silliness such as incorrect
link order.
1997-02-04 08:39:26 +00:00
mark 51495d4bf1 Updated to work with the recent changes to the MI DDB code. 1997-02-04 07:15:46 +00:00
mark 6ec73b6227 Removed all the CPU_SA110 conditional compilation. All the cache
cleaning calls will now be indirected throught the cpu_functions
that will have the correct function pointers for the CPU in use.
All register fixup code following aborts has been removed and
instead a call to the cpu_*abt_fixup() routine is called instead
to provide the correct fixed based on the CPU type and abort mode.
1997-02-04 07:12:30 +00:00
mark 06f80904ec Set the sc_ixfer function pointer to the default sfas_ixfer() function
during initialisation if the pointer is NULL.
Use the sc_ixfer function pointer in the sfas softc when doing
immediate polled transfers.
1997-02-04 06:57:47 +00:00
mark 1715a217cf Removed the SA110 condition compilation and instead test the cputype
variable to determine what adjustment is required for the trace back PC.
1997-02-04 06:53:41 +00:00
mark 403608bdbb Add defines for the cpu_functions structure members cf_cache_purgeID and
cf_context_switch.
1997-02-04 06:51:34 +00:00
mark e626201c12 Adopt as standard, the instruction sequence for storing the trapframe that
includes the workaround from the SA110 STM^ bug. This allows one piece of
code to be used to store the trapframe on all CPU types.
1997-02-04 06:49:08 +00:00
mark f6570e9a78 Update for recent changes. Added options to support ARM6, ARM7 and SA110
CPUs in a single kernel.
1997-02-04 06:37:06 +00:00
mark c2a184bc45 Fix SA110 CPU ID. 1997-02-04 06:30:57 +00:00
mark 64c714c82c This configuration file is dead now that all ARM6/7 & SA110 CPUs are
supported in the one kernel.
1997-02-04 06:29:57 +00:00
mark 2f04af3ab0 This file is no longer needed as the functionally it provided is now
provided within cpufunc_asm.S
1997-02-04 06:24:27 +00:00
mark c2a2cba5dd Add Makefile as a dependancy cpufunc.o and cpufunc_asm.o 1997-02-04 06:19:08 +00:00
mark 663277e00c Simplify cpu option checks now that multiple CPU types are supported in a
single kernel.
1997-02-04 06:10:48 +00:00
mark f53ea9b979 Only include md_hooks.c if md AND memory_disk_hooks are defined.
Updated for changes in the cpu specific functions (addition of
cpufunc.c and cpufunc_asm.S and removal of coproc15.S).
1997-02-04 05:58:55 +00:00
mark ee02ce0401 Major overhaul of handling of CPU/MMU/TLB specific functions. This allows
different ARM CPUS with different cache architectures for example to be
supported in a single kernel.
        - All CPU/MMU/TLB specific functions are now held as function
          pointers in a cpu_functions structure defined in machine/cpufunc.h
	  All coproc 15 accesses, TLB flushing, cache cleaning/flushing
          and abort correction functions are now defined in this structure.
        - cpufuncs is a global structure that is setup during initarm()
          that holds all the function pointers for the booted CPU.
	- A global variable 'cputype' now defines the probed cputype.
        - All the existing functions for manipulating CPU specific features
          have been replaced with macros defined in machine/cpufunc.h
          that will call the appropriate function in the cpu_functions
          structure.
	- CPU functions are provided for selected CPU types (config options)
          and the appropriate cpu_functions structure is chosen during
          booting, based on the probed CPU type.
	- All the required functions for existing CPU types (ARM6, ARM7 and
          SA110) have been implemented.
1997-02-04 05:50:19 +00:00
mark fd6725ae88 Remove all the old do_mountroot() junk that was built into GENERIC kernels.
This code has been replaced with the more flexible MI setroot() code.
1997-02-04 05:47:56 +00:00
thorpej 9fc5d41bb3 Garbage-collect an ... insane use of "GENERIC" (used to generate a
different "default in-core disklabel" with a larger b partition in
the event no disklabel was present on the disk).
1997-02-04 05:24:55 +00:00
perry 19d153fc48 Nuke some options GENERIC residue. 1997-02-04 04:57:10 +00:00
thorpej 1cec4494cb Don't default to RB_ASKNAME _ever_. (Besides, GENERIC is long gone.) 1997-02-04 04:46:42 +00:00
perry 0b3a46d6b3 Nuke some GENERIC residue. 1997-02-04 04:31:55 +00:00
thorpej 0130161343 Bump version: Reorganization of boot block code 1997-02-04 03:59:40 +00:00
thorpej 8226741fc2 Replay history: Added support for HP-IB cartridge tapes 1997-02-04 03:58:52 +00:00
thorpej 25f97c348f Reply history: Merged network and disk boot programs 1997-02-04 03:57:51 +00:00
thorpej f52a7cea62 Replay history: Added support for network booting 1997-02-04 03:57:08 +00:00
thorpej b327731a21 Bump version: Reorganization of boot block code 1997-02-04 03:55:56 +00:00
thorpej 6c19137655 Replay history: Added support for HP-IB cartridge tapes 1997-02-04 03:54:56 +00:00
thorpej a0864b3e07 Complete and total reorganization of the hp300 boot code, modeled
closely after the build process used by NetBSD/alpha's boot code.
1997-02-04 03:51:37 +00:00
mark 7ef8e3bcd9 Fix declaration of the interrupt handler to match new prototype for IRQ
function pointers.
1997-02-04 02:23:35 +00:00
mark aab5efa574 Updated to use the new bus space interface code. Use a number of bus
space handles to describe the task file registers, aux register, 16 bit
data register and 32 bit data register.
The wdc softc structure has been moved to a separate file.
Added support for multiple attachments by separating the core of the
probe and attach functions from the mainbus probe and attach routines.
Added a new wdc flags 32_BIT so that the wd can determine 32 bit xfer
support from the wdc device.
1997-02-04 02:04:51 +00:00
cgd a9295bf811 make variable pointers (in variable declaration structs) be 'long *', so
that the common case can be handled with no hassles on all machines.
fix up the various internal variables which are also exported via sysctl
(and which therefore must be 'int's) to do the right thing via a special
read/write function.
1997-02-04 00:33:32 +00:00
cgd bd0be84b0a fix printf format widths 1997-02-04 00:32:09 +00:00
mycroft df3b4bae5c db_expr_t became a long. 1997-02-04 00:02:34 +00:00
mycroft 12da023cd4 db_expr_t became a long. 1997-02-03 23:36:09 +00:00
oki e42b78c179 Remove #ifdef GENERIC ... #endif 1997-02-03 22:20:32 +00:00
oki f2ef4f87ec Removed options GENERIC 1997-02-03 22:19:36 +00:00
oki 78c033ae63 Remove swapgeneric.c from target lint 1997-02-03 22:18:38 +00:00
oki 5bd33fc853 Oops, correct value in previous commit 1997-02-03 21:51:15 +00:00
oki 98f832a1b3 Remove #include <string.h> 1997-02-03 21:41:59 +00:00
oki 6bb753af5b - tv_kfont[] size fix.
- silly speed hack.
1997-02-03 21:40:45 +00:00
gwr d372229de2 This little awk program translates the initialized data table found
in the assembly file genassym.s into the usual assym.h file.  The
assym.h file generated this way is identical to the output generated
if I simply compile and run the genassym.s file.  "Heh, Kewl!"
Thanks to Matthias Pfaller for the "translate the .s file" idea!
1997-02-03 21:31:17 +00:00
oki ddfc714cbe Remove initialize mrh_list line, and fixed 1997-02-03 21:08:48 +00:00
oki e79ab67da5 - RCSid police
- Correct header comment
- Sync with ALL
1997-02-03 20:20:45 +00:00
cgd ae8e8e7f6b print warnings about unrecognized boot flags. accept S/s as recognized,
even though they're redundant.
1997-02-03 20:02:02 +00:00
cgd a34fffe676 part of the SOFTWARE_SSTEP code was mips-specific. #ifdef it appropriately.
fix various 64-bitness bugs.
fix various -Wall bugs.
1997-02-03 19:57:41 +00:00
cgd 3e34fdf8ac fix various 64-bitness bugs.
fix various db_printf format bugs (long vs. int, etc.).
1997-02-03 19:57:03 +00:00
cgd 4e829562bb needs systm.h for prototypes 1997-02-03 19:56:24 +00:00
cgd 65a65d45b2 fix various 64-bitness bugs. 1997-02-03 19:56:03 +00:00
cgd e09497929c clean up a bit, add kernel setjmp and longjmp definitions. 1997-02-03 19:50:23 +00:00
cgd b9910b1c1f clean up a bit, add bad144-handling code 1997-02-03 19:48:04 +00:00
cgd ca0809980e add fd and wd to alpha_nam2blk 1997-02-03 19:46:55 +00:00
cgd 778552d37c add bad sector information to cpu disklabel 1997-02-03 19:46:07 +00:00
gwr 165a7a3eeb Put all the name/value pairs in an initialized array of structures
so that this can be compiled to assembly code and then translated
directly into assym.h by a simple awk program (genassym.awk).
This program can still be run the old way for verification.
1997-02-03 19:31:44 +00:00
scottr d8deae5099 Convert to bus.h; this removes the need for the ASCBase global. 1997-02-03 17:36:00 +00:00
scottr f042e543c9 Implement basic bus space access macros/functions.
Note:  we currently do not use the extent manager.
1997-02-03 17:32:54 +00:00
oki b2f7c338bf Correct prototype 1997-02-03 17:01:57 +00:00
oki 9f4a52fe65 Added missing semicolon 1997-02-03 16:55:00 +00:00
thorpej 4d7a6cf6dd Update clean and depend rule for kernel make changes. 1997-02-03 07:23:32 +00:00
mark 649a90497e No need to check for CPU_ARM7500 being defined as this option implies
CPU_ARM7 which has to be checked anyway.
1997-02-03 03:12:09 +00:00
scottr df2df037ca copypage() is now declared in m68k/cpu.h 1997-02-02 21:33:30 +00:00
thorpej 7b30910b48 KMEMSTATS is a header option; pull in "opt_kmemstats.h". 1997-02-02 21:22:16 +00:00
thorpej 796764eb23 KMEMSTATS is a header option; pull in "opt_kmemstats.h" iff _KERNEL. 1997-02-02 21:20:58 +00:00
thorpej 72096190e8 Make KMEMSTATS a "header option". 1997-02-02 21:16:25 +00:00
mhitch 93ce3347e7 Where did that 0 come from? Fix typo in cpu type definitions. 1997-02-02 18:37:16 +00:00
scottr ea6b85a8db copypage() is now declared in m68k/cpu.h 1997-02-02 18:19:55 +00:00
thorpej 876ea64acb Add "options LKM", suggested by Klaus Klein <kleink@layla.inka.de>. 1997-02-02 17:29:42 +00:00
thorpej 2a0c6f4a0a Use splkbd(). 1997-02-02 09:40:31 +00:00
thorpej 47e3ffe813 Definition of splhil() is in param.h now. 1997-02-02 09:39:21 +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 e17b9d9d39 Garbage-collect extra copy of mappedcopy. 1997-02-02 08:56:04 +00:00