Commit Graph

149 Commits

Author SHA1 Message Date
thorpej 4044b5a41c Use separate callouts for motor-on and motor-off. Fixes a condition
where the floppy driver would wedge because a motor-on timeout would
be cancelled by another I/O operation cancelling a motor-off timeout.

From enami tsugutomo <enami@sm.sony.co.jp>.
2000-04-07 16:58:53 +00:00
soda 1c5551f260 splsoftnet() should block softclock() too. 2000-04-03 11:44:19 +00:00
soda 18dbe75d6e cancel previous change, and add a comment about it.
$INCS variable is introduced by cgd to export kernel headers which
are needed from userland. In other words, $INC should only have
headers for kernel <-> userland programming interface.
Headers for kernel internal implementation should not be exported
to userland.
2000-03-31 11:44:05 +00:00
soren e204cb3eb9 machine/cpu.h includes mips/cpuregs.h. 2000-03-30 21:37:51 +00:00
soren 726573bf96 Match contents. 2000-03-30 21:33:19 +00:00
soda ccc163be60 -Wmissing-prototypes cleanup 2000-03-27 11:29:32 +00:00
soda 4531dedece fix typo in timeout -> callout transition. 2000-03-27 11:22:51 +00:00
nisimura 61609b54e2 Make sure proc0 PCB has spl0 condition in CP0 status register field.
cpu_fork() mistakenly created processes forked by proc0, including
kthreads, in splhigh condition, because [1] proc0's PCB was zero
cleared during initialization, and [2] value 0 in status register
field made processes to have splhigh condition when CPU tick was
assigned for them.  This mostly doesn't matter as forked processes
dive immediately into user mode through proc_trampoline code path,
however, kthreads never do that and remain in splhigh.

Reported by Ethan Solomita <ethan@geocast.com>.
2000-03-25 10:14:13 +00:00
soren 573160e03b Revert previous. 2000-03-24 23:06:03 +00:00
soren c535ede30b Move sysctl definitions from arch/mips to arch/foo. 2000-03-24 21:30:58 +00:00
thorpej b667a5a357 New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 06:30:07 +00:00
cgd 7c35662066 add commented out option PCI_CONFIG_DUMP whever there's a PCIVERBOSE. 2000-03-22 00:58:16 +00:00
soda 0dadd7f429 if there is MBR, but there isn't BSD MBR partition entry,
writedisklabel(9) paniced.
pointed out and fixed by Shuichiro URATA <ur@a-r.org>, thanks.
2000-03-21 09:44:57 +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
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
nisimura c9fc3f7c80 Mention a bit about possible HZ interporation improvement in microtime(). 2000-03-04 07:09:09 +00:00
nisimura 8098245d56 Mention a bit about various issues NetBSD/arc must solve. 2000-03-04 06:54:17 +00:00
nisimura 4e461d33ef Have a local variable to match/attach mainbus insteading using ->cf_unit. 2000-03-04 06:35:02 +00:00
nisimura 400fee7b5a Remove never used memory error address register manipulation
inherited from DECstation 3100 and other debris floating around.
This file will go away naturally when interrupt establish procedure
and dispatcher are well coordinated in sane way of encapulating
target implementation differences.
2000-03-04 05:21:20 +00:00
soda 09a5eed1e8 NEC RISCstation 2250 (NEC-RD94) support.
contributed by Shuichiro URATA <ur@a-r.org>.
2000-03-03 13:08:42 +00:00
soda a031341f9b NEC RISCstation 2250 (NEC-RD94) support.
contributed by Shuichiro URATA <ur@a-r.org>.
2000-03-03 12:50:19 +00:00
soda d4b9359964 do not install bus.h, kbdreg.h and pio.h..
since currently these are not useful/needed from userland.
2000-03-03 12:38:25 +00:00
soda 65102815b0 cosmetic change. 2000-03-03 12:35:40 +00:00
soda 0ded8728bc typo in comment 2000-03-03 12:32:43 +00:00
soda a39a58d0fb update 2000-03-03 12:32:15 +00:00
soda 0fd8c949e4 prepare for wscons 2000-03-03 12:31:33 +00:00
soda e47c4a5f51 add some MI devices, including raidframe, tun, ... 2000-03-03 12:29:57 +00:00
nisimura 3c5d39d73b Make clearer a bit how proc0's USPACE is intialized. 2000-03-03 08:36:20 +00:00
soda 59ebd61fdf Do not hardcode ethernet address.
This haven't tested with original Acer Pica 61, but it appeared that
NEC Image RISCstation is almost fully compatible with Pica 61, and
doesn't have problem with using product id as ethernet address.
(Although it is better to use SONIC device configuration data from ARC BIOS,
 rather than product id. Autoconfiguration stuff for jazz derived systems
 really should be revisited.)
2000-02-25 13:28:42 +00:00
soda 0e123969af some clean up, especially,
- use "objcopy -O ecoff-littlemips" instead of elf2ecoff to make cross
   compilation easy. this also workarounds a problem that -current
   elf2ecoff doesn't work with ARC BIOS.
 - use -mips2 for ld, since mixing -mips3 and -mips2 doesn't work with
   -current ld.
mostly from Izumi Tsutsui <tsutsui@netbsd.org>
2000-02-25 13:20:43 +00:00
soda ea30c06e0e remove commented out ``ident "GENERIC-..."'', since this file is not GENERIC. 2000-02-22 12:17:52 +00:00
soda 4ad26273c2 rd -> md 2000-02-22 11:40:20 +00:00
soda e9423d1a30 this file belongs to arc/include on NetBSD. 2000-02-22 11:32:23 +00:00
soda 71f6ef9ee6 merge changes between OpenBSD-2.1 and OpenBSD-2.6 2000-02-22 11:25:55 +00:00
soda 87009692f7 OpenBSD-2.6/arc 2000-02-22 11:05:02 +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
thorpej fe551f0e64 Fix a bug in disksort_*() which caused non-optimal ordering when multiple
active partitions were on a single spindle.  Add a b_rawblkno member to
struct buf which contains the non-partition-relative block number to sort
by.
2000-02-07 20:16:47 +00:00
cgd 7d16ac338c add __BROKEN_CONFIG_UNIT_USAGE #define, becuase these ports do very
wrong things with device configuration data "cf_unit" information.
2000-02-05 00:13:22 +00:00
tsutsui 11c8f56d48 Revert STRIPPROG -> STRIP 2000-02-01 05:25:24 +00:00
nisimura be6d4a9d34 Fix chrtoblktbl[] array to reflect reality. 2000-02-01 02:59:30 +00:00
nisimura 5b465690f2 Have .set mips3 directive to make it consistent with other *.S files. 2000-02-01 02:30:20 +00:00
soda e44d6b7781 ELF*_MACHDEP_ENDIANNESS was undefined. 2000-01-31 15:51:35 +00:00
soda f227455441 make "make build" work 2000-01-31 15:50:13 +00:00
soda 7978d0205b - _MACHINE_ARCH was undefined, MACHINE_ARCH was wrong.
- make "make includes" work
2000-01-27 07:50:02 +00:00
soda 39cd3507d2 make "make includes" work 2000-01-27 07:49:13 +00:00