jonathan
466e784ee1
defopt DDB.
1998-07-04 22:18:13 +00:00
hubertf
a18ed5d074
add missing ";" for non-UVM systems
1998-07-03 21:32:43 +00:00
tv
b457cc5098
For now, do not build just "netbsd" as the root device probe cannot
...
distinguish wd0, cs0, etc. Build only netbsd_netboot and netbsd_wdboot.
1998-07-02 23:39:22 +00:00
augustss
5aa0920e7d
Make it compile again.
1998-06-29 13:53:00 +00:00
thorpej
9609289966
When loading a DMA map, check that the pages in the transfer are within
...
the tag's DMA range(s), if ranges are specified.
1998-06-28 07:32:32 +00:00
thorpej
46320bb017
Clean up the bus space function namespace somewhat; make sure they don't
...
collide with function names used in other parts of the kernel.
1998-06-28 07:27:51 +00:00
thorpej
3497ab9a8c
Add a pointer to an array of DMA ranges. DMA buffers must lie within
...
a range, or else an error is returned when loading a map. If the ranges
pointer is NULL, no range checks are performed.
1998-06-28 03:22:10 +00:00
thorpej
e3f4206162
Only use DMA_BOUNCE if it is defined.
1998-06-28 00:53:21 +00:00
thorpej
ad9e227ed7
Fix a bunch of printf arguments.
1998-06-27 02:48:24 +00:00
thorpej
a4e8fc45cd
Nuke the _cookie member of the bus_dma_tag_t; it's not used by anything.
1998-06-27 02:16:23 +00:00
thorpej
06f1469055
Really namespace-protect the virtual address in the DMA segment structure.
1998-06-27 02:13:39 +00:00
thorpej
06c15a479d
Remove some #if 0'd i386-specific code that was inherited when this
...
was copied from the i386 port.
1998-06-27 02:11:19 +00:00
thorpej
9da799cc58
Normalize the real/avail mem printfs, and make them consistent wrt.
...
UVM vs. Mach VM.
1998-06-26 22:42:37 +00:00
thorpej
eb7e67ad13
If the IPL masks are debugging information, then only print them #ifdef DEBUG.
1998-06-26 22:40:59 +00:00
lukem
bd8d501f7e
remove options FIFO; it's now the default
1998-06-26 01:53:43 +00:00
mark
abbf864c5c
Provide a dummy definition of __warn_references macro when __GNUC__ is not
...
defined.
1998-06-25 21:54:35 +00:00
thorpej
971b8956ef
defopt KTRACE
1998-06-25 21:18:11 +00:00
mark
c69d26fdf6
Fix a sub instruction that should be subs. (Bug spotted by Richard Earnshaw)
1998-06-25 17:24:39 +00:00
mark
5c82c19d55
Define cfattach structure for ofbus_root_ca and prototypes for
...
ofbus_match() and ofbus_attach().
1998-06-24 19:44:33 +00:00
mark
a2d7775fa1
Implement a delay() function for OFWGENCFG configurations.
1998-06-24 19:31:59 +00:00
mark
9dba4cd582
Fix bug in last commit regarding the positioning of the added #endif.
1998-06-24 19:31:16 +00:00
mark
3102dd4e2c
Remove definition of cpu_reset_address as it is no longer needed.
1998-06-24 19:27:12 +00:00
mark
adfa28edcf
Disable cpu_reset() on OFW configurations as they will use OF_boot()
...
instead.
1998-06-24 19:22:48 +00:00
mark
a34d0aae74
Cleanup time:
...
Fix code indenting.
Removed a load of unnecessary includes.
Removed unnecessary prototypes and variables.
Removed dead variables debug_flags and cpu_cache.
Removed some unnecessary cache syncs.
Only sync the first 64 bytes after setting up the vectors.
Removed all the boot argument checking code and instead call the
generic ARM boot argument checking code parse_mi_bootargs() in machdep.c
Fixed the ofrootfound() function so that it builds.
1998-06-24 18:50:56 +00:00
mark
7594278206
Cleanup time:
...
Fix code indenting.
Removed a load of unnecessary includes.
Removed unnecessary prototypes and variables.
Removed dead variables debug_flags and cpu_cache.
Removed some unnecessary cache syncs.
Only sync the first 64 bytes after setting up the vectors.
Removed all the boot argument checking code and instead call the
generic ARM boot argument checking code parse_mi_bootargs() in machdep.c
Use the get_bootconf_option() function to check for the shark specific
quiet and noquiet options.
1998-06-24 18:49:12 +00:00
mark
b3354a2d24
Removed unused variable from setstatclockrate().
...
Removed unused static variable statclockirq.
Removed the old commented out irq_claim() code (supplanted by intr_claim())
1998-06-24 18:43:44 +00:00
mark
720b93f1c9
Removed pagetables_start, debug_flags, cpu_cache and cpu_ctrl as these
...
are dead variables.
Removed initialisation of cpu_cache.
Declared process_kernel_args() as static.
1998-06-24 18:41:35 +00:00
mark
398bab14be
Removed pagetables_start as this is a dead variable.
...
Declare process_kernel_args() as static.
1998-06-24 18:40:10 +00:00
mark
86e861d49f
Rename the boot() prototype to cpu_reboot().
...
Remove consinit() and process_kernel_args() prototypes.
1998-06-24 18:37:49 +00:00
mark
9f161ebe94
Remove pagetables_start and the associated memory allocation. L1 page
...
tables are allocated by the pmap code so this allocation is just wasting
memory.
1998-06-24 17:18:09 +00:00
sommerfe
446beb9dc4
defopt COMPAT_386BSD_MBRPART into opt_mbr.h
1998-06-22 21:12:51 +00:00
tv
f7eef89222
Kill no longer necessary CACHE_CLEAN_VM option.
1998-06-21 23:40:12 +00:00
tv
339cefc763
Integrate Mark's CACHE_CLEAN_VM C implementation, taken away from
...
cpufunc_asm.S.
1998-06-21 23:23:40 +00:00
mark
522eff7069
Fix unused variable warning in csCopyTxFrame() when DIAGNOSTIC is not
...
defined.
1998-06-20 20:38:33 +00:00
tv
9018330f63
Make pc0 and ofcons0 mutually exclusive, for now.
1998-06-19 18:29:31 +00:00
tv
ba144108f6
Bring shark includes to mainline and nuke the branch.
1998-06-19 15:55:13 +00:00
mark
490b5a5419
Removed userret_count diagnostic bits as these are outdated.
1998-06-18 22:34:39 +00:00
mark
7d99120c16
Don't build in the ARMFPE by default.
...
Removed a load of irrelevant or redundant options.
Added a couple of extra filesystems (disabled).
1998-06-18 22:32:33 +00:00
tv
ef5c9d214c
Don't configure ofcons by default.
1998-06-18 17:39:17 +00:00
mark
ed346cc16a
Removed the kcopy() function as this is now implemented in bcopyinout.S.
1998-06-17 20:14:07 +00:00
mark
2aab040047
Major overhaul. Rewritten most of this file to optimise copyin() and
...
copyout() for 32 bit aligned addresses. Also copyin() and copyout() now
share the same actual copying code.
Use the same copying code to implement kcopy().
1998-06-17 20:13:38 +00:00
mark
138ccaa418
Rewritten and cleanup the file.
...
Share the string copying code between copyinstr() and copyoutstr().
1998-06-17 20:10:39 +00:00
mark
de3485d454
Merge in SHARK specific bits to initialise the sequoia, rtc and
...
attach the OFW devices.
1998-06-17 19:40:50 +00:00
mark
841b858742
Define interrupt information for SHARK.
1998-06-17 19:36:33 +00:00
mark
a27bae87fb
Define _BootConfig structure for OFW based booting.
1998-06-17 19:35:24 +00:00
mark
c5d3e05292
Implement debugger Openfirmware commands ofboot, ofenter and ofexit.
...
Calculate esym slightly differently on SHARK or OFWGENCFG based
configurations.
1998-06-17 19:33:37 +00:00
mark
27ed02bef1
Implement debugger OFW commands ofboot, ofenter and ofexit.
1998-06-17 19:31:44 +00:00
mark
3d9f37a664
Don't try and dump IRQ mode stack with Generic OFW config.
1998-06-17 19:29:28 +00:00
mark
2c44cea3ba
Added console probe and init functions so serial consoles are supported
...
serial ports via the pioc.
Removed redundant header files.
1998-06-17 00:37:00 +00:00
kleink
1fbd0b3749
GC the unused `physadr' type, which was not able to hold a complete physical
...
address on 2 architectures anyhow. Also, move the definition of the `label_t'
type inside _KERNEL protection, since it is specific to the in-kernel
setjmp()/longjmp() implementations.
1998-06-14 20:09:22 +00:00
tv
254edea7e0
Merge Shark/OFW changes for device configuration.
1998-06-12 23:59:22 +00:00
tv
cb168e274b
Add to mainline.
1998-06-12 23:29:27 +00:00
cgd
651b44e211
Rework the way kernel include files are installed. In the new method,
...
as with user-land programs, include files are installed by each directory
in the tree that has includes to install. (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.) The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change. Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
1998-06-12 23:22:30 +00:00
tv
67856105fa
Merge RiscPC and Shark files; now all machines will make the proper device
...
config files.
1998-06-12 23:21:53 +00:00
tv
49fd1860fe
Add UVM support.
1998-06-12 23:08:52 +00:00
tv
11e9a04748
Add a hack to make the ofisa.o compile using the old MD isadma code, for
...
now.
1998-06-12 21:07:44 +00:00
tv
7ea013ce82
Include "pc.h" and check NPC - allows ofcons to be the system console.
1998-06-10 21:55:30 +00:00
tv
00ede2160e
Change ddb_init() for a.out to provision for kernels which are not booted by
...
the current 'bootblock' method, like the Shark, which preloads and preformats
the symbol table right in the boot code.
1998-06-09 01:57:41 +00:00
tv
5ba723ecf2
Cleanup: move {SWAP,DEV,VNODE}PAGER to std.arm32; required for Mach VM, and
...
happily ignored by UVM.
1998-06-09 01:15:48 +00:00
mark
4c80d03830
Remove several cache invalidation instrcutions from routines like
...
sa110_context_switch() as they are not needed.
1998-06-09 01:02:14 +00:00
tv
46565ac270
Add disksubr_acorn.c as well. These could likely be changed to use kernel
...
options, but this gets the kernel at least to compile, link, and work.
1998-06-09 00:39:47 +00:00
tv
b4511c9330
Add disksubr_mbr.c dependent on `disk'.
1998-06-09 00:31:23 +00:00
tv
8f428e3872
Kill non-NetBSD RCS tags.
1998-06-08 20:23:07 +00:00
mark
0f5f9c0221
Added support for DOS MBRs in addition to filecore boot blocks from
...
Chris Demetriou. Filecore and MBR handling has been split out into
separate files. Still needs some work before this could become MI.
Also fix the way in which arm32 filecore checksums are calculated so
that sectors filled with the same byte will not pass the checksum.
1998-06-08 20:21:17 +00:00
tv
f19cf41458
Add rcsID.
1998-06-08 18:18:58 +00:00
tv
ae1b70e048
ISA shark-dependent code. Missed this file on last commit.
1998-06-08 18:18:11 +00:00
tv
ee69a0b0a0
Add ISA support needed for Shark and the CATS board (CATS isa_machdep not
...
here yet).
1998-06-08 17:49:42 +00:00
mark
c6d1832868
Include all the correct header files to get the prototypes of all the
...
soft net interrupt functions.
Handle NETISR_NATM soft interrupts.
1998-06-04 17:45:50 +00:00
mark
61298c0cbf
Type postmortem_active as an int. (Pointed out by Patrick Welche).
1998-06-04 17:44:18 +00:00
thorpej
2e846b8c1e
Sync w/ i386 port.
1998-06-03 04:20:22 +00:00
mark
2c1cbdae75
Moved delay() from machdep.c to iomd_clock.c as delay will be dependant
...
on the system timers being used.
1998-06-02 21:57:58 +00:00
mark
bdfeab3714
Merge in UVM support from Neil Carson <neil@causality.com>.
1998-06-02 20:41:46 +00:00
mark
0618ed7122
Define the maximum size of the kernel VM data area.
1998-06-02 20:33:01 +00:00
mark
ea702a5130
Switch to MACHINE_NEW_NONCONTIG as the default.
1998-06-02 20:32:18 +00:00
mark
4ee7a131ad
Don't allow the copyin and copyout routines to use bcopy() as this will
...
not work as the stack cannot be unwound if the copy aborts due to a fault.
1998-06-02 19:14:44 +00:00
mark
9a4b24a02a
Simplify the stack filling code when using the STACKCHECKS option.
1998-06-02 14:34:55 +00:00
mark
09a9c016e3
Added Manuel Bouyer's recent i386 _bus_dmamap_load_buffer() patch :-
...
Add handling of DMA boundary barrier in _bus_dmamap_load_buffer(). This
affects all bus_dmamap_load* functions of bus_dma(9).
While I'm there fix a bug where the dm_segs array could be overflowded by one.
1998-06-01 22:47:27 +00:00
thorpej
a7f360c6c9
Specify a non-profiling C rule.
1998-05-31 23:25:41 +00:00
tv
ed42c358fd
Revert. (wdc driver is still MD.)
1998-05-26 01:42:53 +00:00
mark
3a61502673
Initial commit of arm32 dependant PCI structures and type definitions.
1998-05-25 22:09:25 +00:00
mark
0b9fa28940
Initial commit of generic arm32 bus dma support.
1998-05-25 22:01:49 +00:00
kleink
a97fc2f180
If any of _ANSI_SOURCE, _POSIX_C_SOURCE or _XOPEN_SOURCE are defined, don't
...
provide any identifiers other than sig_atomic_t.
1998-05-25 20:59:01 +00:00
tv
6cdddb35ee
Don't duplicate device information: get ISA and ATAPI info (which is the
...
same) from dev/isa/files.isa and dev/ata/files.ata.
1998-05-25 04:32:12 +00:00
mark
073de471d7
Remove M68040 ifdefs from the driver inherited from the initial import
...
of the file from the arch/amiga/dev directory.
Leave reminders though that attention needs to be paid at these points
for when DMA is implemented.
1998-05-24 18:19:29 +00:00
mark
8ef62973c1
Comment out the rp variables as they are not currently used.
...
Removed the register keywords.
In setdisklabel() declare 'i' as an int.
1998-05-24 17:13:30 +00:00
cgd
a2c213c028
fix code so that a 'generic' OFW kernel (which only uses OFW drivers)
...
will again compile. This code needs a bunch of cleanup, and the
"generic OFW kernel" code should probably be split into a different
directory than the code which implements the interface to OFW.
1998-05-22 17:43:10 +00:00
thorpej
6626878e7b
It is no longer necessary for pmap_pinit() and pmap_release() to be
...
pmap interface functions, as NetBSD no longer uses statically allocated
pmaps (except for the kernel pmap, which is special-cased anyhow).
1998-05-19 19:00:11 +00:00
mark
82d14dbeb2
Add MACHINE_NEW_NONCONTIG option.
1998-05-08 23:40:20 +00:00
mark
f7eafd6679
Remove the standard option MACHINE_NONCONTIG.
1998-05-08 23:36:47 +00:00
mark
a76affde1d
Add MACHINE_NEW_NONCONTIG support.
1998-05-08 23:36:08 +00:00
mark
d4a8f4cf29
Commit MACHINE_NEW_NONCONTIG support based on Chuck's conversion notes.
1998-05-08 23:34:00 +00:00
mark
7de24625c1
The reset address is no longer fixed so don't refer to it as 0x00000000.
1998-05-08 23:25:31 +00:00
mark
a13ca3b4d2
Don't declare variables as register ...
...
Don't cast pointers to u_int for printing, use %p instead.
Minor restructure of curproc == NULL test in ast().
1998-05-08 23:24:08 +00:00
mark
51ce82ec50
Don't include machine/vmparam.h.
1998-05-08 23:21:31 +00:00
kleink
687ea7404c
Fix some arithmetics lossage on typeless pointers.
1998-05-08 16:55:15 +00:00
kleink
aa36ad1f55
Fix some arithmetics lossage on typeless pointers.
1998-05-07 21:01:41 +00:00
cgd
dd0142f10f
add NetBSD RCS IDs and delete other RCS keywords, per the standard style.
1998-05-01 21:18:39 +00:00
cgd
c0c21ff62f
clean up some warnings, adapt to the changed state of the world.
1998-05-01 21:14:46 +00:00
cgd
5317573641
adapt to OFW code changes
1998-05-01 21:13:53 +00:00
cgd
2fb206b0cf
clean up, get it closer to compiling. (Note that this change includes
...
a change marked XXX, where gcc -Wall pointed out a bit of the original
code that looked wrong. The jury's still out on whether or not it was
really wrong, but it looked _very_ suspicious.)
1998-05-01 21:13:02 +00:00