Commit Graph

99 Commits

Author SHA1 Message Date
thorpej
1140468205 Use preempt(), not an open-coded equivalent (which won't be
equivalent for long).
2000-05-24 16:48:33 +00:00
thorpej
071aed40ac A foolish consistency; most parts of the kernel use bp->b_data, so
change these from bp->b_un.b_addr to bp->b_data, as well.  This also
allows us more flexibility to experiment with other data buffer types
hung off of struct buf.
2000-05-19 18:54:22 +00:00
thorpej
463931b3ba Nuke dk_establish() from orbit except from those ports which still use
it to determine the boot device: mvme68k, pc532, macppc, ofppc.  Those
platforms should be changed to use device_register().  In the mean time,
those ports defined __BROKEN_DK_ESTABLISH.
2000-05-16 05:45:44 +00:00
minoura
6943d5dd19 defopt FPSP. 2000-05-14 14:13:53 +00:00
hubertf
9f48bba3ae Add "install" target, so "make install" after building the kernel
does something useful.  The target can be redefined by putting a
install-kernel-${MACHINE_NAME} target that fits your needs into
/etc/mk.conf.
2000-05-09 00:56:21 +00:00
thorpej
6a33c86623 HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9 as well. Also,
make the use of -Wno-uninitialized explicit, don't rely on a compiler
hack to do it for us.
2000-05-09 00:32:19 +00:00
thorpej
f51470a514 Require that each each MACHINE/MACHINE_ARCH supply a lock.h. This file
contains the values __SIMPLELOCK_LOCKED and __SIMPLELOCK_UNLOCKED, which
replace the old SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED.  These files
are also required to supply inline functions __cpu_simple_lock(),
__cpu_simple_lock_try(), and __cpu_simple_unlock() if locking is to be
supported on that platform (i.e. if MULTIPROCESSOR is defined in the
_KERNEL case).  Change these functions to take an int * (&alp->lock_data)
rather than the struct simplelock * itself.

These changes make it possible for userland to use the locking primitives
by including <machine/lock.h>.
2000-04-29 03:31:45 +00:00
simonb
2f1fef39b3 Centralise the declarations of cpu_model, machine, machine_arch,
osrelease, and ostype and remove "extern char foo[];" (for hostname
and domainname too).

Also delete redunctant decl of boottime in kern_info_43.c.
2000-03-28 23:57:24 +00:00
kleink
230876cf26 Merge parts of chs-ubc2 into the trunk:
* Remove the casts to vaddr_t from the round_page() and trunc_page() macros to
  make them type-generic, which is necessary i.e. to operate on file offsets
  without truncating them.
* In due course, cast pointer arguments to these macros to an appropriate
  integral type (paddr_t, vaddr_t).

