uch
53c8f0ac37
if defined PCIBIOS_ADDR_FIXUP, use more safety extent.
2000-05-31 16:39:56 +00:00
uch
a99c8407ab
don't destroy PCI bus space extent for rbus_machdep.c
2000-05-31 16:38:55 +00:00
mycroft
d6f10e4b63
Use the frame pointer that matches the PC for the `trace/t' and panic (i.e.
...
have_addr==TRUE) cases.
2000-05-31 16:24:24 +00:00
he
e486b03d73
Add handling of "make release".
2000-05-31 14:31:23 +00:00
nonaka
0e18211390
Fix maxpartitions, pointed out by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>
2000-05-31 14:28:26 +00:00
leo
4b3b8618df
Fix some bugs in clkread(). These bugs caused strange time leaps.
2000-05-31 12:27:30 +00:00
pk
08d1e4928a
Initialize `ci_self' on all CPUs.
...
Check `cpuinfo' pointers in mp_pause_cpus() & mp_resume_cpus()
2000-05-31 12:26:15 +00:00
pk
504ed6e58b
Move switchexit() declaration in here.
2000-05-31 12:05:04 +00:00
pk
0985cc7d7e
Remove obsolete function declarations.
...
Move switchexit() to cpu.h
2000-05-31 12:04:29 +00:00
pk
fca92e02ab
Fix a couple of typos.
2000-05-31 11:23:21 +00:00
thorpej
8d5520dccf
- In the MULTIPROCESSOR case, initialize p_cpu before a process is
...
marked SONPROC.
- Fix a bug where all cpu_info structures except for the boot CPUs
would exist at both a CPU-local VA (CPUINFO_VA) and a gloal VA;
The boot CPU's existed only a CPUINFO_VA.
- Add a self-reference pointer to the cpu_info that references the
global address in the MULTIPROCESSOR case. Just allow it to reference
the `local' VA in the single-processor case, as CPUINFO_VA is global
enough when there's only one processor to care about. Change curcpu()
to return the global address.
2000-05-31 05:28:26 +00:00
thorpej
0d866249d4
- In the MULTIPROCESSOR case, initialize p_cpu before a process is
...
marked SONPROC.
- Always make curproc, fpcurproc, astpending, and want_resched per-CPU
variables in struct cpu_info. Restructure code accordingly, and trim
a few instructions from a few spots in various places in locore.
2000-05-31 05:14:26 +00:00
thorpej
858becb7c2
In the MULTIPROCESSOR case, initialize p_cpu before a process is
...
marked SONPROC.
2000-05-31 05:10:54 +00:00
thorpej
8c2d00aaeb
Add a comment about needing to initialize p_cpu when multiple
...
processors are supported.
2000-05-31 05:09:14 +00:00
thorpej
8871d8563a
Add a comment on single-processor systems about p_cpu being initialized
...
by fork1().
2000-05-31 05:06:43 +00:00
mycroft
65ace9d5d8
Yessiree! It's softdep time!
2000-05-31 04:57:20 +00:00
nathanw
820847ee98
Update for qs -> sched_qs change.
...
Kernel compiles again.
2000-05-31 03:16:52 +00:00
nisimura
0e80e9cd4b
Minor comment adjustments. cpu_switch has an argument of struct proc *.
2000-05-31 01:46:15 +00:00
nisimura
48ef457a5f
Leave fpcurproc NULL for Vr4100/TX3900. It's solely for delayed lazy
...
FPA. fp.S is free from fpcurproc references for SOFTFLOAT case.
2000-05-31 01:11:58 +00:00
nisimura
788c728dbd
Replace fpcurproc->p_addr-> references with curpcb->.
2000-05-31 00:59:27 +00:00
uch
6764e5fc91
if defined SOFTFLOAT, set fpcurproc before call MachFPInterrupt()
2000-05-30 18:12:47 +00:00
deberg
fadd7e1882
oops, we need nofault.
2000-05-30 15:35:00 +00:00
tsubai
7531770fa4
Insert delay() in busy wait.
2000-05-30 11:45:11 +00:00
tsubai
41a98db641
Add cpu_number().
2000-05-30 11:42:05 +00:00
haya
03c4724943
Use rbus_new_root_share() instead of rbus_new_root_delegate().
2000-05-30 09:26:19 +00:00
cjs
a9a7dd7904
Fix typo in DEBUG code.
2000-05-30 03:26:34 +00:00
nisimura
58d84e19a6
savefpregs() and loadfpregs() are defined in mips_machdep.c
2000-05-30 02:05:36 +00:00
nisimura
3d826a5c7e
Add a missing closing parenthesis.
2000-05-30 01:42:43 +00:00
nisimura
b67b90d7f9
FPA ownership is now guarded by MDP_FPUSED flag and there is no necessity
...
to have #if ... around savefpregs() calls.
2000-05-30 01:29:59 +00:00
nisimura
0e501989cd
- Have savefpregs() and loadfpregs() in C codes with lengthy inlined
...
asm statements, obsoluting asm routines in locore.S. They are
designed to work in symmetry as names suggests. savefpregs()
does not clear a global variable fpcurproc. Both would be noops when
NOFPU global symbol is defined.
- MDP_FPUSED flag is not turned on for FPA-less processors like Vr4100
and TX3900 even when processes execute FP insns.
2000-05-30 01:23:53 +00:00
simonb
4857b33794
A few more white-space bogons.
2000-05-29 23:40:03 +00:00
matt
3f4005113e
funciton != function
2000-05-29 23:34:08 +00:00
simonb
6c87680cbf
A TAB after the define keyword instead of spaces.
2000-05-29 23:30:06 +00:00
pk
ee396c032f
Remove IOMMU page table allocation from pmap_bootstrap() and all the
...
hacks surrounding it.
2000-05-29 22:23:34 +00:00
deberg
9735bab338
use rtc.h for poweroff() and #if 0 out badaddr, which isn't used
...
anywhere. machdep.c compiles w/o any noise now.
2000-05-29 22:10:43 +00:00
deberg
e3a332df61
prototype rtc stuff used elsewhere
2000-05-29 22:08:47 +00:00
deberg
dbd1379620
no need to include next{kbd,display}var.h
2000-05-29 21:35:04 +00:00
pk
ce1fb71efc
Use uvm_pglistalloc() to allocate memory for the I/O PTEs; modelled after
...
a similar change by Art Grabowski in Openbsd.
2000-05-29 20:41:10 +00:00
ragge
992002c2be
Use the cpu_info struct to store cpu-specific data in the same way in
...
both uniprocessor and multiprocessor environments. Use the otherwise
unused internal CPU register SSP to store the cpu_info pointer.
The macros curcpu(), curproc, cpu_number() and need_resched() are now the
same in both uniprocessor and multiprocessor environments.
2000-05-29 20:00:55 +00:00
soren
e3ee997813
Different form of PCI bug workaround. Should make 2700 system work.
2000-05-29 15:45:15 +00:00
soren
6641d91d94
No Linux compat yet, but Ultrix works.
2000-05-29 15:44:22 +00:00
soren
da59451c97
Identify system controller model.
2000-05-29 15:43:50 +00:00
soren
ba3a485962
Static poisoning.
2000-05-29 15:43:32 +00:00
soren
66f14d2965
Whitespace.
2000-05-29 15:42:47 +00:00
nisimura
5448bca5b5
Make this file compilable. 3MAX+ has no ISDN.
2000-05-29 12:09:45 +00:00
nisimura
a7c050472e
Nuke #include directives found unnecessary.
2000-05-29 11:46:52 +00:00
nisimura
f7c88c8f18
Make sure to load FPA contents next time an FP insn is executed when
...
process_write_fpregs() changes pcb_fpregs[].
2000-05-29 11:19:46 +00:00
soda
fbc0def1f9
COMPAT_ULTRIX was moved from files.${MACHINE} to files.mips,
...
from Izumi Tsutsui.
2000-05-29 10:17:44 +00:00
nisimura
76f0ee4e32
Put an additional check to see curproc was an FPA owner process.
2000-05-29 09:47:19 +00:00
nisimura
87cd634474
Put addtional checks to see the curproc is an FPA owner process.
2000-05-29 09:43:33 +00:00
nisimura
8e19d02f25
Cleanup take two
...
- Nuke external function reference of savefpregs() which is already defined
in mips/cpu.h.
- Adjust the comment tells "let user processes change CP0 status register
freely might be dangerous."
2000-05-29 09:37:00 +00:00
nisimura
3f8e9c25b6
Make claried MDP_FPUSED usage.
...
- MDP_FPUSED flag indicates the process has executed at least one
FP insn during its life time.
- pcb_fpregs storage is guaranteed zero initialzed. If the process is FPA
owner, savefpregs() must be called to synchronize it with FPA contents.
- No necessity to save FPA contents into pcb_fpregs prior to the whole
storage is overwritten by process_write_fpregs().
2000-05-29 09:16:36 +00:00
matt
c7c33f1747
make egcs happy: ioasic.c:327: warning: suggest parentheses
...
around arithmetic in operand of |
2000-05-29 02:16:57 +00:00
thorpej
8576ef9a13
Add Cyclades-Z.
2000-05-28 23:06:39 +00:00
thorpej
0936213012
Add Cyclades Y and Z multiport serial adapters.
2000-05-28 23:05:19 +00:00
thorpej
2e7afc702d
Update.
2000-05-28 21:49:02 +00:00
thorpej
e51303c17e
Mirror last change to GENERIC.
2000-05-28 21:48:52 +00:00
jhawk
daa86a0be1
Add patchable "pnpbiosdebug" global if PNPBIOSDEBUG is compiled in,
...
and add PNPBIOSDEBUG_VALUE to initialize its value, defaulting to 1.
2000-05-28 21:46:04 +00:00
jhawk
fb6d063b8c
pnpbios from 1.344 didn't config. s/pnpbios0/pnpbios?/
2000-05-28 21:12:00 +00:00
pk
7da3d45dfc
Cleanup iommu_attach().
2000-05-28 20:55:54 +00:00
pk
57b382f034
Add a few comments.
2000-05-28 20:54:42 +00:00
matt
33889a5e6c
Enable DDB.
2000-05-28 20:21:04 +00:00
thorpej
4af4c47f80
Tidy up a little, improve PnP BIOS section.
2000-05-28 20:11:59 +00:00
thorpej
b6c4eb81fd
Massive cleanup and syncing with GENERIC
2000-05-28 20:10:29 +00:00
matt
166475069f
fix it so it compiles.
2000-05-28 18:17:59 +00:00
gmcgarry
69c227f1a2
Nuke IOASIC_INTR_ISDN which is for sample interrupts.
2000-05-28 06:16:00 +00:00
gmcgarry
6eb4356ecf
IOASIC_INTR_ISDN is used for interrupts on every sample. We use DMA so
...
need IOASIC_INTR_ISDN_TXLOAD|IOASIC_INTR_ISDN_RXLOAD.
2000-05-28 06:07:31 +00:00
gmcgarry
dcec163ee3
Substitute bba for isdn placeholder.
2000-05-28 06:02:12 +00:00
mhitch
91dd4d9eb5
Remove local declaration of physmem_boardmax. The external physmem_boardmax
...
was not getting modified for 4MB SIMMS, and when fully populated with 8
SIMMS the memory size was configured at 128MB instead of 32MB.
2000-05-28 05:56:36 +00:00
thorpej
e03e9e8086
Rather than starting init and creating kthreads by forking and then
...
doing a cpu_set_kpc(), just pass the entry point and argument all
the way down the fork path starting with fork1(). In order to
avoid special-casing the normal fork in every cpu_fork(), MI code
passes down child_return() and the child process pointer explicitly.
This fixes a race condition on multiprocessor systems; a CPU could
grab the newly created processes (which has been placed on a run queue)
before cpu_set_kpc() would be performed.
2000-05-28 05:48:59 +00:00
matt
141dcca251
Add VAX660/670/680 support.
2000-05-28 05:17:25 +00:00
tv
ab415393d3
ep' has
plug-and-play' support on all buses, including non-PnP ISA.
...
Attach ep* at isa instead of ep0, so we will autoconfigure all 3c5x9s.
2000-05-28 02:42:16 +00:00
mycroft
6a082e4797
Clear %ebp in the forked child, so we don't try to unwind past it.
2000-05-27 23:01:44 +00:00
scw
a5a054f2c9
Nuke HP_SEG_SIZE. Use NBSEG instead (as used by m68k_trunc_seg() et al),
...
which takes into account the mmu type.
2000-05-27 22:37:47 +00:00
he
5dedafcecd
Add missing semicolon.
2000-05-27 21:46:42 +00:00
ragge
26acf7f88a
Only map in map registers and the I/O page if they are not mapped in already.
2000-05-27 21:44:35 +00:00
ragge
8293b12111
Write kvtopte() and kvtophys() as inline assembler. GCC create quite bad
...
code for them, and they are only 2-3 instructions each if written by hand.
2000-05-27 21:17:06 +00:00
matt
22519583f3
Add tadpole specific devices.
2000-05-27 20:56:51 +00:00
ragge
6cfde8f146
Remove the pcbtrap global variable, use a per-CPU variable instead.
2000-05-27 20:02:58 +00:00
jhawk
3ac3c9b124
Oops, omitted the rename from last.
...
Function in this file is db_stack_trace_print(),
not db_stack_trace_cmd().
2000-05-27 16:44:41 +00:00
ragge
98d0ab9e1c
Use machine instead of vax in include path.
2000-05-27 16:44:14 +00:00
ragge
99baa81ae7
Rewrite cpu_fork(), it now looks like and works as other ports' cpu_fork()
...
(calling child_return() etc...). Have fun, Jason!
2000-05-27 16:33:04 +00:00
scw
8e7a493bbc
Protect against multiple inclusion.
2000-05-27 14:45:36 +00:00
scw
48c1f20cf8
s/schedcpu_percpu/schedstate_percpu/
2000-05-27 14:25:00 +00:00
mason
972014e5a8
Make compile after scheduler state cleanup.
2000-05-27 11:44:54 +00:00
jdolecek
c5d51d433e
fix prototype for fd_mod_free() - should fix port-mac68k/10063
2000-05-27 10:25:15 +00:00
ragge
aacf5a4bc1
Growel out the SCSI BUS ID from NVRAM instead of hard-code it.
2000-05-27 10:12:45 +00:00
thorpej
5410ee3607
Update a couple of comments for reality.
2000-05-27 06:29:35 +00:00
thorpej
21fc65e1a8
sleep() -> tsleep()
2000-05-27 04:52:27 +00:00
thorpej
b3b7588160
Don't use sleep() and callouts; just use tsleep().
2000-05-27 04:42:14 +00:00
soren
4a6fea14b4
Correct ones, even.
2000-05-27 03:53:11 +00:00
soren
c77afc79a4
Forgot to define sd and cd majors.
2000-05-27 03:52:26 +00:00
matt
fa1474c2eb
This need <sys/sched.h> to compile.
2000-05-27 03:23:22 +00:00
soren
39b5e9b4a2
ncr(4) wouldn't work, so s/ncr/siop/.
2000-05-27 02:19:34 +00:00
enami
2e535006c1
No longer need to include sys/types.h.
2000-05-27 02:18:12 +00:00
soren
96a81498cf
Remove stacktrace() prototype.
2000-05-27 02:16:25 +00:00
soren
355d1234b9
The datap argument to the write_{multi,region} calls is const.
2000-05-27 02:15:01 +00:00
soren
92a32ad9b2
Protect against multiple inclusion.
2000-05-27 02:14:22 +00:00
soren
630f6535cd
Match a comment with the MIPS3 version.
2000-05-27 02:13:46 +00:00
soren
dc83d17889
Include <sys/param.h> to make the new cpu.h happy.
2000-05-27 02:13:12 +00:00
sommerfeld
40339b39f9
Reduce use of curproc in several places:
...
- Change ktrace interface to pass in the current process, rather than
p->p_tracep, since the various ktr* function need curproc anyway.
- Add curproc as a parameter to mi_switch() since all callers had it
handy anyway.
- Add a second proc argument for inferior() since callers all had
curproc handy.
Also, miscellaneous cleanups in ktrace:
- ktrace now always uses file-based, rather than vnode-based I/O
(simplifies, increases type safety); eliminate KTRFLAG_FD & KTRFAC_FD.
Do non-blocking I/O, and yield a finite number of times when receiving
EWOULDBLOCK before giving up.
- move code duplicated between sys_fktrace and sys_ktrace into ktrace_common.
- simplify interface to ktrwrite()
2000-05-27 00:40:29 +00:00
cgd
5f23f3b392
Fix typo: 68681, not 68881. (I'm a UART, Jim, not an FPU!!!)
2000-05-26 23:03:18 +00:00
eeh
907ed5fa81
Add `-D' flag to drop to the PROM before jumping to the kernel.
2000-05-26 22:59:51 +00:00
thorpej
a7d0570e67
First sweep at scheduler state cleanup. Collect MI scheduler
...
state into global and per-CPU scheduler state:
- Global state: sched_qs (run queues), sched_whichqs (bitmap
of non-empty run queues), sched_slpque (sleep queues).
NOTE: These may collectively move into a struct schedstate
at some point in the future.
- Per-CPU state, struct schedstate_percpu: spc_runtime
(time process on this CPU started running), spc_flags
(replaces struct proc's p_schedflags), and
spc_curpriority (usrpri of processes on this CPU).
- Every platform must now supply a struct cpu_info and
a curcpu() macro. Simplify existing cpu_info declarations
where appropriate.
- All references to per-CPU scheduler state now made through
curcpu(). NOTE: this will likely be adjusted in the future
after further changes to struct proc are made.
Tested on i386 and Alpha. Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.
2000-05-26 21:19:19 +00:00
ragge
02512fa1e9
Correct a comparision.
2000-05-26 21:05:23 +00:00
ragge
4eea61af11
If we panic before the vsbus is found, don't panic again.
2000-05-26 21:05:01 +00:00
jdolecek
2649f518ec
note in BIG WARNING LETTERS that MCA support is experimental and the
...
kernel should only be used for experimentation
comment out some stuff not present or used on my development machine
g/c ef
add (commented out) aha attachment
2000-05-26 20:59:07 +00:00
mhitch
5228efa47e
Fix typo (stray " where it shouldn't be).
2000-05-26 20:59:00 +00:00
ragge
1e700bc362
Make it compile again.
2000-05-26 20:51:25 +00:00
ragge
b2bc655ba8
Fake success when trying to use the strategy() routine on a network device.
...
This avoids clobbering errno and bad error messages.
2000-05-26 20:18:57 +00:00
ragge
e2148b38ab
Don't init the net info more than once.
2000-05-26 20:16:46 +00:00
ragge
b8b40eed22
Avoid hanging if boot fails on some machines.
2000-05-26 20:15:21 +00:00
tsutsui
446a3875db
Back out privious.
...
fxp on CATS sometimes causes pool related panic().
2000-05-26 19:01:22 +00:00
thorpej
a787870607
From tusbai@netbsd.org:
...
Simplify SONPROC change. (and now compiles)
2000-05-26 12:57:11 +00:00
tsubai
6aced393a3
Simplify SONPROC change. (and now compiles)
2000-05-26 08:40:10 +00:00
thorpej
7d2fdbcb55
Don't set `runtime' here; it's done at the end of mi_switch().
...
cvS: ----------------------------------------------------------------------
2000-05-26 05:27:29 +00:00
jhawk
8e44b27348
Rename the machine-specific stack trace printing functions
...
from db_stack_trace_cmd() to db_stack_trace_print(),
and add an additional argument, a function pointer for an
output routine (i.e. printf() or db_printf()).
Add db_stack_trace_cmd() in db_command.[ch], calling
db_stack_trace_print() with db_printf() as the printer.
Move count==-1 special handling from db_stack_trace_print() [nee
db_stack_trace_cmd()] to db_stack_trace_cmd() [nascent here].
Again, I'm unable to test compilation on all affected platforms,
so advance apologies for potential brokenness.
2000-05-26 03:34:24 +00:00
jhawk
285fe9436f
In callback for db_printsym(), use db_printf() rather than printf() [oops].
2000-05-26 02:10:18 +00:00
thorpej
8964c35eca
Introduce a new process state distinct from SRUN called SONPROC
...
which indicates that the process is actually running on a
processor. Test against SONPROC as appropriate rather than
combinations of SRUN and curproc. Update all context switch code
to properly set SONPROC when the process becomes the current
process on the CPU.
2000-05-26 00:36:42 +00:00
tsutsui
56dfe42d8d
Add epic* at pci.
2000-05-26 00:22:06 +00:00
is
0ce3451d1f
Initial AmigaPPC commit.
...
Lots of the work was done by Adam Ciarcinsky.
Currently, this only supports CyberPPC boards by Phase 5. Blizzard PPC
expected later.
The kernel is useless but for demonstrating that it starts... especially
interupts, and most of MMU support, is not in yet. Builtin console works,
however, and you can look at the kernel startup messages.
2000-05-25 22:11:57 +00:00
is
8a6db88c1d
Prepare for AmigaPPC.
2000-05-25 21:10:14 +00:00
matt
37be92c0d1
Add loadfile() support. soon to be needed by bootblocks.
2000-05-25 20:25:22 +00:00
jhawk
f3528d725d
Interface change: db_printsym() takes a third argument, pr, a function
...
pointer indicating how to print the symbol. This allows db_printsym()
to called in places where db_printf() is not an appropriate output
function.
While straightforward, apologies in advance if I've introduced any minor
syntax errors; I was unable to test compilation this on all the affected
platforms.
2000-05-25 19:57:30 +00:00
matt
091b74891d
Modify the file list for kernel to supress errors/text for certain ones.
2000-05-25 19:36:20 +00:00
is
f0d88bea57
Prepare for AmigaPPC.
2000-05-25 19:10:04 +00:00
is
da281d4321
Prepare for AmigaPPC.
2000-05-25 18:39:09 +00:00
thorpej
6ec6c6f90a
Move common return-to-userland goo into userret(), like other ports.
2000-05-25 17:01:11 +00:00
mycroft
57f3751ca1
Add ipfilter-related stuff.
2000-05-25 16:33:13 +00:00
tsutsui
e747c390f0
Enable fxp* at pci and inphy* at mii.
2000-05-25 14:50:34 +00:00
tsutsui
4a42668b31
Add fxp* at pci.
2000-05-25 09:09:28 +00:00
itohy
c72407329e
Treat receiver overrun of MFP (clear the error).
...
Although the keyboard hardware seems to be designed to avoid
overrun, the errors sometimes occur.
2000-05-25 03:33:27 +00:00
itohy
61363bb1c6
Fix the problem where pressing a key at
...
scsibus0: waiting 2 seconds for devices to settle...
message during boot crashes the system.
This is because ite_filter() is called before init(8) opens the console.
2000-05-25 03:30:19 +00:00
simonb
52e7cddaa7
Fix kernel profiling so that it actually works:
...
- Add 16 bytes to the stack on entry to _mcount so we don't
overflow it.
- Use inline interrupt {dis,en}abling instead of calling
profiled function in locore.
2000-05-25 03:07:10 +00:00
mason
af43639ded
Fixed typo in ses comment - devies -> devices
2000-05-25 01:34:18 +00:00
eeh
ca743bac9a
Use the PCI function code to distinguish simba bus A from bus B instead
...
of the current hack.
2000-05-24 20:27:52 +00:00
eeh
c965d1deec
If we have sparse PCI spaces we can run out of IO map space when mapping
...
PCI config space. Since PCI config space is mostly used by PCI bus drivers,
we won't actually map it in. Instead we use MMU bypass ASI accesses to read
and write PCI config space.
2000-05-24 20:24:58 +00:00
ragge
e256727fb2
Four more instructions makes it possible to boot old kernels also.
2000-05-24 19:53:11 +00:00
is
ebc6483ef9
missed one line when converting m68k asm() to macro calls.
2000-05-24 19:36:29 +00:00
soren
a20a3b38fd
Appease gcc.
2000-05-24 18:42:03 +00:00
thorpej
e1284ac3c2
Add a comment before the call to preempt() to be consistent with
...
other ports (i.e. I just added the comment, and arm26 already used
preempt).
2000-05-24 17:29:41 +00:00
thorpej
7f4eca2d94
Use preempt(), not an open-coded equivalent (which won't be
...
equivalent for long).
2000-05-24 17:28:05 +00:00
thorpej
1140468205
Use preempt(), not an open-coded equivalent (which won't be
...
equivalent for long).
2000-05-24 16:48:33 +00:00
matt
83ae868133
Add some debug stuff. Disable SCSI on KA49 for now until I can figure out
...
why it doesn't work.
2000-05-23 23:47:28 +00:00
matt
62469cb55a
Allow for boot.vax and netbsd.vax when booting. this allows a multi
...
architecture CD to be made which includes VAX support.
2000-05-23 23:34:20 +00:00
matt
27a876b17c
boot detection moved autoconf.c; remove it from here.
2000-05-23 21:36:43 +00:00
matt
6f98bbbb09
Add some missing ifdef's.
2000-05-23 19:55:55 +00:00
tsubai
06d1fe06b3
Remove __BROKEN_DK_ESTABLISH.
2000-05-23 13:27:16 +00:00
tsubai
b906075964
Compile dk_* functions only when __BROKEN_DK_ESTABLISH is defined.
2000-05-23 13:25:43 +00:00
tsubai
f12221a5f5
Modify DMA access timings.
2000-05-23 13:20:58 +00:00
pk
1273031c4d
Simplify the bus_dma(9) implementation:
...
- the `alignment' and `boundary' arguments in bus_dmamem_alloc() only
serve as hints on how to break up a DMA transaction into chunks
when necessary; it is not necessary on sparc DVMA hardware.
- exclusively use the VM page size (i.e. PAGE_SIZE et.al.) when computing
resource allocations.
- remember the size of DVMA resource allocations in the private `_ds_sgsize'
field in a dma segment descriptor.
2000-05-23 11:39:57 +00:00
thorpej
f6cea17c36
Rename the atomic operations to have generic machine-independent
...
names, and define __HAVE_ATOMIC_OPERATIONS to indicate their
existence.
2000-05-23 05:12:53 +00:00
eeh
8b4fa50a4d
Need to be able to turn off pcons.
2000-05-23 05:11:28 +00:00
thorpej
d3ea31501b
Add an MP version of this config, and add come commented out
...
debugging options.
2000-05-23 05:01:56 +00:00
soren
a255740671
MachForceCacheUpdate and cacheflush_bug have never been used in NetBSD,
...
so remove references them, and do a little other cleanup.
2000-05-23 04:21:39 +00:00
thorpej
0aae1fb638
Note that KN300 is also for AlphaServer 1200.
2000-05-23 02:04:28 +00:00
thorpej
b97e178455
Add kernel config for my AlphaServer 1200 MP hacking box.
2000-05-23 02:02:41 +00:00
pk
8c39bf5d24
MicroSPARC 1 cache issues:
...
- mark as CPUFLG_CACHE_MANDATORY to avoid cache inconsistencies in
pmap_{zero,copy}_page().
- compute caching alias bits correctly
- add experimental optimisation in ms1_cache_flush().
2000-05-22 22:03:32 +00:00
thorpej
2c49ab816e
When checking for netboot, also check for MOP protocol.
2000-05-22 20:13:31 +00:00
thorpej
800573dc5f
Normalize determination of scsiboot and netboot.
2000-05-22 20:09:12 +00:00
eeh
62d33e59ff
Align things pessimistically so a 64-bit kernel will accept symbols from a 32-bit loader.
2000-05-22 19:15:33 +00:00
uch
27a7fbff47
debug frame buffer draw routines moved to video_subr.c.
...
plumvideo also use it.
2000-05-22 17:17:44 +00:00
thorpej
09e72ae7e2
Remove the adjustment of VM_PHYS_SIZE for `large memory machines'. The
...
only adjustment that was really necessary was for VM_KMEM_SIZE, and that
is no longer necessary because there is now generic auto-sizing for
kmem_map.
2000-05-22 17:13:53 +00:00
thorpej
920010ad8f
Add SCSI Enclosure Services at cdev minor 74.
2000-05-22 16:58:20 +00:00
thorpej
78112e2541
Add `ses' (SCSI Enclosure Services) device.
2000-05-22 16:48:41 +00:00
thorpej
7e078f081c
Kernel config for my Alphastation 200 file server + wireless network
...
gateway.
2000-05-22 16:46:11 +00:00
thorpej
20241c549c
These systems haven't been available to NetBSD/alpha developers
...
for a very very very long time, and there are more up-to-date
example configs for the BUNNY case.
2000-05-22 16:45:30 +00:00
thorpej
61ae567197
Rename CANE to MINI-ME to reflect that my Multia hasn't been
...
parked at my (former) NASA office for quite some time.
2000-05-22 16:38:24 +00:00
thorpej
b0600483b9
bishop.nas.nasa.gov and nostromo.nas.nasa.gov are no more.
2000-05-22 16:35:25 +00:00
matt
88352edc02
Add prototype for findcpu in _STANDALONE.
2000-05-22 15:55:52 +00:00
matt
8c22116924
cpp can be so annoying. to appease it, can't -> cannot
2000-05-22 15:54:53 +00:00
matt
7a0c7ff6f9
get rid of a double /
2000-05-22 15:42:37 +00:00
matt
09d6519a0f
make the declaration of findcpu() ansi. (e.g add void to it).
2000-05-22 15:41:31 +00:00
matt
5ece00b8bc
Obviously we don't use the symbol, but we might give it the correct value.
...
We support up to NVAX platforms.
2000-05-22 15:40:06 +00:00
matt
2d5c3f8447
Move BDEV_LE detection to here.
2000-05-22 15:38:47 +00:00
matt
cb089ee017
Remove RPB hook from here and put in autoconf.c
2000-05-22 15:34:05 +00:00
matt
ff7c474e11
The double / in the path has been bothering me for awhile.
2000-05-22 15:33:13 +00:00
uch
c70d727504
regen.
2000-05-22 15:05:37 +00:00
uch
af2b106d9a
Add SHARP Telios HC-VJ1C and Mobilon HC-4500 entries.
2000-05-22 15:03:46 +00:00
uch
817c8734c5
fix comment.
2000-05-22 07:40:41 +00:00
mrg
296eaaa36d
add two new CPU_ISXXX versions: CPU_ISSUN4U, CPU_ISSUN4MOR4U
2000-05-22 02:35:23 +00:00
ragge
f506422549
Boot device recognition for DEUNA added; combined with some cleanup.
2000-05-21 20:18:49 +00:00
ragge
314caa6651
Standalone driver for the Digital Equipment Unibus Network Adapter (DEUNA).
...
This allows 11/750 owners to install from a single TU58 cassette.
(Are there still any 11/750 owners left out there? :-)
2000-05-21 20:17:43 +00:00
perry
2a9fe3a4e7
Actually return the BIOS error code (if any) generated by the reads
2000-05-21 16:59:28 +00:00
jhawk
24396ea653
revert 1.21 (back to 1.20);
...
the problem was due to diskbuf[] getting pushed over a 64k
boundary, and has now been fixed (for the moment).
2000-05-21 16:33:12 +00:00
jhawk
07a3d660c5
This change courtesy of Charles Hannum <root@ihack.net>. This
...
addresses the problems seen by Jason Thorpe <thorpej@netbsd.org> and
Erik Berls <cyber@netbsd.org> necessitating rev 1.20 of
biosboot/main.c.
Move BOOTSEG from 0x100 to 0x1000.
Move heap from 0x10000 to 0x20000.
XXXXXXXX
This is a Kluge From Hell to allow boot blocks to grow a little larger
without diskbuf[] crossing a 64k boundary.
2000-05-21 16:29:14 +00:00
eeh
3cee90e0e1
Need to provide a consdev to the cons_attach_input call now.
2000-05-21 14:36:15 +00:00
uch
fb077d8092
change TX3922 D-cache mode to write-through.
2000-05-21 11:53:00 +00:00
uch
7b768bd6e8
recognize 32MByte D-RAM.
2000-05-21 11:24:45 +00:00
uch
060197b367
Get LCD size from PLUM2 Display control register.
2000-05-21 11:22:25 +00:00
ragge
da774180b6
Compare the boot address with 1) physical address and 2) correct variable.
2000-05-21 10:03:55 +00:00
ragge
d901690b17
Remove forgotten debug printf.
2000-05-21 09:45:54 +00:00
ragge
0b560b2138
Set correct adapter addresses if none is given.
2000-05-21 09:45:34 +00:00
ragge
93753c91c0
11/750 fixes:
...
- Set the correct adapter address in RPB for Unibus devices.
- Repair the disk read routines for HP disks. ROM routines do not work
on HP disks, therefore use a small home-written routine.
2000-05-21 09:44:16 +00:00
ragge
f7b7cabc0b
On the 11/750, the stack will be placed by ROM in the code area.
...
Start with moving it to a safe place.
2000-05-21 08:13:20 +00:00
soren
f598aece87
MIPS 'mach halt' does nothing MD, so nuke it.
2000-05-21 05:41:25 +00:00
soren
6aba4259b6
R10K has 64 TLBs.
2000-05-21 04:25:57 +00:00
soren
abbe53961a
Add R12K PRID.
2000-05-21 04:03:34 +00:00
soren
81fa4aa07f
Populate the cputype defopt (not enabled yet).
2000-05-21 03:31:35 +00:00
soren
2779a53005
Include opt_cputype.h.
2000-05-21 03:23:15 +00:00
soren
7ea4a2b744
Fix RCS ID line.
2000-05-21 02:51:58 +00:00
soren
b70819c71a
Also share BE ldscripts.
2000-05-21 02:50:10 +00:00
augustss
bdc8c2f8f4
Alphabetize.
2000-05-20 21:34:48 +00:00
eeh
17c567f9de
Oops. Seems like we do need this file to make pcons work.
2000-05-20 14:23:12 +00:00
ragge
2da29b7e01
Changes to use the RPB for different tasks. Much simpler now to find the
...
boot device.
2000-05-20 13:38:58 +00:00
ragge
b3f6551d41
WARNS=1. Unify the ra and tmscp driver.
2000-05-20 13:36:11 +00:00
ragge
027ee49b0f
Adopt to the RPB changes. Complete change of how network devices are
...
handled. No more hacks to find bus addresses.
2000-05-20 13:35:07 +00:00
ragge
c5f56fab00
Change all devices to use the RPB info when autobooting, this allows for
...
booting from unsupported devices also. As a side effect; it fixes PR#9202.
2000-05-20 13:30:03 +00:00
ragge
a8a7bf342f
New arguments to the rom routines. Adapt srt0 to new world also.
2000-05-20 13:22:39 +00:00
ragge
9ff9efe46a
Rewriting of the VAX boot block. Differences:
...
- Use the RPB for passing boot device info up to kernel, instead of the
old BSD "hack" with an encoded longword (see sys/reboot.h for details)
- Instead of separate drivers for all devices, use the HW-provided ROM
routines as much as possible.
- Add filesystem support for CD9660 also (now when there is space).
- Make everything compile with WARNS=1.
The boot block is now <7K in size and have support for UFS, CD9660 and USTAR.
2000-05-20 13:21:29 +00:00
takemura
5e48883c49
Add NEC Mobile Pro 780/880 and Vadem Clio 1050.
2000-05-20 07:11:25 +00:00
takemura
6bef866101
Add two items:
...
NEC MobilePro 780 (MC/R530A)
NEC MobilePro 880 (MC/R730A)
2000-05-20 05:08:53 +00:00
shin
405f83e99a
fix platid_test source files.
2000-05-20 03:41:28 +00:00
thorpej
4756ba9e32
#if 0 out the consdev command stuff -- with it, boot blocks don't
...
work, without it, they work fine. Size issue?
2000-05-19 22:26:50 +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
veego
1cd1663317
Disable the viaenv driver and remove the siop entry which was added
...
in the last commit.
2000-05-19 10:23:36 +00:00
eeh
dd5143017a
Use the new emergency fallback PROM console driver.
2000-05-19 05:28:47 +00:00
eeh
424619ca1a
Fix the sparc64 console.
...
Unlike the other Sun machines, UltraSPARCs can have consoles run on different
chips than zs, so we need to support them. So, here we go:
Add a new PROM console driver with a major number and everything.
This is the default driver if nothing else attaches. It does not
use the keyboard driver since the PROM translates keystrokes itself.
(Unfortunately it also swallows L1-A).
Have the keyboard driver take over the console when it attaches on a
serial port. When a serial port detects a keyboard and attaches the
keyboard driver, it needs to provide a set of consdev vectors. They
keyboard driver will use those to send I/O to the keyboard and mouse.
2000-05-19 05:26:16 +00:00
thorpej
f636538446
NULL != 0
2000-05-19 04:34:39 +00:00
mrg
4bd0bb352b
this file has not been used for a long time.
2000-05-19 01:09:21 +00:00
is
5e33ffef22
Initialize hardware for mouse mode at open time.
...
This fixes MB2 and MB3 on the 2nd mouse port (the first is initialized by
the Amiga ROM at boot time).
2000-05-18 19:58:30 +00:00
kleink
8050d5687d
Restructure the ms(4) autoconfiguration code to attach as a single device
...
instance and select a mouse port via the least significant bit of its
device minor number. Fixes abuse of cf_unit in this driver.
2000-05-18 15:39:22 +00:00
minoura
74e4bb664f
Wrong logic. Pointed out by Yasufumi.
2000-05-18 15:24:30 +00:00
pk
7caaf84b68
bus_dmamem_alloc: ensure alignment is always at least the page size.
2000-05-18 10:10:55 +00:00
matt
9bf1dc1e62
fix comments.
2000-05-18 04:20:41 +00:00
matt
f7b0b612b4
Add PCMCIA.
2000-05-18 04:03:30 +00:00
sato
8bc2515577
fix CONFIG_HOOK_BUTTONEVENT_CANCEL keycode.
2000-05-18 03:27:22 +00:00
soren
135a70e5a6
Make cache printing a little more consistent.
2000-05-17 23:35:44 +00:00
matt
2d153651e5
Preliminary support for the VS4000/90 SGMAP. Needed for SCSI. Does not
...
quite work right yet.
2000-05-17 21:22:18 +00:00
matt
6fb4d43f97
Sync closer to GENERIC.
2000-05-17 21:19:49 +00:00
thorpej
56512515f8
Add Cyclades-Z serial.
2000-05-17 18:08:50 +00:00
thorpej
640a49f093
Add Cyclades-Z serial adapter at cdev minor 73.
2000-05-17 18:08:03 +00:00
pk
817862e208
vmapbuf: should not map the kernel address uncacheable.
2000-05-17 14:37:59 +00:00
soren
740759113f
mips5200_FlushCache(): flush L2 cache too.
2000-05-17 12:44:48 +00:00
mrg
0cd44feb0e
fix if/ifdef mistake
2000-05-17 10:28:14 +00:00
mrg
20bc66f592
- add some psycho interrupt debugging stuff (#if 0'ed out)
...
- fix arguments passed in psycho_dmamap_load_raw()'s declaration, and
what it passes to it's parent bus.
2000-05-17 10:17:01 +00:00
mrg
eee5e33e8a
- in iommu_remove(), move len adjustment outside if statement, leaving
...
just one copy of this.
- remove duplicate setting of sgsize in iommu_dvmamap_load().
- fix DIAGNOSTIC check in iommu_dvmamap_load_raw() to panic() in unexpected
conditions only (not normal ones), and also add an extra case.
2000-05-17 09:53:53 +00:00
uch
b444da72bd
Skip fixup phase when system BIOS setting were perfect.
...
don't write 0 to command register. (it is harmful).
2000-05-17 09:50:34 +00:00
mrg
53fa9da4df
move zs_attach() to after the setting of the console device, to avoid
...
having cn_dev being 0 and thus cnopen() being called recursively. this
fixes this problem for zs-based console's only.
2000-05-17 09:28:22 +00:00
mrg
651712a140
add a note about US IIi and PCI_INTERRUPT_LINE register
2000-05-17 09:25:58 +00:00
mrg
6dad37e26a
expand a comment slightly.
2000-05-17 09:25:27 +00:00
mrg
f2a19f58b5
fix || vs. && bug, and clean up some cruft.
2000-05-17 09:16:44 +00:00
mrg
0eeab9735f
fix another warning.
2000-05-17 09:12:10 +00:00
shin
5eacd822a1
delete undefined 'NEC_MCR_4XX'.
2000-05-17 08:38:25 +00:00
eeh
3b90b5c5c4
Add support for bus_dma_load_raw() so the le driver will work again.
2000-05-17 02:31:12 +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
jhawk
aa0007b5a5
In case of db_onpanic=0, still drop to ddb if the trap was from within
...
ddb.
i.e. "db> x/s 0x14" should return you to ddb when it faults, regardless
of the state of db_onpanic.
2000-05-15 20:16:48 +00:00
nisimura
66ecdc15d3
Remove unused PSL_USERCLR defines for processor status register.
2000-05-15 08:36:32 +00:00
nisimura
8a71a7a50f
Backout the previous change which was done mistakenly.
2000-05-15 06:45:44 +00:00
nisimura
c7c815f46b
Remove #include <machine/psl.h> which is not used.
2000-05-15 06:39:14 +00:00