Commit Graph

24916 Commits

Author SHA1 Message Date
matt c77ccc45d8 Make this stuff compile with -wstrict-prototpes -wmissing-prototypes.
More use of prototypes inside includes should be done.
2000-12-03 01:42:29 +00:00
matt ab27bbe9b2 Need to add -EB for ASFLAGS as well. Don't use -EB in LINKFLAGS but add
-EB to LD so that libkern/libcompat get it as well.
2000-12-02 20:27:37 +00:00
jdolecek 2b0dca1878 db_disasm(): pte is in kernel address space, so use kvtopte() to get pde,
otherwise it would trip over KASSERT() in vtopte() and cycle
2000-12-02 19:34:54 +00:00
scw 57b29e6754 Fix symbol table loading. 2000-12-02 17:28:08 +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
scw 6de7ccd2d3 On exit from syscalls, don't trash %A0 if the process is
using the COMPAT_AOUT_M68K emulation package.
2000-12-02 17:00:46 +00:00
jdolecek e9b63338d7 add prototype for ibcs2_syscall() 2000-12-02 16:13:34 +00:00
jdolecek 65203b4ec6 if IBCS2_MACHDEP_HAS_SEPARATED_SYSCALL is defined, put ibcs2_syscall to
emul_ibcs2
define IBCS2_MACHDEP_HAS_SEPARATED_SYSCALL in i386 ibcs2_machdep.h
2000-12-02 16:09:44 +00:00
jdolecek 6719ee1cf7 as discussed on tech-kern, put linux and ibcs2 syscall code to separate
files and change syscall() to call p->p_emul->e_syscall() if it's not NULL
2000-12-02 16:03:23 +00:00
scw e4326b372a Set things up so that DDB can get to the symbol table in ELF kernels. 2000-12-02 13:57:05 +00:00
scw 66a84140b8 Use "EMUL_HAS_SYS___syscall" instead of checking p->p_emul.
Removes dependency on COMPAT_AOUT_M68K.
2000-12-02 13:45:14 +00:00
sato 0f6c05e8d7 - polling battery voltage value from A/D port.
currently polling only.
  if verbose mode, kernel print A/D raw value every polling.
