scottr
0179750b00
Correct two more problems of the same type as in rev 1.21: use the length
...
of the buffer you're copying from as the loop interator, not the length
of the buffer you're copying to. Also, rewrite print_single() with
pointer instead of array operators. Appears to correct some ADB-related
`hangs' during autoconfig.
1999-05-06 06:01:27 +00:00
tsubai
661ae33963
Remove unused codes.
1999-05-06 04:37:44 +00:00
thorpej
1f4085fb66
Fix spruious false matches in px_match().
1999-05-06 01:50:56 +00:00
wrstuden
af849de633
MAke this cross-tools happy.
1999-05-06 01:04:48 +00:00
mycroft
e6548e54bd
Enable interrupts *after* reading the fault address and status. This is
...
necessary because some interrupt handlers may cause additional faults (e.g.
through R/M emulation) and thereby trash the previous fault state.
From Richard Earnshaw.
1999-05-05 22:06:15 +00:00
pk
4cb2198a44
Declare `bootinfo' also if !DDB.
1999-05-05 15:32:33 +00:00
minoura
db3bdbe86c
Shut up gcc -Wall.
1999-05-05 14:31:16 +00:00
minoura
ad762a0b97
Use mvme68k-derived delay routine.
...
Now that we support various models, the old constant-loop delay routine
may cause problems.
1999-05-05 13:46:20 +00:00
minoura
3fe3e5261b
Add missing ia_size argument.
1999-05-05 13:41:44 +00:00
minoura
7cebd447fb
Move config_console to ensure that it is always called.
1999-05-05 13:41:19 +00:00
minoura
63a9944d93
mem_exists was called with wrong 2nd argument.
...
Because of this, >12MB high memory was not detected.
1999-05-05 13:38:51 +00:00
tsubai
0e57d44e45
Add missing CPU_MAXID definition.
1999-05-05 11:20:54 +00:00
christos
22de25977b
Argh, removed last ELF induced problem. We used to have syscall: in locore.s
...
and _C_LABEL(syscall) in trap.c. In ELF they are the same. Change the label
in locore.s to be _C_LABEL(_syscall).
While I am there, move the register save and restoral code used in the
*sigcode trampolines into two macros and use them instead of copying 100
lines of assembly each time.
Now everything ELF works.
1999-05-05 10:53:00 +00:00
christos
952f511570
Use -n for ELF. Using -N might work, but produces only one section.
...
No flags will not work, because it will produce a kernel loaded at 0xf0000000.
This is because the bfd ELF pagesize (in elf32-sparc.c) is 0x10000. Since
we need to load at 0xf0004000, we use -n.
1999-05-05 10:50:02 +00:00
tsubai
6168467392
Add cpu.h.
1999-05-05 10:15:53 +00:00
tsubai
9042054e51
Fix a small bug to make both IO and MEM enable bits in csr are set.
1999-05-05 08:43:53 +00:00
chs
9528f61050
in vmapbuf(), use pmap_enter() instead of poking PTEs directly.
1999-05-05 05:25:32 +00:00
chs
39a7993efb
update resident_count and wired_count properly in pmap_kenter_*()
...
and pmap_kremove().
1999-05-05 05:21:13 +00:00
thorpej
fc645b996a
- Always config_found() PCI busses, so we know if present PCI busses
...
aren't configured.
- Grab the bus's memory space tag from the pci_bridge structure for
the bus.
1999-05-05 04:40:00 +00:00
thorpej
654b0fff46
- Completely rewrite how bus space tags for PCI space are set up. Instead
...
of hard-coding them, decode the "ranges" property of the PCI bus node in
OpenFirmware.
- Do a little cleanup, and share some more code between the Bandit/Chaos
and MPC106.
XXX The bus_space(9) implementation for macppc really needs to be
rewritten.
1999-05-05 04:37:19 +00:00
thorpej
c448c97f2b
- Add come comments.
...
- Do a little cleanup.
- Protect the entirety of pci_conf_{read,write}() with splhigh()/splx().
1999-05-05 04:32:28 +00:00
thorpej
341f87673b
Add a bus space tag for PCI memory space to the pci_bridge structure.
1999-05-05 04:26:48 +00:00
thorpej
742e477ae0
Fix msgbuf handling.
1999-05-05 00:03:10 +00:00
thorpej
dbe4c0c061
Make this compile again.
1999-05-04 23:55:27 +00:00
thorpej
c2c47b0da9
Toss contents, and just pull in <powerpc/pmap.h>.
1999-05-04 23:49:18 +00:00
thorpej
da4b05fa8e
Pull in <powerpc/reg.h>.
1999-05-04 23:46:32 +00:00
christos
caa41a7d21
Fix panic and panicstr to use _C_LABEL.
...
Statuc: ELF kernel loads symbols properly, hangs in syscall while running init.
1999-05-04 17:29:22 +00:00
fvdl
4fbaa0b272
Restrict "out of CHS range" check to harddisks.
1999-05-04 17:14:55 +00:00
leo
38029cf240
If the floppy has no label, fake one.
1999-05-04 14:29:44 +00:00
christos
62a2dac0d8
whitespace...
1999-05-04 13:57:19 +00:00
christos
361f7917c8
clean up old GCC.1 stuff; move common definitions to the top.
1999-05-04 13:36:44 +00:00
christos
7d5c65239e
clean up old GCC.1 stuff.
1999-05-04 13:36:10 +00:00
pk
f499d38511
Gain one instruction..
1999-05-03 20:56:11 +00:00
scottr
a4adbf2f86
Move initialization of the iomem extent struct from mac68k_set_io_offset()
...
to mac68k_init(), so that we're through frobbing the MMU in special ways
by the time we get there. While it doesn't actually cause a problem with
the current structure of our initialization code, it probably would have
in the future.
1999-05-03 19:10:54 +00:00
pk
a554ffdde0
Better pad the artificial header to exactly 32 bytes.
1999-05-03 18:59:08 +00:00
christos
c596c324e3
Define __builtin_*() for lint
1999-05-03 16:30:31 +00:00
christos
b70c3eb0ca
Define __extension__ if __GNUC__ < 2
...
Define __builtin_*() for lint
1999-05-03 16:21:28 +00:00
christos
f890155a87
Define __extension__ if __GNUC__ < 2
...
Define __builtin_* for lint.
1999-05-03 16:20:28 +00:00
christos
6207471740
remove unused msgbufaddr
1999-05-03 16:17:57 +00:00
christos
3c86ce132b
s/\<0x4000\>/PROM_LOADADDR
...
remove unused cputypvallen, and _msgbufaddr
1999-05-03 16:17:08 +00:00
christos
b0c181d290
move PROM_LOADADDR from promlib.h to param.h and remove its cast.
1999-05-03 16:14:02 +00:00
christos
6fc35c7fc8
Casts for PROM_LOADADDR which is not casted anymore.
1999-05-03 16:13:16 +00:00
tsubai
fdabab77f2
PT_{STEP,GETREGS,SETREGS} support.
1999-05-03 10:02:19 +00:00
matthias
6a9785dfc6
Fix symbol loading. esym is passed as an offset to loadaddress.
1999-05-03 09:19:29 +00:00
pk
bc1a121cfe
Missing initialization of getbootfile() method for `old' monitors.
1999-05-03 07:32:50 +00:00
tsubai
28b7777fd0
Provide CACHELINESIZE when _STANDALONE is defined too.
1999-05-03 05:19:59 +00:00
kleink
5cbe23baad
Garbage-collect VM_MBUF_SIZE leftover.
1999-05-02 18:12:32 +00:00
ragge
a5ce96e985
EEEK! The signal changes a while ago caused the user struct to be
...
on top of the "red zone" in the kernel stack. This phenomenon has
caused many unexplainable things to happen the last year.
1999-05-02 17:28:43 +00:00
scottr
b997ba8fa3
g/c some useless calculation on avail_remaining after its last reference.
1999-05-02 17:26:14 +00:00
scottr
2f45ab494c
Remove a (harmless) duplicated line.
1999-05-02 17:23:07 +00:00
pk
e3a15d4321
* Add missing label.
...
* Avoid harmful delay-slot instruction, if we did not get a `bootinfo' thing.
* Compute correct location of `esym' for all three methods of debug
symbol loading we support.
1999-05-02 14:47:33 +00:00
christos
797c581bbc
Add bootinfo.h
1999-05-02 13:50:17 +00:00
fvdl
ec559f688b
Be more careful with saving registers around the "out of CHS range" check.
1999-05-02 12:44:34 +00:00
kleink
d34d0ccf51
* Change multiple inclusion protection symbols to use the standard naming
...
convention (not that it should matter for assembly).
* Provide an additional set of _C_LABEL() macros for ELF.
* Provide a PIC_PLT() macro for the benefit of ELF.
1999-05-01 19:20:52 +00:00
kleink
69845becd3
Use _C_LABEL() for [fs]ubail symbols.
1999-05-01 19:17:06 +00:00
kleink
3d292e1a35
Fix a label name botch introduced in rev. 1.92; Ignatios owes me a non-beer.
1999-05-01 19:11:34 +00:00
drochner
e26f758e69
ed* -> we*, PR port-i386/7503 by Andrew Gillham <gillhaa@ghost.whirlpool.com>
1999-05-01 17:19:52 +00:00
ragge
fc6020e344
Real-time clock is started on the same way on all CPUs, there is no
...
need for a special CPU-dependent hook for this.
1999-05-01 16:13:43 +00:00
pk
e4bc3af22c
No need to disable MII devices in previous.
1999-05-01 14:18:35 +00:00
tsubai
8e885e921e
Check "mac-io" and "/pci/mac-io".
1999-05-01 10:37:57 +00:00
tsubai
8dbaa0169e
Find "mac-io" and "/pci/mac-io".
1999-05-01 10:36:08 +00:00
tsubai
5fff3dafe9
Use "compatible" property to match.
1999-05-01 10:23:42 +00:00
tron
890fa9e9be
Regen from "GENERIC".
1999-05-01 10:21:22 +00:00
tron
3420cb646c
Add ext2 filesystem.
1999-05-01 10:20:01 +00:00
scottr
009cda3fb2
Fix a problem with bounds_check_with_label(), noted by Greg Oster: we
...
had been returning (-1) as an error instead of 0. This is the result of
not keeping up with its i386 ancestor, which it was originally derived
from back in 1993. Re-sync.
1999-05-01 09:26:32 +00:00
scottr
9e69eadd92
Rewrite read_mac_label() and friends, simplifying the code considerably
...
in the process. Less is truly More.
1999-05-01 09:12:47 +00:00
cgd
34fde29505
update comment re: COMPAT_OSF1
1999-04-30 23:34:08 +00:00
cgd
f6b3b14ce3
enable COMPAT_OSF1
1999-04-30 23:33:41 +00:00
cgd
1bce8c40fc
ep_arglen is in units of 'sizeof (char *)', not in units of bytes. use
...
howmany(value, sizeof (char *)) to get the right value.
1999-04-30 23:02:06 +00:00
abs
93857fda32
Comment out nell and pcmcia children until audioamd panic resolved
1999-04-30 21:09:50 +00:00
cgd
ff48595e8b
processes would have vm->vm_ssize screwed up when they faulted
...
data regions higher than USRSTACK.
1999-04-30 20:21:57 +00:00
christos
ef6e15ad0e
Include opt_compat_sunos.h
1999-04-30 16:50:44 +00:00
minoura
ed3c676245
Branch address was wrong.
1999-04-30 15:31:18 +00:00
christos
57e4b98787
- Use the proper multiply instructions so that we don't get truncated.
1999-04-30 15:31:17 +00:00
christos
8ed58f33a5
Add -n for ELF, note weirdness in comment.
1999-04-30 13:31:52 +00:00
christos
35e47f06fa
Load the header too.
1999-04-30 13:28:58 +00:00
christos
4bf3b7a9c1
Compile in support for ELF symbols.
1999-04-30 13:28:36 +00:00
christos
81248a0851
Add bootinfo struct to pass symtab arguments.
...
XXX: This does not work with ELF yet, but I don't understand why...
1999-04-30 09:29:40 +00:00
christos
a042b8f9e4
Add bootinfo support for loading symbol tables.
1999-04-30 09:26:16 +00:00
christos
bf88b9104e
Include opt_compat_sunos.h
1999-04-30 09:21:54 +00:00
cgd
1a3537df95
OSF/1 locore-ish bits. right now just sigcode
1999-04-30 05:58:10 +00:00
cgd
04f53f0b03
gross hack for SIGFPE under OSF/1, until ross makes SW completion go
1999-04-30 05:47:53 +00:00
tsubai
9697f9c401
Add more sanity check.
1999-04-30 04:35:35 +00:00
ross
c5a82dd848
* New MI man page for fp{set,get}{round,sticky,mask}(3).
...
* Implement fpgetsticky() for alpha.
* Direct fpsetsticky() and fp{get,set}mask() into alpha kernel via sysarch(2).
* Define new sysarch(2) stub for above and install and distribute sysarch.h
for alpha. (The fpcr IS user mode r/w, but for reasons beyond the scope
of a commit message kernel calls are needed.) And much kernel Magick is
required before these do anything, but this way programs compiled under
1.4 will DTRT on future snapshots and releases.
1999-04-30 00:58:30 +00:00
ragge
cec112a434
Make LK201 arrow keys work again.
1999-04-29 16:58:58 +00:00
christos
0db2ca03ae
Add sunos_sigcode (32 bit only)
1999-04-29 16:40:41 +00:00
christos
cc96413a0c
Revert previous bootinfo premature commit, and commit the sunos_sigcode
...
stuff instead.
1999-04-29 16:37:32 +00:00
christos
d27f70c075
Include opt_compat_sunos.h
1999-04-29 16:22:03 +00:00
christos
bd3e05dcd4
Add sunos_sigcode, sunos_esigcode trampoline that uses trap 1
1999-04-29 16:20:44 +00:00
christos
5f139d3cc9
Add sunos_sigcode and sunos_esigcode for COMPAT_SUNOS
1999-04-29 16:13:04 +00:00
phil
29f999f240
options & filesystems tweeks.
1999-04-29 15:31:00 +00:00
bad
c98240fc07
Don't use the direct console on color machines, which is currently not
...
supported. Use serial console instead.
From Matt Debergalis PR 7488.
1999-04-29 14:51:20 +00:00
kleink
e1529b8f93
Pull in the right generic m68k header. (Where was my mind?)
1999-04-29 14:38:39 +00:00
tsubai
599ebb4db1
Now we can use symbols in DDB. :-)
1999-04-29 05:15:30 +00:00
tsubai
741030cc8a
Add loadfile_machdep.h
1999-04-29 03:17:12 +00:00
tsubai
e4e1fcbaa6
Use MI loadfile().
1999-04-29 03:16:20 +00:00
ross
7288a55336
Use a different initial FPCR, mainly to suppress the ieee inexact trap.
1999-04-29 03:02:20 +00:00
ross
0847df9065
#ifdef _KERNEL, define the machine FPCR bits and a rounding mode macro
1999-04-29 02:55:50 +00:00
ad
3801a05ffb
Add cookie for wsfont to px_info. Don't try to get/lock a font if we
...
are not the console.
1999-04-29 02:50:25 +00:00
ross
aa1e5724b9
WSEMUL_SUN -> WSEMUL_VT100
1999-04-29 01:28:40 +00:00
fvdl
48003b2c88
Only use int13 extensions if the sectors can not be read through the
...
older CHS interface. This works around stupid BIOSs who report that
int13 extensions are present and functional, but fail when you actually
use them. Like Adaptec SCSI BIOSs.
1999-04-28 23:24:42 +00:00
is
568b328c80
Recognize Linux ext2fs partitions. (Used to be marked as unknown).
1999-04-28 22:35:27 +00:00
fair
073021116e
Add a 1 second delay to powerdown sequence to prevent the OpenBoot PROMs
...
from getting control and reporting a "powerdown failure", per PR#7487
1999-04-28 18:49:40 +00:00
minoura
ab5806d4b8
Message cosmetics.
1999-04-28 16:17:42 +00:00
minoura
ea485e0d51
Handle fpunimp properly for fpu_emulate.
1999-04-28 16:16:58 +00:00
christos
b40179bdca
MD version of loadfile.h
1999-04-28 15:26:21 +00:00
christos
017ae4d0c4
Support for installboot
1999-04-28 15:25:43 +00:00
christos
1c8494b7a2
Checkpoint of elf boot stuff:
...
- Use loadfile for both boot and installboot
- Fix problems with linking in bootxx
- Make installboot work with both a.out and ELF bootxx
- *WILL NOT BOOT YET ELF KERNELS* (a.out kernels work) I am working on it.
1999-04-28 15:22:25 +00:00
christos
ccd32076df
Add -DLIBSA_NO_CLOSE
1999-04-28 13:27:18 +00:00
christos
ad64321aac
Include <sys/systm.h> to get prototype for memset.
1999-04-28 13:20:55 +00:00
christos
4f8814a98c
Fix tyop
1999-04-28 10:58:10 +00:00
christos
49a60fee19
Add loadfile_machdep.h
1999-04-28 09:19:35 +00:00
christos
c22a8166d9
use new loadfile
1999-04-28 09:18:47 +00:00
christos
c5ec77e01b
use new loadfile
1999-04-28 09:14:22 +00:00
christos
5317a4673a
Use new loadfile
1999-04-28 09:14:07 +00:00
christos
a030d021a7
Use new loadfile.c
1999-04-28 09:13:51 +00:00
christos
0766a607d4
MD defines for the MI loadfile
1999-04-28 09:10:07 +00:00
scottr
eb910c35ce
From Ken'ichi Ishizaka: correct the calculation of the frame buffer
...
offset by masking off garbage bits in the DAFB v7. This has been
tested at all resolutions and common color depths on the LC47x.
1999-04-28 05:24:08 +00:00
scw
52b5bc5eb8
Duh. My last change broke mvme147 support.
1999-04-27 18:12:44 +00:00
thorpej
b1a4c46dab
Fix a typo that prevented this from compiling.
1999-04-27 17:37:18 +00:00
nisimura
3e9afa8b4d
- Save Mach_splX() calls which don't fit well with DECstation. MIPS
...
spl machinary will be reworked, someday.
1999-04-27 08:07:26 +00:00
cgd
7b8e7abdd6
use osf1_exec_ecoff_hook()
1999-04-27 02:33:35 +00:00
cgd
6f2f5becb6
Alpha ECOFF object type definitions
1999-04-27 02:32:33 +00:00
ad
aa89ae23ba
Last fix broke kbd and mouse input under X for the console device. Fixed.
1999-04-26 23:26:11 +00:00
thorpej
5d82bfc656
Garbage-collect VM_MBUF_SIZE.
1999-04-26 22:47:34 +00:00
thorpej
b8073b401b
Garbage-collect the VM_MBUF_SIZE constant. Instead, use the size
...
(nmbclusters * mclbytes), so that the right amount of KVA space is
allocated if those variables are patched.
1999-04-26 22:46:44 +00:00
abs
0d2cfcdb5a
Update vanity config
1999-04-26 18:30:45 +00:00
ad
0c221127eb
More fixes to get the PXG working and keep the PX happy.
1999-04-26 12:05:11 +00:00
ad
e54fa8abad
Fix silly bug where fbconnect() doesn't realize that it's already been
...
called during early console initalization, then pouts because there appears
to be n+1 framebuffers. This whole thing is a mess.
1999-04-26 12:03:53 +00:00
nisimura
56a9b84b91
- MIPS processors do not impose inclusive (nesting) interrupt levels with
...
their interrupt lines. The notion and implemention of 'spl' are left
for how target ports approach to it.
1999-04-26 09:42:14 +00:00
nisimura
9e798fbe20
- Forgot to commit these two.
1999-04-26 09:36:05 +00:00
nisimura
c33ad91e49
- Sweep machdep.c; mostly imported from a development branch. Little
...
exposure of TC device any more. Correct comments which are no longer
feasible. Reorder declarations and definitions. Introduce 'clkread'
pointer to pull up model dependent high resolution timer value. Have
prom_systype() call.
- Place routines for model dependent high resolution timer.
- Program IOASIC registers inside os_init() call and nuke ioasic_init().
1999-04-26 09:23:21 +00:00
ad
d52e1e73df
Add cdev declaration for `px', major 98.
1999-04-26 04:42:10 +00:00
ad
4e3888516e
Many fixes to support PXG, PXG+ and PXG+ Turbo. Interrupt handling is
...
totally broken for the PXG and will remain so until more documentation is
available. This destroys the queueing, hardware clipping, and VDAC update
mechanisms on the PXG.
1999-04-26 04:37:33 +00:00
ad
6db752a5c1
"px.h" requires inclusion.
1999-04-26 04:34:00 +00:00
ad
98fc8dbc76
`pm' device can also be 8bpp - fix dependancy line.
1999-04-26 04:32:05 +00:00
ad
b83c863839
Fixed to match rasops config glue.
1999-04-26 04:30:26 +00:00
ad
613a381d71
Update configuration to match `rasops' fixes and config glue.
1999-04-26 04:25:38 +00:00
jonathan
9c39aaeeca
Add common SYSV* options (from i386).
...
Add "options LKM", since with ELF/ECOFF format kernels it should now work.
1999-04-26 02:20:02 +00:00
ross
f868468aaa
Never used, and work-in-progress uses a different header.
1999-04-25 20:15:06 +00:00
eeh
3f944123d6
Fix uninitialized variable bug in pmap_enter().
1999-04-25 17:23:04 +00:00
eeh
962ed777c3
Garbage collect some old stuff.
1999-04-25 16:18:46 +00:00
eeh
e921bb961d
Defer final console attach to zs_attach().
1999-04-25 16:16:31 +00:00
pk
421994a39b
In pmap_{zero,copy}_page4m() use setpgt4m() to setup temporary address
...
mappings.
1999-04-25 10:30:02 +00:00
scw
fdd587c0ea
Define MKNOLINT=no and _STANDALONE.
1999-04-25 10:05:00 +00:00
simonb
666e14b944
pmax kernels now compile with -Wuninitialized.
1999-04-25 04:04:53 +00:00
simonb
59df0560f4
Set the colormap index before checking it!
1999-04-25 04:04:16 +00:00
simonb
d2bd346fb8
Shut 'gcc -Wuninitialized' up (including a real case I missed with ddb
...
symbol initialisation).
1999-04-25 03:20:45 +00:00
simonb
5d8b1ef3e4
g/c REAL_CLISTS.
1999-04-25 02:56:26 +00:00
eeh
df102fbcb5
Deprecate `findzs()' and try to map in the zs registers if they're not mapped
...
by the prom.
1999-04-24 21:08:12 +00:00
dbj
9176bfee30
add nextkbd flag to nextcons.c so that kernel can be cleanly
...
configured without a video console
patch submitted by Matt Debergalis
1999-04-24 17:55:10 +00:00
ross
28ef22871e
Copy isdn4bsd cdevsw hooks from i386 conf.c.
1999-04-24 17:01:15 +00:00
simonb
f676307241
Include "px.h" - rcons_connect_native is only compiled in of NPX > 0.
...
Fixes PR port-pmax/7456 from Jason Thorpe.
1999-04-24 15:22:45 +00:00
simonb
b7c062102c
Oops, deleted a register_t instead of register in previous.
1999-04-24 15:04:32 +00:00
simonb
dc1d3940db
Nuke register and remove trailling white space.
1999-04-24 08:01:01 +00:00
mark
9a56e04261
Fix microtime() to sanely handle calls before the clocks have been
...
initialized. This is the DC21285 version of the IOMD fix for PR7357.
1999-04-23 09:09:04 +00:00
cgd
575e9f8dfd
support emulation-specified errno mapping tables
1999-04-23 05:43:02 +00:00
thorpej
94682a459b
These are no longer used: replaced by locore_mips1.S and locore_mips3.S.
1999-04-23 00:10:15 +00:00
wrstuden
9b0e678d51
Fix compilation errors.
1999-04-22 18:48:59 +00:00
ender
e544636cde
Disable ASC interrupt enabling for now. We don't currently use it, and
...
it seems to be causing hangs at attach time on LCII's.
1999-04-22 18:00:34 +00:00
minoura
43d6c498cc
I deleted a necessary line by mistake.
1999-04-22 16:22:49 +00:00
minoura
f9afee1b29
Bus error occurred on such machines without the SCSI ROM.
...
Insert badaddr() check before read the ROM.
1999-04-22 12:55:53 +00:00
drochner
ca053f4364
remove an "unmodified" so that the copyright notice will hopefully match
...
pk's "BSD-style (clauses: 2; no acknowledgements)" pattern
1999-04-22 10:27:16 +00:00
ross
a1cca18262
Implementing bus_space_barrier(9)::isa_bs_barrier() with panic(9)
...
does in fact get you a barrier, but it's unnecessarily drastic.
Fixes kern/7431 "SHARKs with a serial console and com.c 1.59.2.1 won't boot".
1999-04-22 10:12:41 +00:00
leo
098c344c9b
Make sure that we can link against the libsa.a library. It looks like a
...
gross hack, but I don't know how to fix this in another way.
1999-04-22 07:17:01 +00:00
chs
05b971dd5f
in pmap_pageable(), rather than marking a PT page as not modified
...
to trick the pagedaemon into freeing it later, just unmap the page
and free it immediately. fixes PR 7337.
1999-04-22 04:24:52 +00:00
simonb
6f6573cb10
Move BOOTINFO_ADDR up to 0x8001fc00, and reduce the maximum size of a
...
bootinfo record to 1kB (we are using less than 200 bytes now) so that it
doesn't run into addition PROM memory.
At 0x8001f00 the bootinfo record was stomping on some memory used by the
SFB cards for font information.
1999-04-22 01:52:54 +00:00
ad
a895fbfd58
Define rcons_connect() only if (NFB > 0). Define rcons_connect_native() only
...
if (NPX > 0). Needed for fixed `rasops' config glue.
1999-04-22 00:33:30 +00:00
ad
ca39efe84c
Remove misplaced comment.
1999-04-22 00:29:59 +00:00
fvdl
3fb6f009a4
Handle instruction prefixes (skip them, in our case).
1999-04-22 00:23:33 +00:00
simonb
25715bb0f2
Comment out 'config nfsnetbsd'.
1999-04-21 12:53:56 +00:00
scottr
136972df3a
Actually, the last change solved a different but related problem than
...
the one mentioned in PR 7376. By clearing the display in iteon()
instead, we can kill both birds with the same stone.
1999-04-21 06:00:07 +00:00
scottr
48ff49fee0
When attaching the ite console, clear the entire display rather than assuming
...
that the emulator will do it for us. (The emulator will only clear
full character-sized rows.) Incidentally fixes PR 7376.
1999-04-21 05:18:17 +00:00
simonb
24323d7ef4
In cpu_startup():
...
+ Initialise minaddr to the start of the file I/O buffers.
+ Check for overallocation of RAM for these buffers.
+ Change function name in panic message to match reality.
Code taken from almost every other port, and fixes the:
uvm_km_suballoc: unable to allocate space in parent map
panic that some people have been experiencing.
1999-04-21 02:03:24 +00:00
ross
be000bc016
Revert 1/2 of previous change. INSECURE is still OK for alpha.
1999-04-20 21:43:03 +00:00
thorpej
f7b0fea081
After reviewing the Green Book, BPT traps do indeed leave the PC pointing
...
to the instruction _after_ the `call_pal bpt' instruction.
1999-04-20 21:30:15 +00:00
thorpej
375b3fa699
Prototype alpha_debug(), and add some definitions for KGDB.
1999-04-20 21:23:56 +00:00
thorpej
62d09f4f93
Move the inclusion of <machine/bus.h> to within a _KERNEL section.
1999-04-20 21:23:09 +00:00
thorpej
869951571d
- Clean up ddb_trap() somewhat, and handle exceptions that happen while we're
...
in DDB (e.g. if a bad pointer was dereferenced; the debugger will recover).
- Change a comment to indicate that we are on the debugger stack when we get
to ddb_trap().
- Fix possible buglet in computation of the branch target in db_branch_taken().
1999-04-20 21:19:48 +00:00
thorpej
701edb8db8
- Revert previous, and do debugger entry if kernel BUGCHK or BPT traps
...
happen. If the debugger doesn't handle the trap, arrange things so the
debugger won't be called again before we panic.
- Before panic'ing, give the debugger a chance to field the trap, and
if the debugger has handled things, allow the kernel to continue running,
like the i386 port does.
1999-04-20 21:16:59 +00:00
thorpej
a12dedc3ea
- Revert previous change to XentIF(), now that we're going to enter the
...
debugger differently.
- Pull in debugger glue if DDB is configured.
And one unrelated change, while I was here: Don't create a fake trapframe
for main(); it hasn't been used by main() for quite some time, and panic
if main() returns, because that's not supposed to happen now.
1999-04-20 21:11:59 +00:00
thorpej
1b2eac076f
Add a common debugger entry point, alpha_debug(), which performs various
...
tasks (i.e. switches to the debug stack) and then invokes the appropriate
debugger (DDB or eventually KGDB).
1999-04-20 21:09:49 +00:00
thorpej
9d78593b30
Back out previous; we're going to dispatch to the debugger differently.
1999-04-20 21:08:23 +00:00
pk
901a03b897
Protect extent(9) ops with splhigh().
1999-04-20 20:15:48 +00:00
mark
7c3542d098
Add the rnd pseudo device.
1999-04-20 09:30:08 +00:00
mark
902004cefc
Don't try and calculate the time in microtime() unless cpu_initclocks()
...
has already been called and thus we know the values the timers are using.
This also ensures that clock_sc will always be valid when we try and use
it to read the timer registers.
Fixes PR7357.
1999-04-20 09:14:32 +00:00
mrg
ad52a7fe49
make this compile again with no rcons.
1999-04-20 06:42:54 +00:00
ross
702267a538
options INSECURE, like i386
...
pckbc* -> pckbc0, like i386
1999-04-20 06:16:35 +00:00
simonb
dc3b870fce
Add NFS_BOOT_DHCP so that netboot kernels can find the root filesystem.
1999-04-20 05:56:52 +00:00
simonb
1065cb27a3
s/NFS_BOOT_BOOTP/NFS_BOOT_DHCP/
...
DHCP is a superset of BOOTP, and still works with BOOTP servers.
1999-04-20 05:54:44 +00:00
is
bbeb5012d5
Add dummy bus_space_barrier method, like mac68k
1999-04-20 05:48:37 +00:00
thorpej
f30375cda0
Dispatch to the debugger from the Intruction Fault trap vector directly,
...
rather than doing it from trap(). This so we can switch to a temporary
stack for the debugger (in a forthcoming commit).
1999-04-19 23:24:14 +00:00
thorpej
d24359e5c8
Define BPT and BUGCHK Intruction Fault codes.
1999-04-19 23:22:19 +00:00
kleink
ed74932033
Add COMPAT_SVR4 for m68k.
1999-04-19 21:22:56 +00:00
kleink
36e329cd5b
Define FP as a synonym for A6.
1999-04-19 21:19:08 +00:00
kleink
6a9c669828
Move linux_reenter_syscall() to a common location and rename it to
...
reenter_syscall() - it's going to be shared with COMPAT_SVR4 and soon be
used by native code.
1999-04-19 20:58:37 +00:00
scw
cc712cde63
Make the memory sizing code *really* work on mvme167.
1999-04-19 19:15:50 +00:00
mycroft
0e603b27d7
+LFS +MFS
1999-04-19 16:57:06 +00:00
ragge
d9010c853c
Don't try to init the L2 cache if there is no L2 cache. (KA640)
1999-04-19 14:50:57 +00:00
minoura
35d1114201
Add missing par0.
1999-04-18 15:43:21 +00:00
minoura
26b74e1082
Handle T_ILLINST in kernel mode.
...
This occurs in fpu_probe() when the FPU is not installed on the system.
Because of this, FPU_EMULATE wouldn't work at all.
1999-04-18 14:39:10 +00:00
minoura
4fcf23e9b0
Handle F line emulation correctly when FPU_EMULATE is enabled.
1999-04-18 14:37:09 +00:00
mrg
a3b0c3845d
fix some comments.
1999-04-18 10:54:23 +00:00
mrg
8b70f01b60
use LINKFLAGS=-X to avoid stripping out per-file debugging info (idea from chuck@netbsd.org)
1999-04-18 10:52:31 +00:00
minoura
8eb1fd77e9
Do not memcpy to the bouncebuffer in datain.
1999-04-18 00:38:58 +00:00
minoura
aae9b1588b
Typo fix.
1999-04-18 00:36:36 +00:00
kleink
ea8f9b570f
Inclusions are already relative to the root of the kernel source tree, no need
...
to traverse the path all the way up again.
1999-04-17 21:26:59 +00:00
ws
5423093850
Modify syncicache on PowerPC from an inline to a real function.
...
Support different cache line sizes with the same object code in userland.
While here, move the function to implementation name space.
1999-04-17 21:16:45 +00:00
chs
b3d919281a
update one last call to uvm_pagealloc().
1999-04-17 20:03:39 +00:00
mhitch
70d16931bd
Correct the way I was using the transfer length for ATAPI commands. ATAPI ZIP
...
drives are now usable.
1999-04-17 19:49:24 +00:00
is
3faf133984
Cut-down kernel for miniroot installation.
...
Leave everything out that isn't needed.
1999-04-17 19:05:19 +00:00
mhitch
46f5ce02e0
Do a REQUEST SENSE when ATAPI operation returns an error. This is needed to clear
...
the Unit Attention status, i.e. after a media change on a CDROM.
1999-04-17 17:08:12 +00:00
ragge
d80adac6a7
Only allocate QDSS memory if there is a QDSS as console.
...
QDSS should also work on KA650 now. (untested)
1999-04-17 17:02:49 +00:00
drochner
2519327c42
oops - forgot half of it
1999-04-17 16:52:06 +00:00
drochner
9684e9a613
disable the "aria" sound board per default until the problems with its
...
"probe" functions are solved (gives false positives)
1999-04-17 16:50:26 +00:00
drochner
7694cc18a5
wsconsio.h is gone
1999-04-17 13:00:04 +00:00
simonb
cbd32a724f
Sync with rev 1.9 of sys/arch/i386/stand/lib/loadfile.c:
...
another nit in error handling: don't try to print out a NULL
filename (which means "use default" and is dealt with properly
by open())
1999-04-17 11:24:16 +00:00
drochner
982c55e22c
another nit in error handling: don't try to print out a NULL filename
...
(which means "use default" and is dealt with properly by open())
1999-04-17 11:18:36 +00:00
ragge
e9689cc9bd
Use "access_type" in pmap_enter() more intelligent.
...
Allocate device register space bigger than the logical page size
from the kernel map, thus decreasing the pre-allocated page table memory.
1999-04-17 00:01:18 +00:00
thorpej
e49833cd68
Now that we have direct-mapped pool pages, we can garbage-collect VM_MBUF_SIZE
...
and don't need to allocate mb_map.
1999-04-16 21:47:11 +00:00
thorpej
4b603c180a
Use the same hack as pmap_zero_page() and pmap_copy_page() to provide
...
direct-mapped pool pages.
1999-04-16 21:45:19 +00:00
thorpej
3b29e1e158
Clean up the Rawhide interrupt code some more:
...
- Actually display the kn300 irq, not the MCPCIA irq, in the interrupt
string. Also, don't bother displaying device/pin on strays, since
it doesn't play will with shared interrupts that would happen due to
a PCI-PCI bridge.
- Shave a few more cycles out of the interrupt dispatch routine.
1999-04-16 21:29:47 +00:00
thorpej
48a53c250d
Add a stub pciide_machdep_compat_intr_establish() for Power Macintosh.
...
Power Macintoshes with PCI IDE (e.g. the new Blue G3) don't have them
wired to compatibility mode, so just return a NULL cookie. We still have
to have this routine for the PCI IDE driver to link.
1999-04-16 21:15:29 +00:00
kleink
5e7ff129c8
Normalize path of files.sunos.
1999-04-16 11:13:38 +00:00
pk
0a737db1c7
oldmon' proms need
putstr()' too.
1999-04-16 08:55:37 +00:00
ross
74de38f9a9
Really say goodbye to old wscons.
1999-04-16 07:24:13 +00:00
mhitch
bb2b8c8586
Change reading the ATAPI IDENTIFY data: a ZIP drive responds differently than my CDROM
...
and will cause the drive to hang on boot. The ZIP drive still does not work, but the
system no longer will hang,
1999-04-16 03:29:49 +00:00
thorpej
d38cab08e5
Add SGMAP stuff for Window 2, and rename Window 0's SGMAP stuff to indicate
...
its use.
1999-04-16 02:18:07 +00:00
explorer
6f9b6a2f1a
remove BUFPAGES= line for now (commented out)
1999-04-16 01:11:22 +00:00
explorer
927ebf9949
sync to the currently installed kernel
1999-04-16 01:09:25 +00:00
thorpej
1ddebc8444
Fix a silly bug present since rev 1.1; the direct-mapped window is
...
supposed to be Window 1, but a cut'n'paste error made it stomp over
Window 0, thus breaking ISA DMA. Fix this. (Confirmed to work with
floppy driver.)
While I'm here, do something I've been meaning to do for a while: change
Window 1 from a 1G at 2G to a 2G at 2G direct-mapped window, and add
a Window 2 of 1G at 1G SGMAP-mapped. Chain Window 2 to Window 1, and
use it as a fall-back for PCI DMA if the system has more than 2G of RAM.
1999-04-15 23:47:52 +00:00
thorpej
31c4e50d3a
- Change the "savunit[]" and "savirqs[]" arrays to ints, rather than chars.
...
The access is more efficient this way (and this was done in the interrupt
dispatch code, so some cycles are actually shaved), and gcc gets annoyed
when chars are used as array subscripts.
- Adjust for the fixed Rawhide console initialization.
- When mapping a PCI interrupt, don't always map device 1 to IRQ 16. Device
1 is only the internal 53c810 on MID 5, and is an invalid device number
on any other MID.
- Adjust for change mcpcia_config/mcpcia_softc structures.
- Nuke the kludgy linked list of mcpcia_softc structures. Instead, just
use savunit[v] to index into mcpcia_cd.cd_devs[] to find the MCPCIA
which has the stray interrupt.
- Some other minor cosmetic cleanup.
1999-04-15 22:37:25 +00:00
thorpej
592cdd4bda
Adjust for new register access arguments, and make one slight cosmetic
...
change.
1999-04-15 22:32:21 +00:00
thorpej
f2368c1301
CHIP_EX_MALLOC_SAFE() now must pay attention in class.
1999-04-15 22:31:16 +00:00
thorpej
279f30928f
Add support for a single statically-allocated MCPCIA configuration structure,
...
which holds state of the MCPCIA to which the console is attached.
- All MCPCIA info is now stored in the mcpcia_config structure; the
mcpcia_softc only contains a struct device and a pointer to one of these.
- If attaching the console MCPCIA, use the static configuration, else allocate
the substructure.
- Rename mcpcia_init() to mcpcia_init0(), and make it take a "mallocsafe"
argument.
- Implement a new mcpcia_init(), which looks for the MCPCIA which has the
EISA bridge attached. Initialize this MCPCIA as the console MCPCIA (the
console on the Rawhide is only allowed on this MCPCIA; firmware rule).
- Eliminate the kludgy linked listed of mcpcia_softcs. Just use mcpcia_cd
to find all configured instances.
Separate bug fix: Actually clear the MCPCIA error mask after probing for
PCI (and ISA) devices, don't just clear it twice in mcpcia_init0().
Some other slight cleanup.
1999-04-15 22:27:40 +00:00
thorpej
9af474a62c
- Add a comment explaining why we probe for MCPCIAs in the shuffled
...
MID order.
- Export the shuffled MID order; other files now need it.
- Don't derive the GID from the unit number of the mcbus. A user could
render his kernel non-bootable by using a different unit number in the
kernel config file. We (and the hardware) only support one MCBUS, so
simply use instance 0. Note that this will need to be adjusted if there
are even any multiple-MCBUS systems.
1999-04-15 22:19:52 +00:00
thorpej
9a4a0a3c81
DEC_KN300 no longer uses PROM console.
1999-04-15 22:15:38 +00:00
thorpej
1287bb8599
Always call the platform's cons_init routine (note, it may not do anything,
...
but it's a very handy place to put console-related debugging code in,
even if we're still using the PROM console).
1999-04-15 22:15:05 +00:00
thorpej
f3314e93e8
Add an empty dec_kn8ae_cons_init().
1999-04-15 22:13:41 +00:00
thorpej
02aa04c89e
Massive cleanup of the AlphaServer 4100 console initialization code.
...
Instead of using the PROM console until autoconfiguration is complete (at
which time we called dec_kn300_cons_init() directly!), make this work like
basically all of the other systems which have PCI attached consoles. That
is, initialize the PCI chipset which holds the console early, and perform
console initialization at the correct time.
This should make both PCI and ISA display consoles with PC keyboards work
(i.e. the deskside workstation version of the Rawhide).
1999-04-15 22:11:57 +00:00
thorpej
0df038ccb1
- Use the CTB_TURBOSLOT_* macros from rpb.h.
...
- Don't assume bus/slot == ISA display. Instead, test for TYPE_ISA.
- Some cosmetic (whitespace, mostly) cleanup.
1999-04-15 22:06:47 +00:00
thorpej
f03f59a5b8
Back out the change to swap Lev1map on MP systems that use the PROM console.
...
Basically, we have to completely nuke the _PMAP_USES_PROM_CONSOLE code from
orbit before MP is going to properly work.
1999-04-15 21:21:25 +00:00
ad
d79296c5e9
Disable ntohl/htonl due to duplication in libkern/arch/mips.
1999-04-15 15:30:46 +00:00
leo
84169631c6
Fix the IPL comparison. The previous version was plain wrong and caused
...
random panics in the pool allocator.
1999-04-15 09:15:29 +00:00
thorpej
e8e6061642
Slight braino in previous.
1999-04-14 23:55:35 +00:00
ragge
71a57b22eb
Use the pool allocator for mbufs instead of a separate submap.
1999-04-14 23:42:00 +00:00
thorpej
25a0e78bf3
Add macros to decode the `turboslot' member of the Console Terminal Block.
1999-04-14 23:28:31 +00:00
ragge
797a7428d6
First towards use of bus.h routines on vax. Allocate DMA memory for
...
LANCE chip on vaxstations.
1999-04-14 23:14:45 +00:00
ragge
397795c32d
Machines using KA48 must have memory mapped in, and use the same
...
addresses for console as KA46. From Michael Kukat.
1999-04-14 16:19:03 +00:00
christos
30ffed2123
remove bogus prototype for getopt
1999-04-14 15:22:46 +00:00