Commit Graph

1794 Commits

Author SHA1 Message Date
thorpej
c5e91d447d Use CFATTACH_DECL(). 2002-10-02 04:55:47 +00:00
wiz
b1c7ac0e6d "definitions" has lots of 'i's, but that's not reason to leave one out. 2002-09-29 23:23:56 +00:00
thorpej
f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
thorpej
9a711d6985 Declare all cfattach structures const. 2002-09-27 20:29:02 +00:00
provos
0f09ed48a5 remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +00:00
thorpej
6c88de3b53 Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller.  Use it
rather than invoking cfattach->ca_match directly.
2002-09-27 03:17:40 +00:00
thorpej
233188a90d Set extio_ex_malloc_safe at the end of cpu_startup(). 2002-09-25 20:05:26 +00:00
thorpej
da13a0afc7 Replace resource map usage with extent maps. 2002-09-25 19:30:22 +00:00
martti
81e8d78cd4 Add one space between "#option" and "<tab>IPFILTER_DEFAULT_BLOCK" 2002-09-25 11:49:48 +00:00
simonb
63096043b3 Use "#define\t" instead of "#define ". 2002-09-22 08:30:56 +00:00
chs
c081614ea2 it really helps to get the stub right before cutting + pasting it 27 times.
alas, I did not.  doh.
2002-09-22 07:53:39 +00:00
chs
55e1f79335 add pmap_remove_all() hook (empty on most platforms so far). 2002-09-22 07:17:08 +00:00
gmcgarry
5a06fee353 Add UVM_PAGE_IDLE_ZERO. 2002-09-22 05:48:46 +00:00
martti
3b553bac54 Added (commented out) IPFILTER_DEFAULT_BLOCK. 2002-09-20 10:39:48 +00:00
ragge
b3abfee038 Do not include <sys/clist.h>, it's not used in NetBSD at all. 2002-09-19 10:37:59 +00:00
lukem
3ea2e21f82 enable USERCONF by default; it's small and extremely useful to have available. 2002-09-18 02:43:53 +00:00
gmcgarry
857f23b69e Garbage-collect unused sdreset(). Remove commented-out prototypes. 2002-09-10 04:19:57 +00:00
gehenna
77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
gmcgarry
d6109af7cb RAS support for m68k. 2002-08-28 08:56:59 +00:00
lukem
fb7bc8541e arch/*/stand stuff should be LDSTATIC=-static and not LDSTATIC?=-static.
It doesn't make sense to have standalone stuff dynamically linked just
because an end-user uses LDSTATIC="".
2002-08-27 08:53:14 +00:00
thorpej
139cdc3125 Make nbuf, nswbuf, and bufpages unsigned. Make all operations on these
variables unsigned, and update places where their values are printed.
2002-08-25 20:21:33 +00:00
briggs
0b956d0b8b Implement pmc(9) -- An interface to hardware performance monitoring
counters.  These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.

pmc(9) is meant to be a general interface.  Initially, the Intel XScale
counters are the only ones supported.
2002-08-07 05:14:47 +00:00
gmcgarry
e0590ef08b Boot loader is now case sensitive. Fixes PR-17711. 2002-08-04 00:44:58 +00:00
itojun
8dd04cdcd7 correct range check, have overflow check, fix type mismatches,
for cmap args and some other calls.  from openbsd
2002-08-03 00:12:48 +00:00
hannken
c32ed76dba Convert to new device buffer queue interface.
Approved by: Jason R. Thorpe <thorpej@netbsd.org>
2002-07-26 13:19:52 +00:00
thorpej
3912e469dd Rename cdev_systrace_init() to cdev_clonemisc_init(), so it can
be properly used by any misc. cloning device.  While here, correct
a comment to indicate that "open" is the only entry point and that
everything else is handled with fileops.
2002-07-19 16:38:14 +00:00
scw
bef00d4895 m68k syscall rototill:
- Switch all m68k-based ports over to __HAVE_SYSCALL_INTERN.
 - Add systrace glue.
 - Define struct mdproc in <m68k/proc.h> instead of <machine/proc.h>.
   (They were all defined exactly the same anyway, other than a couple
   of the MDP_* flags.)
2002-07-13 08:28:40 +00:00
gmcgarry
de0c9630a1 Fix console bell. 2002-07-06 23:15:29 +00:00
gmcgarry
44e6549da3 Invert test of EPASSTHROUGH. Problem reported by
Bernd Sieker <bsieker@freenet.de>.
2002-07-05 23:43:28 +00:00
abs
eb73becae2 Ensure all INSTALL config files consistantly include PIPE_SOCKETPAIR,
MALLOC_NOINLINE, and VNODE_OP_NOINLINE. The exceptions are when they
include another config files that already defines the options, or if
they are for an embedded board, just define a few extra options, and
do not already define PIPE_SOCKETPAIR.
2002-07-05 13:40:10 +00:00
thorpej
011d4d5f44 Add kernel support for having userland provide the signal trampoline:
* struct sigacts gets a new sigact_sigdesc structure, which has the
  sigaction and the trampoline/version.  Version 0 means "legacy kernel
  provided trampoline".  Other versions are coordinated with machine-
  dependent code in libc.
* sigaction1() grows two more arguments -- the trampoline pointer and
  the trampoline version.
* A new __sigaction_sigtramp() system call is provided to register a
  trampoline along with a signal handler.
* The handler is no longer passed to sensig() functions.  Instead,
  sendsig() looks up the handler by peeking in the sigacts for the
  process getting the signal (since it has to look in there for the
  trampoline anyway).
* Native sendsig() functions now select the appropriate trampoline and
  its arguments based on the trampoline version in the sigacts.

Changes to libc to use the new facility will be checked in later.  Kernel
version not bumped; we will ride the 1.6C bump made recently.
2002-07-04 23:32:02 +00:00
gmcgarry
f7458b82ef Back out part of revision 1.20 which was causing PROM re-entry
to fail.  Reported by Jarle Greipsland <jarle@uninett.no>.
2002-06-27 08:45:25 +00:00
christos
3b50728cf4 MD systrace gluons. 2002-06-17 16:32:57 +00:00
lukem
fde6ae6f04 Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
2002-06-17 05:14:02 +00:00
thorpej
d941ddfee0 Don't use -traditional-cpp if HAVE_GCC3. 2002-06-04 21:39:09 +00:00
thorpej
cc938a1daf Account for changes to struct partition. 2002-05-30 19:03:50 +00:00
thorpej
c26e1749fc Add -ffreestanding to CFLAGS. 2002-05-30 18:35:08 +00:00
thorpej
1768ff83e0 Don't use multi-line string literals. 2002-05-30 18:32:18 +00:00
thorpej
1964f8446c Make this work with an ISO C preprocessor. 2002-05-30 18:30:17 +00:00
gmcgarry
da51df2271 Clarify comment: cpu_startup() doesn't do autoconfiguration. 2002-05-23 03:05:30 +00:00
drochner
60b6f587bc Subtract vm_map_min(kernel_map) from kernel virtual addresses to get offsets
into kernel_object where this was missing.
This is a no-op on ports where VM_MIN_KERNEL_ADDRESS==0, ie all but
cesfic.
Confirmed and corrected by Chuck Silvers.
2002-05-22 14:29:23 +00:00
jdolecek
51260b556e use 'jmp label:l' to force adressing to be absolute, rather than pc-relative 2002-05-19 21:40:04 +00:00
matt
0dc8ee943d Eliminate more commons or redundant declarations. 2002-05-14 02:58:32 +00:00
jdolecek
77a65b5e56 use _KERNEL_OPT rather than _KERNEL && !_LKM 2002-05-11 09:39:25 +00:00
gmcgarry
d9248c05c1 FPSP required. Noted by Michael Wolfson. 2002-05-07 06:17:10 +00:00
gmcgarry
918cdbbb79 Make more featureful. 2002-05-07 06:07:30 +00:00
gmcgarry
5a1f9fc69c 400-series machines only have DIO framebuffers. From discussion
with Michael Lorenz and Bernd Sieker.
2002-05-05 22:55:49 +00:00
atatat
d1b3852365 Add the INCLUDE_CONFIG_FILE option to all config files. In config
files that are generic (ie, GENERIC, GENERICSBC, GENERIC32, ALL, or
ALPHA), it is uncommented.
2002-04-25 15:06:20 +00:00
gmcgarry
e99aada22c Bump ramdisk size. 2002-04-22 06:10:16 +00:00
gmcgarry
36adeea7c2 Don't frob MCR_IEN bit if on a 425e. Problem initially reported
by Christoph Badura:

It looks to me like the 425e uses reverse polarity of the MCR_IEN bit with
respect to the other 4xx models.  That could be because it doesn't have
an inverter wired behind the IEN(OUT2) output of the UART.

Fix is inspired by change in OpenBSD.  Serial console input is
confirmed working on 425e by Thilo Manske.
2002-04-17 23:31:24 +00:00
gmcgarry
b3dae2b4b6 Regen: "digital audio" 2002-04-17 20:51:11 +00:00
gmcgarry
c4ab5a6201 typo in previous 2002-04-17 20:50:45 +00:00
gmcgarry
5123c61682 device id 0x13 is "digital audio" as reported by Thilo Manske. 2002-04-17 20:49:06 +00:00
gmcgarry
e25ab469b9 Attach apci console as an intio device, not a dio device.
Fixes console attach on 425e noted by Thilo Manske.
2002-04-17 20:40:30 +00:00
gmcgarry
6e066ba77a Add commented-out USERCONF option. Mainly useful for install media
and can be optionally enabled based on miniroot and ramdisk size
requirements.
2002-04-12 08:10:45 +00:00
gmcgarry
dea19257e2 Create default disklabel correctly. 2002-04-08 21:41:44 +00:00
gmcgarry
61d1eb003e actually, we didn't want to print pa, not kva 2002-04-05 05:31:42 +00:00
gmcgarry
2ec9c06efb cosmetic formatting 2002-04-02 05:46:36 +00:00
lukem
d213d804f7 Rename MEMORY_DISK_SIZE (formerly MINIROOTSIZE) to MEMORY_DISK_ROOT_SIZE,
which was suggested by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> as
being more consistent with what it's controlling...
2002-04-02 05:30:34 +00:00
christos
7e277b5782 kill remaining PS_STRINGS instances. 2002-03-20 17:59:22 +00:00
atatat
31144d9976 Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
gmcgarry
0d5d235755 Don't match on trailing spaces in the module name. 2002-03-17 05:44:48 +00:00
gmcgarry
2edbfbd9c2 Include MFS in the INSTALL kernel for the miniroot install. 2002-03-17 05:43:17 +00:00
gmcgarry
c8e4daf662 Move exec_hp300() out of uboot.c into its own file so that it can
be used by SYS_INST.  SYS_INST can now boot ELF kernels inside the
miniroot.
2002-03-16 06:20:07 +00:00
gmcgarry
97ef6567ad Add RCSIDs. 2002-03-15 05:55:35 +00:00
gmcgarry
d4c41b0f8b malloc cleanups:
- malloc+memset -> malloc with M_ZERO
- malloc -> MALLOC for fixed-sized structures
Add RCSIDs while here
2002-03-15 05:52:53 +00:00
gmcgarry
1cb254edf6 Introduce iteinstallkeymap() which allows the keyboard driver to
register its keymap with ite.  Add RCSIDs while here.
2002-03-15 05:45:23 +00:00
gmcgarry
0cc97c18ac Don't display ipl if the device isn't actually attaching.
Add RCSID while here.
2002-03-15 05:40:01 +00:00
gmcgarry
ddfcbf2bfc Increase the delay when resetting the port so that the output doesn't
get scrambled when we're the console.  Add RCSID while here.
2002-03-15 05:36:38 +00:00
lukem
cd19d52695 * rename MINIROOTSIZE to MEMORY_DISK_SIZE, so that all md(4) options
are now consistently named
* fold opt_mdsize.h into opt_md.h
2002-03-10 19:56:37 +00:00
thorpej
a180cee23b Pool deals fairly well with physical memory shortage, but it doesn't
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map).  Try to deal with this:

* Group all information about the backend allocator for a pool in a
  separate structure.  The pool references this structure, rather than
  the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
  to become available, but will still fail if it cannot callocate KVA
  space for the pages.  If this happens, carefully drain all pools using
  the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
  some pages, and use that information to make draining easier and more
  efficient.
* Get rid of PR_URGENT.  There was only one use of it, and it could be
  dealt with by the caller.

From art@openbsd.org.
2002-03-08 20:48:27 +00:00
tsutsui
3c8b0446fe Change type of dumpmag to u_int32_t since it is actually
a 32bit unsigned magic number.
As per discussion on tech-kern, and fixes port-sparc64/11949.
2002-03-06 13:10:18 +00:00
simonb
9bcc70fa1d Don't cast argument to ffs() to long.
Per discussion on port-alpha, noticed by Robert Elz.
2002-03-05 09:40:38 +00:00
simonb
d224e9dcc0 Indent by tab and not two spaces. 2002-03-05 00:38:41 +00:00
simonb
de2043f47e Sort function declarations.
Fix some KNF whitespace nits.
2002-03-05 00:34:14 +00:00
simonb
6f0fb25121 Don't need to declare phys_map - it is declared in <uvm/uvm_extern.h>. 2002-03-04 02:43:22 +00:00
simonb
9a942a34e0 Don't use local extern declarations for the mountroot variable or
declare local prototypes for nfs_mountroot() or md_root_setconf().
2002-03-04 02:25:21 +00:00
simonb
4324f37586 Use "#define<tab>". 2002-02-28 03:17:23 +00:00
christos
e8116a8f5b - Use DEV_ constants, instead of documenting the numbers!
- Delete cdev_decl(mm); where appropriate, and other hand-crufting [hi powerpc!]
2002-02-27 01:20:51 +00:00
simonb
d9ab16ba2f Purge CLSIZE, CLSIZELOG2 and MCLOFSET.
Be consistant in the way that MSIZE, MCLSHIFT, MCLBYTES and NMBCLUSTERS
  are defined.
Remove old VM constants from cesfic port.
Bump MSIZE to 256 on mipsco (the only one that wasn't already 256).
2002-02-26 15:13:19 +00:00
gmcgarry
0166df69f5 Implement DIOCGDEFLABEL ioctl. 2002-02-23 21:55:25 +00:00
gmcgarry
49fd989e9b Unnecessary to cast splx() to void. 2002-02-23 21:54:31 +00:00
gmcgarry
562fb80d45 Make the keyboard attach printf a little less cryptic. 2002-02-23 21:53:25 +00:00
gmcgarry
5382848ec7 Recognise md as a valid root device. And since md disks don't get
device_register()'d, don't go looking on our device list for them.
Ramdisk kernel now boot.
2002-02-23 21:52:25 +00:00
gmcgarry
42abedb038 Trim down to 1.2MB ramdisk for booting on 4MB machines. 2002-02-23 21:48:08 +00:00
gmcgarry
19f1fd96ca Don't need printer support during installation. 2002-02-23 21:47:07 +00:00
gmcgarry
6a45dcbe5d Cleanup options for binary compatibility. HPUX and SUNOS are known to work. 2002-02-23 21:46:24 +00:00
wiz
37e458fa45 strategy should have an 'r'. Inspired by similar change in OpenBSD. 2002-02-19 17:09:40 +00:00
gmcgarry
4c43f7cf1a Bump ramdisk to 2MB. 2002-02-13 06:02:46 +00:00
wiz
9baadd8ee5 "doesn't" should have an 's'. 2002-02-11 11:19:26 +00:00
wiz
66df0333a1 s/seperate/separate/ 2002-02-11 10:44:38 +00:00
gmcgarry
9be34a7e49 Up-to-date kernels for installation media. 2002-02-10 01:07:55 +00:00
gmcgarry
839f3d5b8f Don't need these. 2002-02-10 01:06:32 +00:00
gmcgarry
d934377152 Implement DIOCGDEFLABEL ioctl. 2002-02-10 00:49:57 +00:00
gmcgarry
0b0cdf630f Some assemblers will optimise addresses within .text into pc-relative
references.  Bogus for our MMU trampoline code which is relocated to
the last physical page before being invoked.  This hack enforces all
addresses wrt the MMU trampoline code not to be pc-relative.
2002-02-10 00:47:59 +00:00
gmcgarry
70d5890284 Use LIST_INSERT_HEAD() to access the head on the interrupt list. 2002-02-10 00:42:15 +00:00
gmcgarry
25a639e366 Also don't print \n without DIAGNOSTIC. 2002-02-10 00:41:21 +00:00
lukem
971861de37 use ${INSTALL_FILE} as appropriate 2002-02-09 09:35:59 +00:00
gmcgarry
787dd8e0e3 Enter DDB on break if console. 2002-02-08 07:26:16 +00:00
gmcgarry
dad6eb472b Remove old, custom files. 2002-02-08 06:17:03 +00:00
gmcgarry
b7ac65ebe2 Use pmap_kenter_pa() for msgbuf 2002-02-02 04:17:37 +00:00
jdolecek
6d265bd894 add options PIPE_SOCKETPAIR to individual kernel configs
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
2002-01-27 13:23:08 +00:00
jdolecek
ff8305bbac Switch to MI dev/md_root.c for archs which don't have any special
memory disk hooks (i.e. everything except atari).
2002-01-21 21:56:57 +00:00
oster
39b858e3bf Add new RF_* options for RAIDframe bits that are no longer built by default.
While we're here, enable RAIDframe (and RAID_AUTOCONFIG) by default for
architectures that I'm comfortable can deal with it being on by default.

Also: bump the number of 'raid' devices from 4 to 8, since 4 seems to
be insufficient in practise.
2002-01-19 18:45:06 +00:00
manu
af62e00622 Added clockctl 2002-01-12 13:11:08 +00:00
chs
9451559ef4 pmap_page_protect(VM_PROT_NONE) must remove all mappings in the PV list,
even if they are wired.  we need to be able to remove all mappings to
pages that are being freed due to (eg.) file truncation.
2002-01-02 00:51:33 +00:00
martin
b506d6e135 Add PPPoE to all generic kernels that should be able to use it.
XXX TODO: do this for INSTALL kernels too, add sysinst support and make the
XXX needed binaries available on the ramdisk root fs.
2001-12-28 12:21:52 +00:00
thorpej
86a77080a5 Remove (incorrect) extern decl of emul_hpux. 2001-12-26 19:08:11 +00:00
thorpej
63d3d9fe5a Multi-line string literals are not in ANSI C; don't use them. 2001-12-26 17:37:59 +00:00
tsutsui
20d126a5b4 Fix comments for ref-count of PT pages. 2001-12-16 03:53:21 +00:00
gmcgarry
ac1f9fcc8c When attaching as console, unmap the device on failure. 2001-12-16 02:02:05 +00:00
gmcgarry
25be1c42e2 Arrange in correct order. 2001-12-14 08:39:11 +00:00
gmcgarry
9370d5d4ef Update hardware drivers with console attachments to the new console
attachment interface.
2001-12-14 08:34:27 +00:00
gmcgarry
8038726863 Update the console attach interface now that bus_space is available.
Basically means that hardware drivers with console attachments are
now largely machine independent.
2001-12-14 08:29:24 +00:00
gmcgarry
8883bd8ba3 Make the ite interface look a little more like wscons. This is done
by allowing the hardware drivers to register keyboard and display
support with the ite framework.  Removes the dependence on the hil
keyboard and should make support for dnkbd easier.

An interim fix until wscons arrives.
2001-12-14 08:25:40 +00:00
gmcgarry
eed7e1f9a3 include Makefile.buildboot before testing for RELEASEDIR 2001-12-14 07:36:32 +00:00
gmcgarry
5b666cb353 Bump version: Default to BOOTP network boot 2001-12-14 06:08:35 +00:00
gmcgarry
64e7130584 Use bootp, to match the recent change to the bootblocks. 2001-12-14 05:56:59 +00:00
gmcgarry
bdd225baa1 Add a blurb to the top of all GENERIC files. This serves three purposes:
- to clarify some terminology
- to clarify the intention of the GENERIC file
- to cross-reference some useful man pages
2001-12-14 05:34:45 +00:00
chs
2dfd15933e change the reference-counting of PT pages to start from zero instead of
one, so that we don't mess up the global count of wired pages by having
the page's wire_count be non-zero when we free the page.
pointed out by Michael Hitch.
2001-12-13 04:39:50 +00:00
tv
8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
atatat
b45c51b1fc Roll the rest of the ports over to the new MI kernel build machinery.
Any problems reported by testers have been fixed, and massive
cross-compiling of kernels has shown that any problems that remain
with actually building kernels are not related to this.
2001-12-09 05:00:40 +00:00
gmcgarry
0d3b140525 Update list to reflect reality 2001-12-08 04:26:10 +00:00
gmcgarry
b820c21e65 Update for structural interrupt changes. No functional change. 2001-12-08 04:22:46 +00:00
gmcgarry
8dd1938ed2 softintr(9) interface for hp300 2001-12-08 04:12:37 +00:00
gmcgarry
9a9a6e8ad4 softintr(9) interface for hp300 2001-12-08 04:09:18 +00:00
gmcgarry
1ef513e6a8 Remove placeholder for event counter; it's done elsewhere 2001-12-08 04:04:49 +00:00
gmcgarry
544aceff4c - shift event counters to intr.c
- use new event counters
- align comments
2001-12-08 04:01:48 +00:00
gmcgarry
6b8f8f10c6 - rework data structures to align with generic soft interrupts interface
- shift event counters from locore
2001-12-08 04:00:22 +00:00
gmcgarry
52c6bcd104 bcopy -> memcpy
bzero -> memset
bcmp -> memcmp
2001-12-08 03:55:22 +00:00
gmcgarry
aee7bee1a7 bcopy -> memcpy
bzero -> memset
bcmp -> memcmp
2001-12-08 03:34:38 +00:00
wiz
d10951fb07 File contents not interesting anymore, and even partially wrong.
Remove it. Ok'd by chuq.
2001-12-06 13:56:35 +00:00
wiz
b4371d47f5 Replace some misuses of "then" with "than". 2001-12-04 17:56:30 +00:00
gmcgarry
56504d76c4 Fix path to clockvar.h. 2001-12-03 05:52:13 +00:00
gmcgarry
fa9aa504f9 Use BOOTP by default. 2001-12-03 05:44:36 +00:00
gmcgarry
6baa42f8ce Don't use dev/cninit.c, since we have our own custom implementation. 2001-12-02 01:28:54 +00:00
gmcgarry
72dc6ccf2b Type cast for bus_space_vaddr() 2001-12-02 01:20:33 +00:00
kleink
e5341ee40f No point in installing svr4_machdep.h. 2001-11-28 13:14:12 +00:00
lukem
ecb81c3f6d - convert usage of "defopt" to "defflag" where the relevant option does
not support a value (e.g., it's to be used as "options FOO" instead of
  "options FOO=xxx"). options that take a value were converted to
  defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
isaki
26b511b905 fix typo s/68551/68851/ in a comment. 2001-11-24 06:53:16 +00:00
atatat
2bf2c362fb The bridge(4) pseudo-device no longer requires the port to
__HAVE_GENERIC_SOFT_INTERRUPTS, so add it back to all GENERIC configs.
2001-11-23 05:00:22 +00:00
lukem
0fa231134c - replace "defopt" with "defparam" for options which must take a value,
as config(8) will warn for value-less defparam options
- minor whitespace/formatting cleanup
- consolidate opt_tcp_recvspace.h and opt_tcp_sendspace.h into opt_tcp_space.h
2001-11-20 14:34:18 +00:00
lukem
03aef4723c cleanup:
options SPACE TAB
	makeoptions TAB
	psuedo-device TAB
	remove trailing whitespace
	replace multiple spaces -> tabs
	options "FOO" -> options FOO
	options "FOO=bar" -> options FOO=bar
	options "FOO=\"bar\"" -> options FOO="\"bar\""
2001-11-20 12:56:17 +00:00
chs
621a9ec9ea allocate and free page table pages explicitly instead of abusing
uvm_fault_wire().  this allows us to make pt_map non-pageable,
but we need to be careful in pmap_remove() not to attempt to
reference PTEs after the PTP has been freed.
2001-11-19 06:40:11 +00:00
gmcgarry
2cabf5a2e2 Update for new RTC and HIL attachments. 2001-11-17 23:56:21 +00:00
gmcgarry
8efcc1d46b Convert hil to standard device attachment. 2001-11-17 23:53:37 +00:00
gmcgarry
4d380420ae Use new RTC attachment. 2001-11-17 23:51:03 +00:00
gmcgarry
d9b1140ca5 Merge some fixes from clock.c, revision 1.23. 2001-11-17 23:48:15 +00:00
gmcgarry
257f825d26 Device attachment for the real-time clock. 2001-11-17 23:38:32 +00:00
gmcgarry
3cf284349d Update for new intio parent interface. 2001-11-17 23:35:31 +00:00
gmcgarry
224cd45a75 Overhaul the intio device attachment. Devices are direct connected and
attached based on machine id.
2001-11-17 23:33:22 +00:00
gmcgarry
3acacb5fc1 Make hil interrupts come through the standard dispatch mechanism rather
than its custom handler.
2001-11-17 23:29:08 +00:00
gmcgarry
40aa97f8b1 For INTIO space, use an offset for the mapping rather than the physical
address.
2001-11-17 23:26:55 +00:00
gmcgarry
4b62b5b023 Don't try to mmap the framebuffer as executable. Fixes MMU faults
when executing the X server.
2001-11-17 23:25:04 +00:00
gmcgarry
e9ec95622b Remove unnecessary trailing argument. Now compiles with new toolchain. 2001-11-16 08:14:05 +00:00
soren
662f877587 MAXSLP is defined to be a machine-independent scheduling parameter,
so move it into sys/param.h.
2001-11-15 18:06:11 +00:00
tv
5489b30b60 ${MAKE} print-objdir -> ${PRINTOBJDIR} 2001-11-14 00:58:48 +00:00
tsutsui
3f6a86f512 Add some definitions for battery backed clock register 5,
and fix one spelling nit.

Mostly from port-hp300/8824, which had already pointed out
y2k (and y2k+1) bugs before 2000, but they were not fixed
till the last month. (I noticed this PR today. Oops)
2001-11-10 19:43:48 +00:00
scw
45e7238a02 Bump the version numbers of all bootloaders which use loadfile_elfXX() now
that it tries hard to avoid backwards seeks.
2001-11-09 19:53:11 +00:00
gmcgarry
2cd41580a7 Make install observe ${INSTPRIV} 2001-11-08 07:45:25 +00:00
gmcgarry
12b20b6dde Use crufty old clock-handling code for now. 2001-11-08 07:01:33 +00:00
gmcgarry
f410d2f08f Implement bus_space_vaddr() 2001-11-08 06:32:02 +00:00
gmcgarry
3fe33b077f Reserve for wscons. 2001-11-08 06:27:45 +00:00
thorpej
e727e3f180 Split elf32 vs. elf64 handling in loadfile(), including support for
each separately and explicitly.  BOOT_ELF is now BOOT_ELF32 and
BOOT_ELF64, and ELFSIZE should no longer be defined in loadfile_machdep.h.
2001-10-31 17:20:45 +00:00
jmc
6d536163de Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.
2001-10-26 06:45:33 +00:00
thorpej
ba217c4196 Set MACHINE_ARCH explicitly in Makefiles for which it is constant.
Also, since config(8) now explcitly sets MACHINE, there is no need
to do it here in the Makefile.
2001-10-23 19:26:41 +00:00
tsutsui
9ed721dc0a hp300 now uses dev/clock_subr.c. 2001-10-11 15:04:44 +00:00
tsutsui
0c3fd1cf03 Cleanup TOD clock functions:
- Adapt MI functions/structures in sys/dev/clock_subr.[ch]
 - Fix year-2001 problem

XXX Maybe TOD clock should be attached as an independent device.
2001-10-11 15:02:07 +00:00
tsutsui
59e6364fcd Include <machine/bootinfo.h> 2001-10-09 16:03:11 +00:00
chs
15982c7311 fix typo in pmap_kremove() which was invalidating the wrong TLB entry.
from Hiroki Tanikawa in PR 14099.
2001-09-29 22:00:29 +00:00
wiz
456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
chris
0e7661f023 Update pmap_update to now take the updated pmap as an argument.
This will allow improvements to the pmaps so that they can more easily defer expensive operations, eg tlb/cache flush, til the last possible moment.

Currently this is a no-op on most platforms, so they should see no difference.

Reviewed by Jason.
2001-09-10 21:19:08 +00:00
atatat
5f25c01eff Comment out bridge pseudo devices from ports that don't
__HAVE_GENERIC_SOFT_INTERRUPTS.  bridge(4) doesn't compile there.
2001-09-01 23:08:40 +00:00
atatat
97c67a9bae Add bridge pseudo devices to GENERIC configs 2001-09-01 21:52:23 +00:00
wiz
c52d355d71 "wierd" is weird. 2001-08-20 12:20:01 +00:00
bjh21
ad2c12a28d Bump version numbers of all bootloaders that use loadfile/ELF, to account for
my changes to symbol loading.  I should probably have done this at the time,
but it's better late than never.
2001-08-02 12:24:05 +00:00
wiz
a9356936b4 seperate -> separate 2001-07-22 13:33:58 +00:00
abs
01b024cd5b Standardise TCP_COMPAT_42 as commented out, grouped with other COMPAT options,
and with the comment '4.2BSD TCP/IP bug compat. Not recommended'
Add commented out 'TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG'
(All hail amiga and atari which make some attempt to automate the
multiplicity of config files...)
2001-07-08 16:32:12 +00:00
chs
e185109424 implement pmap_k{enter_pa,remove}() correctly.
other misc cleanup.
2001-07-06 05:57:13 +00:00
chs
c844daf5ab use pmap_k* for pagemove().
call pmap_remove() explicitly in vunmapbuf() in preparation for
upcoming UVM changes.
2001-07-06 05:53:35 +00:00
gmcgarry
741d001b9f Sort boot options. Add -c for userconf. 2001-07-01 02:58:38 +00:00
gmcgarry
c1d6da70b5 Example options to reduce kernel memory footprint. 2001-07-01 02:16:33 +00:00
gmcgarry
a193512e18 Create an empty bootinfo structure. 2001-07-01 01:38:14 +00:00
darcy
ce0ec1e208 Add System V semaphore resource limits to each GENERIC file that has an
option for System V semaphores.  It appears that there are no overrides
in the code and each file has the following added.

 options    SYSVSEM     # System V semaphores
+#options   SEMMNI=10   # number of semaphore identifiers
+#options   SEMMNS=60   # number of semaphores in system
+#options   SEMUME=10   # max number of undo entries per process
+#options   SEMMNU=30   # number of undo structures in system
 options    SYSVSHM     # System V shared memory

If anyone thinks that this is incorrect for any of these files, please
correct it.

Note - the i386 port was not forgotten.  It was done separately.
2001-06-30 11:00:31 +00:00
wiz
3f9984fc90 existent', not existant' 2001-06-19 13:42:07 +00:00
christos
0f380fac15 Add an e_trapsignal member to struct emul, so that emulated processes can
send the appropriate signal depending on the trap type.
2001-06-18 02:00:48 +00:00
wiz
0a600be867 receive, not recieve 2001-06-12 15:17:10 +00:00
chs
49ba960b09 make this compile with DEBUG. 2001-06-11 04:58:33 +00:00
chs
821ec03ed9 replace vm_map{,_entry}_t with struct vm_map{,_entry} *. 2001-06-02 18:09:08 +00:00
lukem
d84d2c6c85 add missing #include "opt_kgdb.h" 2001-05-30 15:24:23 +00:00
mrg
67afbd6270 use _KERNEL_OPT 2001-05-30 11:57:16 +00:00
chs
966a1b86f8 initialize the b_dep field in malloc()'d buffers. fixes PR 13065. 2001-05-29 23:08:06 +00:00
mrg
3783ca5d30 define _KERNEL_OPT as well as _KERNEL. we will use this in the future to
get kernel "opt_foo.h" headers, rather than _KERNEL && !_LKM.
2001-05-29 02:20:20 +00:00
kleink
021d12d997 Add 35401A drive (not picker) support; from Jarkko Teppo in PR
port-hp300/11183.
2001-05-27 09:09:05 +00:00
gmcgarry
fadbc7d451 - remove dependency on libsa by mkboot since it is a host tool.
- adjust for endianness of host.

Cross-compiling of ELF bootblocks now works.
2001-05-27 05:35:11 +00:00
gmcgarry
e8c65098f6 Protect against possible alignment problems. 2001-05-27 05:31:58 +00:00
gmcgarry
f94a9b7669 Alignment for on ELF systems. ELF bootblocks now work. 2001-05-27 05:30:41 +00:00
gmcgarry
9be5657e02 Alignment fix. rd disks now work on ELF systems. 2001-05-27 05:29:48 +00:00
chs
e44e9dec8a replace vm_page_t with struct vm_page *. 2001-05-26 21:27:02 +00:00
chs
118ddca24a replace {simple_,}lock{_data,}_t with struct {simple,}lock {,*}. 2001-05-26 16:32:40 +00:00