Originally done by Chuck Silvers, updated by myself.
2000-03-26 20:42:21 +00:00
tron
e86957458a Install "machineendian_machdep.h". 2000-03-17 22:36:31 +00:00
mycroft
9e21b6555a In the `MY THAT'S GROSS' department...
Eliminate the recursive include of machine/endian.h from sys/endian.h.
2000-03-17 00:09:18 +00:00
mycroft
02905321b2 Foolish consistency. Mainly, always use underscores and sys/endian.h. 2000-03-16 15:09:34 +00:00
soren
b4e10b0a4e s/md/raid/ for RAIDframe major name. 2000-03-15 17:08:37 +00:00
oster
36b9d60244 Add the RAIDframe device major to the machine-dependent config files
so that the right entries get added to dev_name2blk[].  Needed for / on RAID.
(Missed these yesterday.. Thanks to Izumi Tsutsui for noticing, and for
letting me know :) )
2000-03-15 16:57:12 +00:00
tsutsui
56423f59aa Use b_cylinder as defined in sys/buf.h. 2000-03-07 15:59:24 +00:00
tsutsui
d16c6f3272 Use DISKPART/DISKMINOR/DISKUNIT instead of dkpart/dkminor/dkunit. 2000-03-07 15:55:14 +00:00
thorpej
a183d34f04 - Implement cnbell() -- ring the console bell. The cn_bell entrypoint
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
2000-03-06 21:36:05 +00:00
erh
8f03b9a04a Define the DONETISR macro and use netisr_dispatch.h. This is to cut down on code duplication and to standardize the available NETISRs across all ports. 2000-02-21 20:38:46 +00:00
thorpej
5903e181fa Nuke NKMEMCLUSTERS. 2000-02-12 03:29:18 +00:00
thorpej
dded044fc2 Update for the NKMEMPAGES changes. 2000-02-11 19:25:12 +00:00
tsutsui
11c8f56d48 Revert STRIPPROG -> STRIP 2000-02-01 05:25:24 +00:00
nisimura
9ddaa2112f Nuke isbad(), and fix typos. 2000-01-28 02:25:24 +00:00
drochner
8eb798e603 define a "BUS_SPACE_MAP_PREFETCHABLE" flag which basically means that
device accesses are idempotent (but should not be cached by the CPU)
2000-01-25 22:13:17 +00:00
nisimura
d3657aebd3 Change the previous decision.
NetBSD/luna68k (1) creates UniOS/ISI label with BSD label embedded
at offset 64, (2) reads BSD label if found, (2) falls back to
reading UniOS/ISI label when no BSD label is found.  Plus, (4)
reads SunOS label if found in place of UniOS/ISI label.
2000-01-25 00:19:30 +00:00
tron
04eb110431 Add "dependall" target for comfort. 2000-01-24 20:36:06 +00:00
hubertf
7e5ff67457 Add commented out "ident"-command 2000-01-23 23:46:04 +00:00
sommerfeld
aa195e816f Fix PR9240: comment above cpu_fork() out of synch with reality on most ports.
(comment change only, but was wrong for more than just i386).
2000-01-20 22:18:54 +00:00
thorpej
a0397a2573 Move callout initialization to a single location; no need to duplicate
that code all over the place.
2000-01-19 20:05:30 +00:00
tsutsui
e61f177ab1 STRIP -> STRIPPROG 2000-01-19 16:29:54 +00:00
tsutsui
644b514c39 Change STRIPFLAGS=-g for cross-toolchains. 2000-01-19 14:44:58 +00:00
msaitoh
0b9af6bdce check whether tv_usec >= 1000000 2000-01-19 02:52:16 +00:00
thorpej
8201b36ca0 Use b_cylinder as defined in sys/buf.h 2000-01-18 19:43:02 +00:00
nisimura
fc387549e3 Remove extra debugging/sanity checking code from GENERIC. 2000-01-17 00:58:01 +00:00
nisimura
d063175e87 Add a place holder. 2000-01-17 00:55:37 +00:00
nisimura
410a23c0a3 Revert to old ROM console I/O code. 2000-01-15 10:06:21 +00:00
nisimura
94c89f6863 Kludge to detect booted_device detection. Needs helpful 2nd stage boot
loaders for finer controls.
2000-01-15 02:06:31 +00:00
nisimura
034d6278cf Fix an argument error of wsmouse_input() call. 2000-01-14 03:28:13 +00:00
nisimura
a6b81f14b1 Make suline() compilable for 68040. 2000-01-14 02:39:22 +00:00
nisimura
765a46262c - Add raidframe and wsmux.
- Fix off-by-one error of scsibus.
2000-01-13 01:04:33 +00:00
nisimura
237f63f2d2 Put a comment about BREAK detection; DDB fails to resume. Need to clear
the condition before resume?
2000-01-12 01:59:45 +00:00
nisimura
acf3c1e59a - Fix an error in clearing entire screen.
- Add 3 byte long mouse event parsing.
- Fix errors in comments.
2000-01-12 01:57:22 +00:00
nisimura
866126dd49 Nuke unnecessary external variable declaration. 2000-01-11 10:29:35 +00:00
nisimura
18cef2d812 Use explicit 68040 calls for cache manipulations. 2000-01-11 08:24:14 +00:00
nisimura
a85aebd7fe Allow to mount disk with UniOS (== ISI) disklabel as well as SunOS
label.  Klude to access weird rootfs on 'c' via 'b'.  ISI disklabel
can not be altered.  Use SunOS label.
2000-01-11 08:22:38 +00:00
nisimura
e9c36a5c33 Kludge to avoid a panic in badaddr() when no framebuffer is installed. 2000-01-08 04:40:25 +00:00
nisimura
1aab1f58f9 Make consistent with other m68k ports fixing updates. 2000-01-07 09:09:35 +00:00
nisimura
f28fd51814 - Make SCSI work; by kludges of machine/bus.h. TEAC streamer tape drive
found to be tweaked.  Need extensive verifications.
- Add wsmouse node under ws; not useful this moment.
2000-01-07 05:13:08 +00:00
nisimura
3bec20781c Fix a typo of screen size; pointed by tsubai. 2000-01-06 00:19:10 +00:00
nisimura
95d00ea75d Introduce NetBSD/luna68k port into CVS repository. 2000-01-05 08:48:53 +00:00