2000-12-02 08:35:45 +00:00
matt 7168049e66 Add -EB to make building kernel on LE systems easier. 2000-12-02 06:23:48 +00:00
matt 305bef7250 Cleanup/fixup gten support. Add TNF copyright (opps). This now outputs
text correctly.  There is no colormap support (e.g. the mechanisms are in
place but does yet talk to the hardware).
2000-12-02 05:46:46 +00:00
mrg 3da40e83e7 const poison to avoid a warning. 2000-12-02 03:57:26 +00:00
matt 0b76f4efdf Add support for the IBM ThinkPad 820 G10 display (which is a WD90C24A behind
a funky PCI-VLBUS bridge).
2000-12-01 21:54:01 +00:00
jdolecek f3d1c08b2a check emul flags for EMUL_HAS_SYS___syscall instead of comparing
callp to sysent; the COMPAT_AOUT hack is gone
2000-12-01 19:50:17 +00:00
kei 4389b3cbed fix a typo in the printf message. 2000-12-01 18:09:01 +00:00
kei b134a87a76 fix a typo in comment. remove a whitespace at the end of line. 2000-12-01 18:07:11 +00:00
tsutsui a8fdbdec1c Remove unused pcbb() macro. 2000-12-01 17:57:43 +00:00
eeh bf3bbac849 Don't allow pmap_collect() to run on the kernel pmap since it will
undo the work of pmap_growkernel().
2000-12-01 17:17:29 +00:00
bjh21 cb5273b547 First attempt at an EtherH driver. Can just about transmit and receive
packets.  Interrupt enabling is left to the RISC OS driver, medium selection
is untested and it's hard-wired to the MAC address of my card.  Not really
for production use.
2000-12-01 14:28:36 +00:00
soren ff0f7c1ab4 No longer used. 2000-12-01 07:56:18 +00:00
soren 2cc519bba5 <pc/display.h> has been moved to <dev/ic/pcdisplay.h>. 2000-12-01 07:55:10 +00:00
scw 97490c9997 Add __attribute__((__packed__)) to cpu_disklabel to get around
the ELF padding/alignment constraints.
2000-12-01 00:02:22 +00:00
scw 75f2f8f242 Delete an extraneous underscore in the last commit. 2000-11-30 23:47:45 +00:00
scw bd8955b9b6 Only try to attach those devices which have been configured
in the kernel config file.
2000-11-30 22:54:31 +00:00
scw c4a189ad74 Print some more details of the memory managed by each ASIC. 2000-11-30 22:51:35 +00:00
scw ba98135ea8 Add EXEC_ELF32 2000-11-30 22:31:27 +00:00
scw 7051df32f5 Support booting an ELF kernel, plus numerous tweaks due to
the gas.new/ELF transition.
2000-11-30 22:26:26 +00:00
scw 9121962f0e Copy the syscall return value into A0, as per the SVR4 ABI.
Also prepare for COMPAT_AOUT_M68K.
2000-11-30 21:29:11 +00:00
scw d3251e5074 Prepare to switch mvme68k bootloader over to the MI loadfile(). 2000-11-30 21:20:43 +00:00
scw 7248616dee Ditch an extra % in a register prefix, and s/a6/fp/ 2000-11-30 21:18:07 +00:00
scw 71ca01981e Prepare for the m68k ELF transition:
o Add register prefixes for the benefit of gas.new
 o Wrap global symbols in the m68k/asm.h macros
 o Fix `#' comments so the source can be run through the C pre-processor
2000-11-30 21:00:51 +00:00
bjh21 9307dc5373 Reduce default UBC_NWINS to save precious KVM. 2000-11-30 20:59:36 +00:00
bjh21 32b19479ca Drastically reduce PAGER_MAP_SIZE so we don't run out of KVM so soon. 2000-11-30 12:16:00 +00:00
nisimura 3077a68aa3 Reduce UPAGES from 3 to 2. 2000-11-30 02:55:50 +00:00
jdolecek 73f3cd8c7e LKMify 2000-11-29 21:51:49 +00:00
jdolecek 7924882d2e remove unneded opt_compat_osf1.h stuff 2000-11-29 21:50:49 +00:00
tsubai e4bfefe7bd Make spl functions no-inline. This saves size and even it runs faster on
some systems.
2000-11-29 17:55:52 +00:00
minoura 0bbc767215 Adjust the ramdisk size. 2000-11-29 14:45:27 +00:00
jdolecek 9cdf00b4bb remove rules for genassym.c, it's no longer pertinent 2000-11-29 13:02:51 +00:00
jdolecek 0e8ae0e54a convert to use common genassym.cf 2000-11-29 12:55:11 +00:00
tsutsui 7dc077e6f5 Change UPAGES from 3 to 2. (sync with hp300) 2000-11-29 12:32:06 +00:00
aymeric 5deecf29d2 Fall back to previous memory segments detection code if BIOS reports no
correct memory segment.
This prevents some systems from losing with `can't find end of memory'.
Discussed with Bill Sommerfeld.
2000-11-29 09:56:02 +00:00
scw 614e494d9e Add register prefixes. 2000-11-29 09:18:32 +00:00
scw 930411f925 Missed a couple of register prefixes... 2000-11-29 09:11:53 +00:00
scw fecb49d172 Add register prefixes. 2000-11-29 09:09:39 +00:00
thorpej 5f3a256833 Allocate the DMA windows out of the PCI memory extent map after
DMA is initialized.
2000-11-29 06:30:09 +00:00
thorpej 96294f7b26 Do the additional PCI memory initialization after configuring DMA. 2000-11-29 06:29:10 +00:00
thorpej 8f20972db2 Revert previous -- we'll do it differently. 2000-11-29 06:21:12 +00:00
thorpej d615083897 The AMD 751 doesn't have DMA windows, so allocate the RAM out of the
PCI memory extent map.  Bad things will happen if we try to assign
a device where RAM is mapped into PCI space.
2000-11-29 05:56:49 +00:00
thorpej 8ebabb1aae Increase the number of static extent descriptors from 8 to 16,
and add a means for calling a chip-specific init hook.
2000-11-29 05:53:29 +00:00
augustss f9450fa993 Put neo* in alphabetical position. 2000-11-28 19:44:07 +00:00
thorpej 3f877e127e Add auich(4) and neo(4). 2000-11-28 05:18:42 +00:00
minoura 2eabb2676b We do not use INSTALL_SMALL any more. 2000-11-28 03:18:18 +00:00
jdolecek f6a7e12165 split linux signal code off locore.s 2000-11-27 22:29:26 +00:00
matt 37ca010efd Add generic ISA floppy support 2000-11-27 21:50:13 +00:00
jdolecek 67e67ac7dc Replace the (no longer working) check for tp->t_line == 0 with
tp->t_linesw == linesw[0]. Hopefully this is correct.
2000-11-27 18:39:04 +00:00
matt 5cbf7c7a23 No longer needed. We use MI version now. 2000-11-27 17:04:13 +00:00
matt a23d349584 Use MI md_root.c 2000-11-27 17:03:12 +00:00
tsutsui 6ca08c284e More fixes for linesw changes. 2000-11-27 15:28:41 +00:00
tsubai 0562490a63 Change base address to 0x800000. 2000-11-27 14:41:47 +00:00
pk cd9bcb98dc Undo most of rev 1.94 to make a.out emulation work again. 2000-11-27 13:31:18 +00:00
tsutsui 936191481d Prepare cpu_exec_ecoff_probe() for mips which just returns ENOEXEC,
as per discussion on tech-kern.
2000-11-27 13:25:24 +00:00
tsubai e5c94432d1 Reduce PAGER_MAP_SIZE to 4MB. 2000-11-27 11:37:33 +00:00
nisimura cdc7cdbcde Back out the change of the way to grab proc0's USPACE. It produces
kernel lock up in mach_init() by a reason unknown to me.
2000-11-27 08:57:08 +00:00
soren 66864e1f05 Removed increased BUFCACHE/BUFPAGES. 2000-11-27 08:55:41 +00:00
soren 52e9098c1d arch/mips is used now. 2000-11-27 08:54:02 +00:00
matt 70e44cf083 Rework bus_space to conform the PReP I/O & MEM limits. Add a few debugging
printfs concerning interrupts.
2000-11-27 08:53:54 +00:00
chs aeda8d3b77 Initial integration of the Unified Buffer Cache project. 2000-11-27 08:39:39 +00:00
chs c29a1b4461 allow ports to override PAGER_MAP_SIZE in machine/vmparam.h.
some ports (such as arm32) don't have enough KVA for the
increased default size once the UBC mapping is also present.
2000-11-27 08:19:50 +00:00
soren a5dad0db13 Correct a few cpu/fpu ids. 2000-11-27 06:38:54 +00:00
nisimura fdfe3556de Use only one TLB entry to wire down process's USPACE since it's
now guranteed to be aligned on 8KB boundary in kernel virutal
address.  Retain one more free TLB entry.
2000-11-27 06:37:32 +00:00
soren d800267698 Forgot to commit bounds_check_with_label(). 2000-11-27 06:00:09 +00:00
soren 38a44e0d8f Consistently use pmap_steal_memory() to allocate USPACE. 2000-11-27 05:57:25 +00:00
nisimura 05960017b2 Fix an typo by cut'paste work in the previous change. 2000-11-27 05:17:06 +00:00
nisimura f6562a41a3 Use pmap_steal_memory() to glab proc0's USPACE. 2000-11-27 05:12:32 +00:00
jdolecek cee3939088 comment out entries accidentaly committed together with previous
change
2000-11-26 20:48:39 +00:00
bjh21 eb0dc305da Insert clock low after ack bit. 2000-11-26 18:53:12 +00:00
bjh21 f801b80192 Zero-length reads seem to confuse the chip, so don't do that. 2000-11-26 18:12:36 +00:00
ad 57ea462da2 lsu -> ld, by popular request. 2000-11-26 17:44:02 +00:00
chs 63d8906bac const poisoning. 2000-11-26 15:13:50 +00:00
bjh21 2906c5057a Regen. 2000-11-26 15:04:22 +00:00
bjh21 22b88b3d3e Add HCCS IDE interface, from Kjetil B. Thomassen <kjetil@thomassen.priv.no>. 2000-11-26 15:03:25 +00:00
jdolecek c969c9196c make this usable also standalone 2000-11-26 12:02:16 +00:00
jdolecek 17a9fd0da5 split m68k SunOS and SVR4-specific sigcode.s code to sunos_sigcode.s
and svr4_sigcode.s respectively
adjust individual m68k port's locore.s to include new sigcode files if
appropriate
2000-11-26 11:47:23 +00:00
jdolecek bc435e5551 rename COMPAT_locore.s to COMPAT_sigcode.s - that is more suitable name for it
make the files compilable within LKM
2000-11-26 11:18:20 +00:00
takemura 3c9d9276dc Add new powerhook argument values, PWR_SOFTSUSPEND, PWR_SOFTSTANDBY and
PWR_SOFTRESUME. Apm calls powerhook with the values in normal interrupt
priority level while others are protected with splhigh().
2000-11-26 11:08:57 +00:00
takemura 5692823cae You can map mq200 registers as well as frame buffer.
(This little change has already contains release 1.5 branch by my mistake)
2000-11-26 08:33:43 +00:00
sato b45e183988 hardware accelarate function parameters turn to dot base. 2000-11-26 06:21:16 +00:00
thorpej 484693d993 `babylon' no longer exists. 2000-11-26 04:59:03 +00:00
thorpej dce417005a Kernel config file for basil.shagadelic.org, my API UP1000 devel machine. 2000-11-26 04:58:07 +00:00
itojun c40695f5ad a complete kernel for wildlab LAMB, http://www.wildlab.com/. 2000-11-26 03:28:41 +00:00
scw a643cf07a5 Add the memory controller ASIC driver. 2000-11-25 21:46:42 +00:00
scw 46d0d060fd Oops, missed a trailing comma ... 2000-11-25 21:06:12 +00:00
scw eff5b700a8 Enable compatibility for earlier releases. 2000-11-25 20:35:32 +00:00
scw ee58c485bf Add CD9660, plus some general cleanup. 2000-11-25 19:33:39 +00:00
scw 2aa72fcec2 Include the cd9660 filesystem and cd(4). 2000-11-25 19:21:50 +00:00
scw 5529847b99 Don't base this on the GENERIC config file; there's too much
unnecessary bloat in it for an installation kernel.
2000-11-25 19:18:46 +00:00
scw 636c4f5c12 G/C some long-obsolete functions. 2000-11-25 18:49:59 +00:00
bjh21 70562420ce Support multiple files on the command line (they're catted together).
Ditch a.out support while we're here (to save updating it).
2000-11-25 18:30:23 +00:00
tsubai 2fb7179aaf Add KERNEL_LOCK (et al.) to run MULTIPROCESSOR kernel on a single cpu system. 2000-11-25 15:49:43 +00:00
bjh21 98253a5467 It seems that all versions of BBC BASIC V can load a text file specified on
the command line, so we don't need to tokenize it first.

This makes it less than clear what file type BBBB should have, so let's not
make an issue of it.
2000-11-25 13:32:51 +00:00
scw 73e60771ab Fix the code which probes the memory controller ASICs. We can now
deal with the 2nd one not being present.
2000-11-25 11:25:07 +00:00
nisimura 554a1bfcc6 Update and clarify the comment description of how disklabel is managed. 2000-11-25 07:58:07 +00:00
minoura 9f9181afde Use objcopy instead of dd. This will work after we'll switch to ELF.
Using command directly breaks cross compilation.  Use macro instead.
2000-11-25 05:27:19 +00:00
tsutsui add41a3fee Make sure to return PROM prompt even if loading kernel fails halfway. 2000-11-25 04:42:06 +00:00
matt f80f1b8624 Preliminary AltiVec support. 2000-11-25 03:03:35 +00:00
matt 4c6aaf87d2 Add placeholder for AltiVec support file. 2000-11-25 03:01:40 +00:00
matt 6d256b4cca Preliminary AltiVec support 2000-11-25 03:00:48 +00:00
matt 6b0877113f Some preliminary ALTIVEC support. 2000-11-25 02:59:34 +00:00
chs b5142d6841 increase PAGER_MAP_SIZE to 16MB and move it to uvm_pager.h
since the alpha and mips pmaps use it.
2000-11-24 22:41:38 +00:00
sato 446d4c8a9f delete not HPCFB_TVOPTIM codes. 2000-11-24 22:05:13 +00:00
sato bda86c3118 update experimental HPCFB_JUMP codes.
(but not completely yet)
2000-11-24 21:58:06 +00:00
tsubai 4e01e6de8b When fatal trap occurs, enter DDB with trapframe rather than just "Debugger()". 2000-11-24 21:49:06 +00:00
scw 2129dff0f7 The ramdisk now needs 1024 blocks. 2000-11-24 19:40:15 +00:00
scw bf5610e667 Some minor optimisations. 2000-11-24 14:49:44 +00:00
tsutsui 6d8f55d932 Use single_inst_b{set,clr}_b() macro defined in m68k/asm_single.h. 2000-11-24 14:08:14 +00:00
tsutsui 5ed7dadbfb Enable rnd and comment out CD9660. (no SCSI support on news1200 yet) 2000-11-24 13:05:31 +00:00
tsutsui be69cb38ee Add/enable COMPAT_SUNOS. It actually works on news68k. 2000-11-24 12:58:17 +00:00
tsutsui 500525029a PAGE_SIZE on sun3/sun3x is now constant;
Use uvmexp.pagesize itself for its initialization.
2000-11-24 11:57:45 +00:00
scw 55ecb0e64a `emul_sunos' is now declared in the appropriate header file. 2000-11-24 10:29:21 +00:00
scw dcd1f30fb8 First cut of a driver for the Memory Controller ASICs found
on mvme16x and mvme17x boards.
2000-11-24 09:42:09 +00:00
matt ca7a0ec817 Make this compile again. 2000-11-24 09:39:37 +00:00
scw 7d191ffe77 Revamp the bus_space(9) implementation:
. use a structure for the tag instead of an integer constant,
 . add bus_space_{peek,poke}_N() (and G/C `badaddr()'),
 . fix a few drivers which have dependencies on the implementation.
2000-11-24 09:36:40 +00:00
scw a70c48655b Add a bus_space_tag_t field to the mvmebus_softc structure and
initialise/use it in the ASIC-specific back-ends.
2000-11-24 09:27:42 +00:00
scw 06e91c089b Replace the inline C versions of bus_space_{read,write}_N() with
inline assembler. This generates significantly more efficient code,
and trims ~1KB off the size of an mvme68k GENERIC kernel...
2000-11-24 09:05:55 +00:00
scw 7bd36d34a1 Use the MI md_root.c. 2000-11-24 08:54:08 +00:00
minoura e6a960146a Use MI md_root.c. 2000-11-24 06:55:22 +00:00
chs fa19fe52db adjust the spinlock macros in the non-MULTIPROCESSOR, non-LOCKDEBUG case
so that gcc will think that static spinlock are used.
this allows us to remove the ugly conditionalization of
static spinlock declarations.
2000-11-24 03:59:07 +00:00
simonb f91f0ea65c Make this compile again (unterminated `#if' conditional). 2000-11-24 02:21:56 +00:00
chs bac6420b96 fix reversed keywords in previous commit. 2000-11-23 21:58:54 +00:00
chs c01c2504a2 examine the PDE in addition to the PTE when checking for valid mappings. 2000-11-23 21:44:52 +00:00
nisimura c2c8f26967 - Nuke xasc_ioasic.h and xasc_pmaz.h as no code uses the symbols they define.
- Hide #include <pmax/dev/device.h> for "pmax oldscsi" inside
  #if NRZ > 0 || NTZ > 0.
2000-11-23 09:44:14 +00:00
matt 1420862fba Add comments and AltiVec reg state. 2000-11-23 02:35:10 +00:00
msaitoh 007d059977 - fix \n conversion from \n\r to \r\n
- cleanup
2000-11-22 21:14:25 +00:00
msaitoh d077acc4e9 const struct sysent 2000-11-22 21:12:28 +00:00
wiz b03725b863 Change OF_nextprop to match prototype change to void *
(Please don't change prototypes without changing the corresponding
functions!)
2000-11-22 18:18:32 +00:00
jdolecek 818062390e Intel recommends to print cpu serial number as six dash-separated nibbles
(XXXX-XXXX-XXXX-XXXX-XXXX-XXXX), make it so
2000-11-22 16:41:56 +00:00
nonaka 41b0daf516 - Add some PCMCIA devices.
- Commented out USB devices.
2000-11-22 16:15:44 +00:00
nonaka ea05f33502 Set intrtype[irq] if interrupt type is IST_NONE. 2000-11-22 16:07:16 +00:00
tsubai 1931e71852 Constify struct sysent. 2000-11-22 14:00:46 +00:00
leo f4420dcb03 Revert previous change. I cannot see why this ever worked... Pointed out
by Steve Woodford.
2000-11-22 12:39:03 +00:00
tsutsui 4b61041326 e_sysent in struct emul has been const'fied. 2000-11-22 11:47:17 +00:00
matt 03b44427da Make assym.h be generated again
Add pcmcia support to files.prep
Add isa_intr_alloc support.
2000-11-22 08:55:35 +00:00
thorpej 534e7d4454 Several changes, which get us generally further along with
multiprocessor support:
- Implement MP-safe halt.
- Make the FPU saving code more like Bill's on the i386 MP branch.
  XXX This code will no doubt be revisited again.
- Pass the cpu_info and trapframe to IPI handlers, saving some work
  in the handlers themselves, and also making it possible for the
  "pause" handler to reference register state for DDB.
- Add "machine cpu" to DDB, making it possible to reference other
  CPUs registers (and thus get e.g. a traceback) from whichever
  CPU is actually running the debugger.
- Garbage-collect "machine halt" and "machine reboot" DDB commands.
  They don't have a prayer of working properly in multiprocessor
  kernels, and didn't really work all that well in uniprocessor kernels.
2000-11-22 08:39:46 +00:00
thorpej 6cbdf24c45 Add a debugging printf, commented out by default. 2000-11-22 07:44:01 +00:00
enami 9c0026f5fa s/char \*/const &/ so that this file compiles again. 2000-11-22 04:28:13 +00:00
itojun 1c06733c6b constify 2000-11-22 03:54:01 +00:00
thorpej 7231516137 Just access the trapframe directly for DDB registers. 2000-11-22 02:25:52 +00:00
thorpej 7f6303947a Restructure the way registers are presented to DDB, to make it
easier to support reading registers from other CPUs.
2000-11-22 02:03:48 +00:00
bjh21 564a044dcb Using bsd.man.mk looked silly without a man page. Use bsd.prog.mk without
PROG instead.
2000-11-22 00:36:22 +00:00
bjh21 fc955e1104 Move BBBB out of the kernel tree so other architectures can see it. 2000-11-22 00:32:53 +00:00
bjh21 c4eb6c6325 Rudimentary manual page for BBBB. 2000-11-22 00:18:47 +00:00
bjh21 986c78ced4 New mechanism for building the tokenised version of BBBB under NetBSD. This
saves us having to keep a uuencoded version around.
2000-11-21 23:47:37 +00:00
bjh21 99899665e8 Move of BBBB to a more sensible location.
Look in sys/arch/arm26/boot/BBBB,fd1 for old commit messages.
2000-11-21 23:44:24 +00:00
tsutsui 161004f8c3 s/struct const sysent/const struct sysent/
(BTW, luna68k was missed in emul/execsw changes?)
2000-11-21 23:19:42 +00:00
scw f86349723d Put the call to mvme68k_init() back where it was originally. 2000-11-21 22:08:04 +00:00
jdolecek 09c6390523 make trap_type[] const 2000-11-21 21:27:04 +00:00
jdolecek 3323852a95 put compat-specific locore code to separate *_locore.s files 2000-11-21 21:13:23 +00:00
chs 0ac52aaf1d remove MD functions for printing vnodes and buffers since there are
MI versions now.
2000-11-21 16:34:52 +00:00
ad 20ef6ae40a Fix netbooting on the 2100/3100. Partially from Thilo Manske
<Thilo.Manske@HEH.Uni-Oldenburg.DE> in PR 11212.
2000-11-21 14:21:36 +00:00
ad bd4ff2a804 PMIN vs. PMAX in boot message. Pointed out by Thilo Manske
<Thilo.Manske@HEH.Uni-Oldenburg.DE> in PR 11212.
2000-11-21 14:19:10 +00:00
tsutsui 2c7e91a09e Define proper macros for FP frame offsets rather than magic numbers. 2000-11-21 13:54:13 +00:00
tsutsui 20494c8f05 Pull in dev/i2o/files.i2o, which is required by files.pci. 2000-11-21 13:34:57 +00:00
scw f33cb83f53 Call zs_set_speed() to calculate the initial timing constants. 2000-11-21 11:41:37 +00:00
chs c588bbbe76 add a missing newline in a printf(). 2000-11-21 08:14:17 +00:00
chs 7af6378fca two changes to arm32 fault handling:
- when pcb_onfault is set, allow UVM to attempt to resolve permission faults
   as well as translation faults (rather than immediately invoking the
   onfault handler for permission faults).  this is needed for UBC since
   it will be normal for uiomove() to fault on read-only mappings which
   will be made writable by the pager.
 - clear pcb_onfault before calling uvm_fault() and restore it afterward.
   if the fault handler generates a pagefault, we'd like to panic rather
   than invoking the onfault handler.
2000-11-21 06:30:05 +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
soren 4927de268a Adjust for p_emul change. 2000-11-21 02:26:07 +00:00
jdolecek baae0324b9 restructure struct emul and execsw, in preparation to make emulations LKMable:
* move all exec-type specific information from struct emul to execsw[] and
  provide single struct emul per emulation
* elf:
  - kern/exec_elf32.c:probe_funcs[] is gone, execsw[] how has one entry
    per emulation and contains pointer to respective probe function
  - interp is allocated via MALLOC() rather than on stack
  - elf_args structure is allocated via MALLOC() rather than malloc()
* ecoff: the per-emulation hooks moved from alpha and mips specific code
  to OSF1 and Ultrix compat code as appropriate, execsw[] has one entry per
  emulation supporting ecoff with appropriate probe function
* the makecmds/probe functions don't set emulation, pointer to emulation is
  part of appropriate execsw[] entry
* constify couple of structures
2000-11-21 00:37:49 +00:00
soren 1bbc3bd9b5 Same as sys/dev/md_root.c. 2000-11-21 00:18:03 +00:00
soren 0bb338521a Use dev/md_root.c. 2000-11-21 00:17:33 +00:00
soren d1b07f4fee Same as sys/dev/md_root.c. 2000-11-21 00:17:08 +00:00
soren 36ae7c2b02 Use dev/md_root.c. 2000-11-21 00:16:33 +00:00
soren 263f913967 Remove obsolete comment. 2000-11-21 00:15:20 +00:00
thorpej f595d8e741 Ooops, do the last only if MULTIPROCESSOR. 2000-11-20 21:18:07 +00:00
thorpej 13c94ca56c We've fixed enough bugs that we can actually acquire the scheduler
lock, jump into the idle loop, and run user code!  Yippee!
2000-11-20 20:40:17 +00:00
thorpej b37faa6ca5 Protect microtime_slock appropriately. 2000-11-20 20:37:52 +00:00
thorpej e12f731db5 On the Alpha, interprocessor interrupts come in at the same priority
as normal device interrupts.  Because of this, we won't get IPIs while
servicing such interrupts.  This can lead to the following deadlock
scenario as reported by Bill Sommerfeld:
- Process runs on cpu1, but has FP state on cpu0.
- Process executes FP-using insn, causing an FP trap, which causes
  the kernel lock to be acquired.
- At roughly the same time, cpu0 receives a device interrupt, and attempts
  to acquire the kernel lock, which blocks since cpu1 already has it.
- cpu1 sends cpu0 a SYNCH FPU IPI, and waits for cpu0 to release its
  FP state.
- Since cpu0 cannot notice the IPI until it has processed the device
  interrupt, which it cannot do because it cannot acquire the kernel
  lock, we have deadlock.

Solve the problem by adding a spinlock interlock release hook which
checks for pending IPIs and processes them.

Idea from Bill Sommerfeld.
2000-11-20 20:17:13 +00:00
jdolecek 0630488eda fix typo 2000-11-20 20:07:36 +00:00
jdolecek 3b15e411a3 add moxa0 at isa entry, marked as experimental
This was not added also to other config files primarily because the
driver is not properly tested yet; this entry is primarily meant as an example
for those brave souls who want to try moxa.
2000-11-20 19:53:43 +00:00
scw b6f0a678dd Add support for the m68060-based machines: MVME-172 and MVME-177.
CPU support taken from a combination of NetBSD/amiga and NetBSD/x68k.

At this time, MVME-172 works but MVME-177 is untested. Since the '177
is otherwise identical to the MVME-167, this should *just work*.
2000-11-20 19:35:28 +00:00
thorpej fdfb847e3e Make ci_ipis volatile. 2000-11-20 19:25:43 +00:00
thorpej 7f059c8e69 Move IPI processing into a separate function. 2000-11-20 19:24:36 +00:00
thorpej 5a22e57dc3 Print the CPU ID while dumping trap info. 2000-11-20 15:33:39 +00:00
tsubai 11b48d8a4d Thermal Management Interrupt is available on 750, too. 2000-11-20 15:16:04 +00:00
tsutsui 2cd77d5700 Fix swapped keycode for '[' and ']'. 2000-11-20 14:55:15 +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
thorpej 2f1e131332 Delete a block of code that was intended to get the second
CPU to handle interrupts, but prevents a whole slew of things
from working properly on the second CPU.  It is no longer
necessary now that several other bugs have been fixed.
2000-11-20 03:15:15 +00:00
thorpej fe5b367ce6 In Idle(), only switch to the idle PCB if we're not already running
on it, and make sure to deactivate the old process's address space,
as this will not otherwise be done by cpu_switch() later once we're
on the idle PCB.

Also, update some comments related to when s0 (i.e. the old process)
is NULL in the context switching code.
2000-11-20 02:44:45 +00:00
soren 046ce58634 Enable com at cardbus. 2000-11-20 02:00:46 +00:00
jdolecek 2faa9db8c1 cosmetic change in brand string handling (NULL vs. "")
drop Xeon from PIII Cascades entry, it should be handled by the brand id
support (pointed out by Scott Telford in private e-mail).
2000-11-19 23:38:22 +00:00
matt 95a8447ccf Add G4 specific exceptions (include AltiVec). 2000-11-19 20:48:20 +00:00
matt bb71a6b332 Add AltiVec VSCR definitions. 2000-11-19 20:41:04 +00:00
sommerfeld 2a0dca4bec Correct conditionalization of last change. 2000-11-19 20:11:12 +00:00
sommerfeld 8074b0b0b2 MULTIPROCESSOR: context switch to cpu's idle pcb before unlocking the
scheduler in idle so our stack doesn't get stolen out from underneath us.
2000-11-19 20:08:36 +00:00
sommerfeld c0c9c552c0 Fix obvious typo (don't mark current cpu as not running when doing a
broadcast IPI).
2000-11-19 20:05:25 +00:00
matt b1e1cfdb4a Add AltiVec VEC bit. 2000-11-19 19:52:37 +00:00
thorpej 87819535b2 Synch cpu_hatch() with the i386:
- print the same style message when the CPU is running.
- Initialize ci->ci_schedstate.spc_runtime on the CPU.
2000-11-19 19:18:19 +00:00
thorpej 69a3a857be As a temporary measure, protect microtime() with a simple lock.
XXX Needs to be rewritten from scratch.
2000-11-19 19:16:44 +00:00
mrg 5d04f7b69d update to reality. sync with GENERIC32. 2000-11-19 15:23:55 +00:00
mrg 1368967d8c fix some comments. 2000-11-19 15:22:51 +00:00
tsutsui ae33b9bc92 More cosmetics.
BTW, why these two "generic" config files exist?
2000-11-19 14:23:34 +00:00
tsutsui d805c3822e Remove "rnd is EXPERIMENTAL" comment. 2000-11-19 14:14:31 +00:00
tsutsui 523ec808a6 - Add bba* at ioasic?
- Some cosmetics
2000-11-19 14:10:56 +00:00
tsutsui 13c5a51b02 Add some newer stuff from GENERIC and enable rnd. 2000-11-19 14:03:39 +00:00
tsutsui f6c12f31f0 Sync with GENERIC. 2000-11-19 13:46:29 +00:00
thorpej b9ad1f75b9 Make VM_MAX_KERNEL_ADDRESS end on a page boundary. 2000-11-19 03:16:55 +00:00
thorpej 561db1fb7e Implement pmap_growkernel(). 2000-11-19 03:16:34 +00:00
mrg e97f9e9f7a use OpenFirmware, not prom version 0, operations. eeprom(8) works now. 2000-11-18 23:45:05 +00:00
mrg a2ea64e265 sync with sparc port. add support for OF_setprop(), OF_nextprop(),
OF_interpret() and OF_milliseconds().
2000-11-18 23:43:06 +00:00
scw a29dff3290 Fix a braino in the last commit. 2000-11-18 22:46:07 +00:00
scw 4b0eb0e2dd Allow a degree of tolerance when calculating the baudrate timing constant. 2000-11-18 22:34:25 +00:00
tsutsui ed94d05b50 Clear %fp to terminate backtrace on gdb. 2000-11-18 20:46:28 +00:00
soren 60239485e8 Some CRIME definitions. 2000-11-18 19:33:49 +00:00
soren 4227c8ce3a Use ETHER_ADDR_LEN. 2000-11-18 19:32:34 +00:00
thorpej 137c030d5b Count individual interprocessor interrupts -- it's good to know where
they all come from.
2000-11-18 19:25:35 +00:00
thorpej 34f24f4819 Make sure that the cpu_info points at the correct softc on
single-processor kernels running on multi-processor systems.
2000-11-18 17:45:31 +00:00
sommerfeld 859adc84de Loading the cpu_info value into the kgp for the new cpu isn't likely to work
very well.
2000-11-18 16:21:37 +00:00
lukem 9f10280ff3 OF_nextprop(): change 'char *nextprop' -> 'void *nextprop', in line with
pk's change to sys/dev/ofw/openfirm.h rev 1.15.
2000-11-18 12:15:50 +00:00
thorpej 73265fa0c9 Duh, don't need SGMAP-related includes on this chipset. 2000-11-18 05:56:20 +00:00
mrg d6d4159b1a s/register// 2000-11-18 03:52:50 +00:00
mrg 40095eb6a1 struct pcb's lastcall is const char * 2000-11-18 03:51:14 +00:00
mrg 0485f611f1 remove dead debugging code. 2000-11-18 03:49:38 +00:00
lukem a687c7deac pull up stuff changed in GENERIC from 1.370 - 1.377, appropriately
commented out if it's not relevant to a laptop
2000-11-18 02:08:30 +00:00
mrg 215d0d2dcd pull over from sparc port's mem.c:
>revision 1.26
>date: 2000/11/13 15:31:44;  author: pk;  state: Exp;  lines: +10 -1
>Detect "EOF" conditions on the memory-special files.
2000-11-17 23:18:53 +00:00
thorpej 72a145bd5e I have long since upgraded the boot block on my test system. (Actually,
I have an entirely different test system now.)
2000-11-17 22:47:30 +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
scw d00258d484 bus_dmamem_map() expect a cpu-relative physical address... 2000-11-16 19:12:20 +00:00
thorpej 40460ae8eb Need to provide CACHELINESIZE in _STANDALONE environments, too. 2000-11-16 19:02:33 +00:00
jdolecek 97669de104 make i386_nocpuid_cpus[] and i386_cpuid_cpus[] const - this pushes
another ~1.4KB to text section
2000-11-16 17:00:17 +00:00
jdolecek def6d1b4ac Newer Intel PIII processors also make available Brand ID value through
cpuid instruction, which is used to differentiate between Celeron, common PIII
and PIII Xeon; recognize it and print appropriate info if applicable

Information taken from Intel's (R)
Intel Processor Identification and the CPUID Instruction, AP-485
2000-11-16 10:19:02 +00:00
jdolecek a9ad986a90 Update cpuid table according to information sent by Scott Telford
in port-i386/11502, with only sligh change for Coppermine entry -
cpus with family 6, model 8 are not all Celerons, they can be
either common PIII, Xeon or Celeron
2000-11-16 09:06:17 +00:00
matt 9dd26cf7c4 It's hfs.c, not hfs. Add -I${.CURDIR} for objdirs. XXX hfs.c should
be integrated into libsa.
2000-11-16 07:36:04 +00:00
scottr 4db27b3da4 Enhance readability through consistent function parameter names and KNF.
There are no functional changes.
2000-11-16 07:04:12 +00:00
thorpej d96bb89daf Use <powerpc/powerpc/trap_subr.S> 2000-11-16 05:34:03 +00:00
thorpej 216902b8d2 Trap routines from the macppc port, to be used by other PowerPC
ports (only amigappc's differs).
2000-11-16 05:33:04 +00:00
thorpej eb04d01500 Add an lcsplx() ("splx for locore") like the other PowerPC ports
have.  This will allow us to share locore code with them.
2000-11-16 01:56:05 +00:00
scw 598ce19336 Doh! Revert all but the baudrate clock changes from that last commit;
a bunch of local stuff crept in.
2000-11-15 21:32:03 +00:00
jdolecek ea9f7ed6d5 introduce SIGACTION_PS() macro - this is similar to SIGACTION(), but works
for (struct sigacts *) instead of (struct proc *)
2000-11-15 21:13:58 +00:00
thorpej e6fa7f2fc8 Move the ISA DMA cookie into isadma_machdep.c. 2000-11-15 19:31:35 +00:00
thorpej 9298fd52fc Garbage-collect some more stuff. 2000-11-15 19:30:10 +00:00
pk 521b17daa6 Adjust OF_setprop() prototype. 2000-11-15 16:15:01 +00:00
pk 4a80a32735 Adjust setprop() prototype to match the one in dev/ofw/openfirm.h 2000-11-15 16:14:13 +00:00
pk 439b4b325a OF_getproplen(), OF_nextprop() and OF_setprop() prototypes are now in
dev/ofw/openfirm.h
2000-11-15 16:13:10 +00:00
pk 11eb59d511 Adjust setprop() prototype to match that in dev/ofw/openfirm.h 2000-11-15 16:12:01 +00:00
tsubai ced4cea08e Fix an uninitialized variable reference. 2000-11-15 15:01:14 +00:00
tsubai 654fcfa344 Remove an unused variable. 2000-11-15 14:43:44 +00:00
tsubai 0d339b0df5 Screen console works now. 2000-11-15 14:29:40 +00:00
tsubai 9b85cc40d4 Keyboard and mouse support for news5000. 2000-11-15 14:04:05 +00:00
scottr 96cb29b773 As was the original intent a long, long time ago -- but in this galaxy, and
in fact on this planet -- generate a SIGILL for user-mode A-line traps.
The core of this change is taken verbatim from PR 10511, submitted by
Christian Bauer.
2000-11-15 07:15:36 +00:00
scottr 1609858811 The Cuda-based ADB hardware has the ability to queue some commands and
return control to the main CPU before completing the ADB transaction.
Double the adb_op_sync() timeout as a result.  Fixes PR 11310.
2000-11-15 06:35:51 +00:00
enami 038ca0a146 Make isa_machdep.c compile again. 2000-11-15 02:00:31 +00:00
enami 1ef516e9be Pull in uvm_extern for PAGE_SIZE. 2000-11-15 01:59:35 +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
matt e720f8addf Add MFS and vnd. 2000-11-15 00:46:35 +00:00
matt dbe8de94a8 back out my change powerpc/conf/files.ofw. Enable the inclusion of
dev/ofw/files.ofw on macppc.  Add openfirm to ofppc/conf.c
2000-11-15 00:39:31 +00:00
matt 39dc5fc58b Add openfirm pseudo-device. 2000-11-14 23:42:35 +00:00
thorpej 990d23039d NBPG -> PAGE_SIZE. 2000-11-14 22:55:51 +00:00
thorpej ec0069dd37 NBPG -> PAGE_SIZE 2000-11-14 22:55:05 +00:00
matt 8ba706bdfd Add rnd & openfirm to POWERMAC
Add openfirm and commmented-out firewire stuff to GENERIC
2000-11-14 22:33:24 +00:00
matt ca735c9a04 Add initial support dual-CPU G4. At least finds 2nd CPU. 2000-11-14 21:55:25 +00:00
matt 6e88c0d0d6 Add a openfirm entry to conf.c 2000-11-14 21:46:09 +00:00
matt 58645ba248 Add support for /dev/openfirm.
Add OF_nextprop support.
2000-11-14 21:22:43 +00:00
pooka 56d104de33 add I2O to make config work again 2000-11-14 20:28:22 +00:00
augustss eb9736c09a Add uscanner. 2000-11-14 19:52:04 +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
thorpej eff2f3d04f We use 4K pages on the x86k. Make PAGE_SIZE and friends into
compile-time constants.
2000-11-14 19:47:25 +00:00
thorpej c9ff0b7af1 Sun3 and Sun3x both use 8K pages. Make PAGE_* and friends into
compile-time constants.
2000-11-14 19:34:26 +00:00
thorpej fc082857f5 '532 has 4K pages. Make PAGE_SIZE and friends into compile-time
constants.
2000-11-14 19:31:51 +00:00
thorpej 3d2726d992 We use 4K pages on the NeXT. Define PAGE_SIZE and friends to be
compile-time constants.
2000-11-14 19:29:00 +00:00
thorpej 091d40d586 We use 4K pages on the news68k. Make PAGE_SIZE and friends into
compile-time constants.
2000-11-14 19:23:07 +00:00
thorpej ecf0470012 We use 4K pages on the mvme68k. Override PAGE_SIZE and friends to
be compile-time constants.
2000-11-14 19:12:58 +00:00
thorpej 9f60ecd809 We use 4K pages on the mac68k. Make PAGE_SIZE and friends into
compile-time constants.
2000-11-14 19:07:34 +00:00
thorpej 186d9e105e We use 4K pages on the hp300. Make PAGE_SIZE and friends
compile-time constants.
2000-11-14 19:03:22 +00:00
thorpej e6da7eebba We use 8K pages on the Atari. Make PAGE_SIZE and friends into
compile-time constants.
2000-11-14 19:01:09 +00:00
thorpej f74dfc7755 We use 8K pages on the Amiga. Make PAGE_SIZE and friends into
compile-time constants.
2000-11-14 18:58:29 +00:00
thorpej cb38ab39ab We use 4K pages on MIPS systems (see mips_param.h), so override
PAGE_SIZE and friends to be compile-time constants.
2000-11-14 18:55:16 +00:00
thorpej 10b31e1ebc The i386 page size is fixed -- override PAGE_SIZE, et al, so that they
are compile-time constants.
2000-11-14 18:01:54 +00:00
tsubai f744e6327a Correct VRAM size. 2000-11-14 15:32:03 +00:00
kleink a5a6bbd1a8 Defopt BLINK. 2000-11-14 11:34:51 +00:00
tsubai e3ae93dfd4 Add hfs support. Currently this layer simply throw the request to the OF
(and the OF recognizes HFS).
2000-11-14 11:25:34 +00:00
matt edc0af8cd3 Add OF_nextprop and required conf-glue for /dev/openfirm. 2000-11-14 07:13:02 +00:00
thorpej 45804ccf0e A respectable GENERIC, loosely based on the macppc GENERIC. 2000-11-14 06:01:09 +00:00
tsubai 03fa172a01 No longer used. 2000-11-13 19:05:58 +00:00
abs d72a269feb If we only ever have a strongarm CPU, use
makeoptions    COPTS="-O2 -march=armv4 -mtune=strongarm"
some files previously had
	makeoptions    COPTS="-O2 -march=strongarm -mtune=strongarm"
some had no option at all
2000-11-13 18:40:34 +00:00
tsubai a564a7a2a9 Switch to wscons. 2000-11-13 16:48:41 +00:00
jdolecek ec93c3dd25 when evaluating CPU speed, make the wait 0.1s instead of 1s - the accuracy
difference is like 0.008% on my system and the delay is now almost unnoticable:)
Discussed with Jason Thorpe, Frank van den Linden.
2000-11-13 16:40:40 +00:00
pk db6832a4b6 Detect "EOF" conditions on the memory-special files. 2000-11-13 15:31:44 +00:00
minoura 21e684b743 New line discipline. 2000-11-13 15:20:28 +00:00
minoura fd524293aa Look at opt_m680x0.h to determine whether to use -m68060 compiler option,
since options M68060 (etc.) is now defopt'ed.
Pointed out by NISHIMURA Takeshi <nsmrtks@comd.nara.sharp.co.jp>.
Use -m68020-60 instead of -m68060 to ensure not to use new instructions.
2000-11-13 14:47:14 +00:00
pk 84ee07379b Remove left-over turds from previous __P() cleanup. 2000-11-12 21:07:21 +00:00
mycroft 63270df506 Sync with GENERIC. 2000-11-12 06:52:37 +00:00
pk 258784289c This file is no longer needed; it's superseded by the MI mk48xx driver. 2000-11-11 12:34:22 +00:00
pk d80d0a8b06 Print host ID in hex. 2000-11-11 12:24:07 +00:00
pk f88b137bd5 De-__P() this file. 2000-11-11 12:19:20 +00:00
pk 53c656364f Switch to MI mk48xx and intersil7170 time-of-day clock drivers. 2000-11-11 12:14:03 +00:00
pk 109cb0fd5e Rename storage for the sun4 idprom structure to `sun4_idprom_store'. 2000-11-11 12:12:46 +00:00
scw d7b439dff5 udp.c is now needed in SRC_sa. 2000-11-11 11:36:17 +00:00
pk 0d4a68ac9b Pull in the mk48txx and intersil7170 drivers. 2000-11-11 11:19:52 +00:00
sato 47ee1d1c1f update vrc4172 pwm unit codes.(but not yet completly) 2000-11-11 10:08:12 +00:00
tsutsui 96deb0588d Reduce NKMEMPAGES_MIN_DEFAULT. 2000-11-11 09:05:09 +00:00
sato c8c49f7222 - vrc4172 address map definisions.
- vrc4172 gpio/ucy/pcs/pmu/pwm register definitions.
- vrc4172 pwm driver (not yet completely)
2000-11-11 04:42:08 +00:00
eeh efaf3dbb74 Remove unnecessary header file that causes linker issues. 2000-11-10 17:47:55 +00:00
hannken 0ba0592864 Pull in dev/i2o/files.i2o. 2000-11-10 17:09:15 +00:00
eeh 132d16957c Clean up config and fix things so kbd.h is generated even w/no keyboard. 2000-11-10 16:05:40 +00:00
mrg 3ea4c67b6b remove unused variable 2000-11-10 11:57:26 +00:00
itojun 05b2e0b151 /t_line/t_linesw (typo) 2000-11-10 11:08:32 +00:00
enami ce78591ae1 Cometic change; keep the code to process a second hunk closer to the first one. 2000-11-10 04:00:25 +00:00
enami 390c8adfbc Don't start next iteration while processing a first memory hunk since
there may be a second hunk.
2000-11-10 03:58:15 +00:00
scw 096c3068dd The ZS chips are actually clocked at 5MHz and 10MHz on mvme147 and
mvme162 respectively. Thanks to Neil Lubdan and a frequency counter. :-)
2000-11-09 19:51:57 +00:00
christos 0cf0dd1b80 put the suggestion message in uvm_page.c. There could be other reasons
why we are not able to find the end of memory.
2000-11-09 19:22:30 +00:00
kim 534a2fa4bb BIOS memory loading messages can be enabled with DEBUG_MEMLOAD.
Increase VM_PHYSSEG_MAX from 3 to 5 to avoid a panic.  Suggest
increasing VM_PHYSSEG_MAX in the panic message.
2000-11-09 17:34:51 +00:00
tsutsui dd7146d50b On sun3x, cpu_reboot() calls sunmon_abort() for PROM bug work-around,
but sunmon_abort() does not restore mon_crp so it causes problems.
Instead, call romVectorPtr->abortEntry (via trap14) from sunmon_halt()
and call it from cpu_reboot().

Now PROM boot command works properly even after halt on my 3/80.
2000-11-09 14:38:44 +00:00
tsutsui 487ec97958 Make it possible to enable/disable DC_BE and IC_BE bits in %cacr at runtime
and enable them on news1200/1400/1500 (which have no L2cache).
2000-11-09 14:17:19 +00:00
tsutsui 42c617c5c6 Oops, fix botch in previous. 2000-11-09 13:32:06 +00:00
tsubai eef7148644 Enable HID0_BTIC on 750 and 7400. 2000-11-09 11:58:09 +00:00
tsubai b11322a19d powerpc HID registers definitions (only HID0 for now). 2000-11-09 11:49:13 +00:00
thorpej aadf694c47 Fix a printf format. 2000-11-09 06:09:59 +00:00
thorpej 2951308623 Use 64-bit printf formats for paddr_t's. 2000-11-09 06:05:40 +00:00
thorpej e654e96593 Use 64-bit printf formats for paddr_t's (for arc port). 2000-11-09 06:02:40 +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
eeh ccf7f1446f Fix ILP32 bug in probe_get(). 2000-11-09 00:35:02 +00:00
eeh c3a041249b Enable clean up keyboard attach and make formatting prettier. 2000-11-09 00:06:47 +00:00
eeh 17b69d1833 Attach the sunkbd line discipline to zstty. 2000-11-09 00:02:54 +00:00
eeh 954a7b9824 Switch to sunkbd for both com and zstty. 2000-11-09 00:00:40 +00:00
eeh 71b0c155a0 Support for MI console magic framework. 2000-11-08 23:41:42 +00:00
eeh 052afce2a5 Use new MI console magic framework. 2000-11-08 23:40:31 +00:00
eeh 2b8da88d55 Remove debug printfs. 2000-11-08 23:24:12 +00:00
eeh c98778939f Fix tty initialization. From Arne H Juul <arnej@fast.no>. 2000-11-08 23:21:38 +00:00
is 588900ab75 Remove some of the bitrot. 2000-11-08 21:50:25 +00:00
ad 33c21c5f16 Sort. 2000-11-08 21:47:25 +00:00
ad 36e51ea5c5 Add I2O stuff. 2000-11-08 19:50:07 +00:00
ad e6be92ad99 Pull in dev/i2o/files.i2o. 2000-11-08 19:48:51 +00:00
tsubai a88f368787 defopt L2CR_CONFIG. 2000-11-08 17:53:46 +00:00
wrstuden 10c4684193 Use wdc_print_modes() so that we get to see what DMA modes
are used with a drive.
2000-11-08 17:50:44 +00:00
tsutsui 25c36dbbbf Remove an unneeded include. 2000-11-08 14:37:08 +00:00
msaitoh 3ba9161ab2 check whether SH4_PCMCIA is defined or not.
fixes PR. 11441.
2000-11-08 01:03:03 +00:00
msaitoh 5cb13a674a add shpcmcia_mem*() for SH4_PCMCIA 2000-11-08 01:01:22 +00:00
matt 4feeea4377 Reduce maxusers to 12 (this is a single user kernel after all).
Remove COMPAT_13 since it's not needed.
2000-11-07 17:37:07 +00:00
matt c62b76ce87 Switch from the old yucky ncr to the new good siop driver for 53c8xx. 2000-11-07 17:01:33 +00:00
nisimura dfb8c2a44f Fix a minor typo in the previous change of tp->t_linesw introduction. 2000-11-07 09:23:21 +00:00
thorpej 5929990d15 Add `bktr'. 2000-11-07 06:02:24 +00:00
augustss a00e309252 Fix speeling in cooment. 2000-11-06 22:10:03 +00:00
augustss 83bdca3a71 Print a newline after the random number speed message. 2000-11-06 22:01:31 +00:00
tsutsui f1403ed3e2 Protect netisr by splnet(). 2000-11-06 16:54:28 +00:00
tsubai 760413cb15 "xa" frame buffer driver. 2000-11-06 15:00:28 +00:00
tsubai 532d1c33c2 Enter ddb after ddb_init() if -d is specified. 2000-11-06 12:35:21 +00:00
tsubai 7bfead48b0 Rearrange console selection code.
Now usb keyboard is preferred to adb.
2000-11-06 12:33:07 +00:00
matt 5a55a6ac60 Add files.ieee1394 2000-11-05 23:19:41 +00:00
matt c135d1f282 Add files.ieee1394 2000-11-05 22:48:27 +00:00
thorpej c60d6ae15b Machine pmc.h 2000-11-05 22:28:00 +00:00
thorpej fa03f6e74d If we have a working cycle counter, compute the number of CPU
cycles in a second, and print the CPU speed.

Derived from similar code in FreeBSD.
2000-11-05 22:10:01 +00:00
onoe e83458422f First Prototype implementation of network interface part for IEEE1394 (if_fw).
Current status:
	Only OHCI chip is supported (fwohci).
	ping (IPv4) works with Sony's implementation (SmartConnect) on Win98.
	sometimes works but not stable.
Not implemented yet:
	IRM (Isochronous Resource Manager) functionality.
	Link layer fragmentation.
	Topology map.
More to do:
	clean ups
	MCAP
	charactor device part
	dhcp

There is no entry in GENERIC config file yet.
Follow sys/dev/ieee1394/IMPLEMENTATION to enable if_fw.
2000-11-05 17:17:12 +00:00
thorpej 584c0d1319 Use <dev/sysmon/sysmonconf.h> 2000-11-05 04:08:48 +00:00
thorpej f6099127b7 DELPHI -- one of my devel machines at Zembu Labs. This is an
example of how to configure the PC-Weasel driver into the kernel.
2000-11-05 03:51:14 +00:00
mhitch b38f4a0528 From Andrew Doran:
Fix 2100/3100 monochrome font display problem.  Characters were being
rendered as a mirror-image, which was a bit hard to read.
2000-11-05 02:53:20 +00:00
tsutsui 87ebc281b2 Print which IRQ is used for compatibility interrupts. (from i386) 2000-11-04 14:05:55 +00:00
wrstuden 029bdd3185 Adjust to change in tty line discipline handling. 2000-11-03 18:50:49 +00:00
tsutsui 99fde8d00d Call ttymalloc() to initialize struct tty in bmcnattach(). 2000-11-03 18:26:32 +00:00
ad 3d193b190b - Pequr -> Serverworks. It pays to do a cvs update first...
- Pay attention only to the low byte of config reg 0x44 on Serverworks chips,
  as Linux does.
- Compress duplicatated code.
2000-11-03 17:28:02 +00:00
simonb dde480911e Fix up line discipline change fallout. 2000-11-03 15:01:10 +00:00
tsubai 3d213115f4 Don't match if nintr > 12 (more than 3 cells). 2000-11-03 12:26:06 +00:00
tsubai bcb05a2f55 Get 6 interrupt cells from OF. 2000-11-03 12:20:55 +00:00
abs cee0acd601 Add
options         INET6           # IPV6
#options        IPSEC           # IP security
#options        IPSEC_ESP       # IP security (encryption part; define w/ IPSEC)
#options        IPSEC_DEBUG     # debug for IP security
In the case of VOYAGER, comment out INET6 also
2000-11-03 10:18:55 +00:00
tsutsui 343f07f2ac Fix some db_printf() format. 2000-11-03 06:27:34 +00:00
tsutsui ff3b4a0dab Switch to MI md_root.c. Tested on RAMDISK3X kernel. 2000-11-03 05:52:42 +00:00
tsutsui 6bf0b47164 Fix typo in the previous revision. (s/LIdle/Lidle/) 2000-11-03 05:28:28 +00:00
tsutsui 0750f35353 Fix printf formats in panic messages. 2000-11-03 04:52:27 +00:00
simonb be1c09c850 Use the canonical RF_PROTECTED_SECTORS #define hack. 2000-11-03 00:30:34 +00:00
mhitch 84f1b64ed1 VFB01 framebuffer is 2048 bits wide (but only displays the first 1024 bits
of each scan line).  Fix the fi_linebytes value to get the right size.
Fixes the 'compressed' display problem with the 2100/3100 monochrome display.
2000-11-02 23:37:08 +00:00
tsutsui 4ebb5f04e4 Fix typo in comment. 2000-11-02 21:18:03 +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
tsubai 2fe4478f19 Don't assume 12x22 font. 2000-11-02 14:25:51 +00:00
msaitoh d254039699 Add support stacktrace when a function contains "mov #n,r3; sub r3,r15" 2000-11-02 13:08:25 +00:00
thorpej 7c2615290b Add support for MS-DOS file system, but don't enable it by
default -- the resulting binary is too large, and thus does
not work.
2000-11-02 01:02:07 +00:00
eeh 8c3f6a0d10 Adapt to new line discipline scheme. 2000-11-02 00:37:56 +00:00
eeh 5d8e9b343a Adapt to the new line discipline scheme. 2000-11-02 00:35:04 +00:00
eeh bc7363329c Adapt to new line discipline scheme. 2000-11-02 00:26:35 +00:00
eeh b43f8c30e4 pmap_growkernel() needs to return the new end of kernel. 2000-11-02 00:24:05 +00:00
eeh 23a0c49039 Adapt to the new line discipline scheme. 2000-11-02 00:21:03 +00:00
tsubai 08e43d95ca Don't set M_HASFCS flag twice. 2000-11-01 20:21:58 +00:00
pk b37856ac0e Update comment accompanying the SUN4_MMU3L option. 2000-11-01 14:34:22 +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