uch
242aff8afc
adapt to new pmap.
2002-05-09 12:36:17 +00:00
uch
0aaff2a14f
IOM_RAM_BEGIN is changed to specify physical address.
2002-05-09 12:35:44 +00:00
uch
20ac353f38
adapt to new pmap.
2002-05-09 12:34:53 +00:00
uch
9e6860e202
IOM_RAM_BEGIN is changed to specify physical address.
2002-05-09 12:34:20 +00:00
uch
7571effdda
adapt to new pmap.
2002-05-09 12:33:18 +00:00
uch
303d5b61d8
change bootstrap stack to below the 'start'
2002-05-09 12:32:55 +00:00
uch
3a1a0b37af
IOM_RAM_BEGIN is changed to specify physical address.
2002-05-09 12:32:09 +00:00
uch
cee1a2f41a
remove unused macro.
2002-05-09 12:31:38 +00:00
uch
2ca56b0d33
remove postsig. postsig is called by ast().
2002-05-09 12:31:19 +00:00
uch
d5020bf906
remove obsolete interface. add defines for inquire cache feature.
2002-05-09 12:30:45 +00:00
uch
44b57799f2
fix comment
2002-05-09 12:30:11 +00:00
uch
4c73523c72
suitable for SH3/SH4 memory architecture.
...
support non-contiguos memory banks.
2002-05-09 12:29:48 +00:00
uch
c34e1b1ad5
adapted to pmap and exception code changes.
2002-05-09 12:29:16 +00:00
uch
5cf2727a95
new pmap designed for SH3/SH4.
2002-05-09 12:28:08 +00:00
uch
bf93dc9b4c
remove obsoleted functions. add sh_tlb_update() for update TLB.
...
MMU mode is changed to multiple virtual storage mode for new pmap code.
2002-05-09 12:27:04 +00:00
uch
fa6d5570e7
fix ASID mask define
2002-05-09 12:26:16 +00:00
uch
944192661c
s/trapno/expevt/ for clarity.
2002-05-09 12:25:41 +00:00
uch
d610fecf0f
rework general exception, and TLB exception handling for new pmap.
...
all exception staffs are moved to exception.[ch]
2002-05-09 12:24:19 +00:00
jdolecek
77003c3fea
seems like a ``cd .'' is necessary in non-interactive shell
...
to get PWD set in /bin/sh
XXX this should really be converted to Makefile, and avoid non-intree
XXX tools like zip
2002-05-09 07:18:46 +00:00
thorpej
7d3e137a0c
Hard-wire CLKF_BASEPRI() to 0 on the ARM, since spllowersoftclock() might
...
not actually be able to unblock the interrupt, which would cause us
to run the softclock interrupts with hardclock blocked.
Per discussion w/ Charles Hannum.
2002-05-08 22:22:46 +00:00
mycroft
bfea3f39cb
Wire CLKF_BASEPRI() to 0 on this platform. (See tech-kern.)
2002-05-08 18:45:49 +00:00
uwe
afd360002d
Oops, mspcic_bus_mmap was, effectively, adding offset twice.
...
While here, add __KERNEL_RCSID.
2002-05-08 16:51:39 +00:00
pooka
6562508c4b
Make INDY the Indy config file
...
Add DRAKEN as a model of what to do with the O2 (effectively the same
file as the old INDY)
2002-05-08 13:52:17 +00:00
jdolecek
7ad1acf323
use ${.OBJDIR} rather than ${.CURDIR}/obj.${MACHINE} (eek)
...
g/c -I${.CURDIR} and -I${S}/lib/libkern from ${INCLUDES}
build libsa dev_net.c via .PATH and SRCS rather than special rules
2002-05-08 11:27:30 +00:00
lukem
4ec732199e
nuke MD installboot (ok-ed by thorpej)
2002-05-08 04:09:46 +00:00
pk
eb95178e15
Patch up to work with MI installboot(8).
2002-05-07 14:13:02 +00:00
jdolecek
87f82807b0
some whitespace cleanup
2002-05-07 13:03:47 +00:00
lukem
9e4faf5cb2
no more ../../sparc/stand/installboot
2002-05-07 12:45:18 +00:00
lukem
37d1d9cf41
decommission old installboot; it doesn't work on bootxx anymore anyway.
2002-05-07 12:32:52 +00:00
jdolecek
b57a8b3514
track rev. 1.7 of pmax/stand/boot/Makefile:
...
use ${INSTALL_FILE} instead of "cp -p"
2002-05-07 12:28:20 +00:00
lukem
cea307e47c
convert to <sys/bootblock.h>
2002-05-07 12:06:06 +00:00
pk
db2a20d3fc
Convert `bootxx' to raw binary format which is what the MI installboot(8)
...
program needs.
2002-05-07 11:32:44 +00:00
jdolecek
828400151c
add -ffreestanding to CFLAGS, so that this wouldn't attempt to link in libc(ugh)
...
g/c the -Wno-main and HAVE_GCC28 stuff
make the machine symlinks via common .BEGIN cookie, so that they would
be properly setup for 'depend' or 'dependall' targets too; g/c the limits.h
symlink, which doesn't seem to be needed
2002-05-07 09:03:52 +00:00
jdolecek
9edc8549c6
some esp register names are no longer provided by next68k espreg.h,
...
use MI <dev/ic/ncr53c9xreg.h> ones
2002-05-07 08:57:31 +00:00
uwe
440409e641
Delint a bit.
2002-05-07 06:45:22 +00:00
gmcgarry
d9248c05c1
FPSP required. Noted by Michael Wolfson.
2002-05-07 06:17:10 +00:00
gmcgarry
918cdbbb79
Make more featureful.
2002-05-07 06:07:30 +00:00
thorpej
a19e4685f7
Make CLKF_INTR() slightly less broken. The previous definition always
...
tested true if the CPU was running in the kernel at the time of the clock
interrupt, therefore all such time (kernel and idle) was counted as interrupt
time. The new definition simply punts on trying to count interrupt time,
which allows us to see kernel and idle time.
2002-05-07 04:01:59 +00:00
thorpej
3a3df0d1d2
Fix reading values mapped in P1 via /dev/kmem (problem uncovered by
...
uch's new pmap).
2002-05-07 03:28:25 +00:00
uwe
2baa6f8e86
Drop SUN4_PGSHIFT and SUN4CM_PGSHIFT. They are already known to .S
...
files from sys/param.h. The problem is that lint stubs are generated
with -C (keep comments) and gcc complains about macro redefinition,
since "assym.h" doesn't have the comments that "sys/param.h" has.
2002-05-07 02:38:44 +00:00
simonb
91a4b7da7f
Use "NOMAN=" instead of "MKMAN=no"; per lukem.
2002-05-07 02:13:51 +00:00
simonb
79cc6dcb79
Remove a "NOMAN="; Makefile.booters now has MKMAN=no.
2002-05-07 02:04:26 +00:00
uwe
8107633e20
bus space methods should be "static __inline__", not "extern __inline__".
...
Otherwise an unoptimized kernel cannot be linked. Reviewed by pk.
2002-05-07 00:37:47 +00:00
eeh
2a4ecb6335
Add a flag for ofpci to let psycho chose between pci and ofpci.
2002-05-06 22:41:10 +00:00
eeh
d87653c0d2
Switch to ofpci.
2002-05-06 22:34:40 +00:00
eeh
91c28a3626
Add code to attach ofpci.
2002-05-06 22:29:22 +00:00
eeh
ba4db702d5
Recognize `ofpci' as a PCI bus.
2002-05-06 22:20:57 +00:00
eeh
19fcb9e555
Fix printing during attach and get rid of pci_cd that's provided by the linker.
2002-05-06 22:20:07 +00:00
eeh
24954ac8ae
Add ofpci_make_tag().
2002-05-06 22:18:51 +00:00
eeh
2ec18b07b9
Provide pci_cd if needed.
2002-05-06 22:12:43 +00:00
jdolecek
05d0665f1c
rename memory_disc_size to md_root_size, so that kernels without
...
MEMORY_DISK_ROOT_SIZE option link
also make local md_root_size size_t
XXX is the load_memory_disc_from_floppy() stuff actually still being used?
2002-05-06 21:18:25 +00:00
eeh
1805506872
Add ofpci and ofppb.
2002-05-06 19:48:05 +00:00
eeh
e60dcd0a0b
Add ofppb to match ofpci.
2002-05-06 19:40:20 +00:00
eeh
509fa464af
Add the ofpci driver.
2002-05-06 19:39:51 +00:00
eeh
5d47d866f7
Only put interrupts into the list for that interrupt level if the handler
...
is not shared. Otherwise put the shared interrupt dispatcher in the list.
2002-05-06 19:19:48 +00:00
takemura
8178b68188
Added ukphy to use USB ethernet adopters.
2002-05-06 13:42:29 +00:00
lukem
b26614a4af
s,<dev/sun/sun_boot.h>,<sys/bootblock.h>,
2002-05-06 13:35:17 +00:00
uwe
73843c4a73
Comment change only. Update the version of GENERIC this config is
...
synced with.
2002-05-06 02:04:14 +00:00
lukem
e27890b7d9
fix previous more correctly; MAXBLOCKNUM was replaced by SUN68K_BBINFO_MAXBLOCKS
2002-05-06 01:25:11 +00:00
gmcgarry
5a1f9fc69c
400-series machines only have DIO framebuffers. From discussion
...
with Michael Lorenz and Bernd Sieker.
2002-05-05 22:55:49 +00:00
jdolecek
f1a07a4001
no manpages here
2002-05-05 22:09:05 +00:00
jdolecek
093d8bdbdd
Put the contents inside #ifdef _KERNEL, similarily to mac68k one,
...
so that the innards are not exposed to userland.
2002-05-05 22:07:59 +00:00
jdolecek
628a2b8665
Get ctrlsp.S via .PATH directive, rather than adding full path
...
to SRCS. This should fix build problem with ro source tree.
2002-05-05 20:38:48 +00:00
jdolecek
9eed164863
remove redundant (and wrong) main() prototype
2002-05-05 20:11:37 +00:00
tsutsui
92896ac2a1
Add a null asm statement in adb_read_date_time()
...
to avoid wrong reordering by gcc-2.95.3 with -fgcse.
XXX Should we disable -fgcse everywhere?
2002-05-05 18:36:03 +00:00
tsutsui
87ebd3218c
Backout previous. It is not timing problem, but gcc optimization bug.
2002-05-05 18:29:06 +00:00
jdolecek
8b225b8ff7
also don't make the machine symlinks for 'clean' target
...
move the CLEANFILES update out of the .if, so that the files get removed
for 'clean' or 'cleandir'
2002-05-05 17:11:41 +00:00
jdolecek
f2f12a240b
Update to md(4) changes: memory_disk_size is now md_root_size, and
...
type is size_t
2002-05-05 16:26:30 +00:00
jdolecek
db6fc29f1c
avoid unnecessary use of MAXBLOCKNUM (which is not defined here)
2002-05-05 16:02:24 +00:00
jdolecek
4dd6651e00
CLEANFILES should be set regardless of target
2002-05-05 15:57:15 +00:00
jdolecek
b9308c4120
also don't do the machine symlinks for 'cleandir' target
2002-05-05 15:42:26 +00:00
jdolecek
806100bb55
Don't make the machine symlinks for 'cleandir' target either. This
...
should fix read-only source builds.
XXX Perhaps the condition should be changed to
XXX .if make(depend) || make(all) || make(dependall)
XXX similarily to bsd.kmod.mk?
2002-05-05 15:30:05 +00:00
isaki
9c4195c510
libsa/Makefile: Fix rules to create symlinks on read-only source tree.
...
{boot,libsa,mboot}/Makefile, Makefile.booters:
move that common rule to Makefile.booters
2002-05-05 11:46:29 +00:00
martin
9ccc186245
Add PCMCIA support (for nell at sbus and pci cardbus bridges)
2002-05-05 11:22:19 +00:00
bjh21
caff9d0e7e
Change the various targets to look more like their libsa counterparts.
...
I think this'll help on read-only source trees.
2002-05-05 10:02:17 +00:00
bjh21
505c2b63d1
Re-arrange "machine" magic so it's in the same place as on i386. This seems
...
to help things happen in the right order (I smell a missing dependency).
2002-05-05 10:01:26 +00:00
thorpej
80303e7e64
Add .register directives to appease newer gas.
2002-05-05 08:15:15 +00:00
thorpej
e9bb69ab48
Add .register directives to appease newer gas.
2002-05-05 06:07:42 +00:00
scw
132a9c91d5
Make sure main() has a prototype and a return type of "int".
2002-05-04 22:05:29 +00:00
bjh21
ca9a3c5b44
<bsd.hostprog.mk> and <bsd.prog.mk> don't play nicely together. Since
...
<bsd.hostprog.mk> includes <bsd.files.mk> anyway, drop <bsd.prog.mk>.
2002-05-04 21:56:50 +00:00
kleink
85e25e7fe2
While I'm here: <sys/exec_elf.h> -> <elf.h>.
2002-05-04 20:47:48 +00:00
kleink
23a8bf785e
Provide MBR_PTYPE_PREP and MBR_FLAGS_ACTIVE locally, if not available.
2002-05-04 20:46:23 +00:00
pooka
ca3ea88b7a
add mcclock
2002-05-04 20:06:49 +00:00
briggs
69403fe32b
Remove unreferenced file.
2002-05-04 18:23:35 +00:00
kleink
c1477b6161
Add some comments to the CPP conditionals controlling the trap macro
...
definitions, to ease navigation somewhat.
2002-05-04 17:19:25 +00:00
bjh21
228c4dd3c6
Replace the "machine" logic with something stolen from
...
i386/stand/Makefile.booters. This might make builds with a read-only
source tree happier.
2002-05-04 12:25:00 +00:00
chris
6c4ac1de6e
Implement a proper delay routine for footbridge based systems. Note that
...
until the footbridge is attached we still have to rely on a loop. This
uses TIMER_3 running at 100Hz.
Sadly this doesn't appear to fix the tlp problems, which either means that this
delay routine is not as accurate as it should/could be or tlp is still broken.
2002-05-04 10:04:42 +00:00
takemura
7cd3e3bad5
Fixed line order. It was strange.
2002-05-04 09:37:24 +00:00
takemura
519f3fbad5
Fixed PC Card slot support.
2002-05-04 08:12:18 +00:00
takemura
a9e34d1ccf
Added lib/libsa/files.c to avoid link error.
2002-05-04 07:40:59 +00:00
gmcgarry
2a622dde25
Pull in <bsd.own.mk> for definition of ELF2ECOFF.
2002-05-04 07:26:11 +00:00
takemura
28389b6cb5
Fixed debug messages.
2002-05-04 05:13:28 +00:00
rjs
8394f5575a
Rename cache clean area variables from sa110_* to sa1_*.
2002-05-03 21:28:11 +00:00
scw
caf7ed0a69
main()'s return type should be `int', not `void'.
2002-05-03 20:48:34 +00:00
briggs
01cc8143e4
Bump symtab space.
2002-05-03 19:52:36 +00:00
thorpej
35fd50c116
Switch to esiop by default (again); it is fully-baked enough to use
...
in production now.
2002-05-03 19:35:53 +00:00
thorpej
da9accb616
Don't define _LP64 here.
2002-05-03 18:27:41 +00:00
thorpej
8606fff875
Don't define _LP64 here.
2002-05-03 17:56:29 +00:00
thorpej
9cbd451a98
Revert revision 1.20.
2002-05-03 17:55:55 +00:00
thorpej
510cbd8934
Revert revision 1.3.
2002-05-03 17:52:17 +00:00
thorpej
9b846773b6
Revert revision 1.20.
2002-05-03 17:51:10 +00:00
thorpej
c66b5e6e38
Revert revision 1.23.
2002-05-03 17:50:19 +00:00
rjs
6812acf29c
Remove CPU_SA110 option.
2002-05-03 16:50:51 +00:00
rjs
94bb29decc
Add correct use of cpu types for SA1100 and SA1110.
2002-05-03 16:46:52 +00:00
rjs
767d5585e0
Use processor specific versions of ARM cache control functions for SA1100
...
and SA1110 instead of using SA110 ones.
Rename common StrongARM functions from sa110_* to sa1_*.
Reviewed by Jason Thorpe.
2002-05-03 16:45:21 +00:00
lukem
b933e511b1
nuke installboot.old / bootxx combo (the old "primary bootstrap with
...
hardcoded blocks of secondary bootstrap"); it was only used by the
distrib ustarfs stuff, and that now uses usr/sbin/installboot and ustarboot
2002-05-03 15:36:52 +00:00
rjs
37685e09df
Add sa11x0_context_switch and sa11x0_drain_readbuf.
...
Reviewed by Ben Harris and Jason Thorpe.
2002-05-03 12:43:53 +00:00
takemura
0d9fe6e48c
Enabled USB support for MC-R700.
2002-05-03 11:45:04 +00:00
takemura
9582b7c775
Enable USB support for MC-R700.
2002-05-03 11:37:48 +00:00
takemura
f8cb4c37a0
Fixed debug print.
2002-05-03 07:31:23 +00:00
thorpej
b8e4c037bd
De-obfuscate somewhat; define and use register bit constants, etc.
2002-05-03 04:42:08 +00:00
rafal
13c470a169
R4600 and R5000 count registers count at half-cpu-speed as well.
2002-05-03 03:50:11 +00:00
simonb
13bc33a766
Fix off-by-one error in delay(). Fix from Charles Hannum in ARM code,
...
pointed out by Rafal Boni.
2002-05-03 03:36:51 +00:00
thorpej
2a46fa85a8
Update for recent changes to the ARM pmap. From Hiroyuki Bessho,
...
PR 16617.
2002-05-03 03:32:54 +00:00
thorpej
860fe83065
Add support for the Intel PXA210 and PXA250. From Hiroyuki Bessho, PR 16617.
2002-05-03 03:28:48 +00:00
thorpej
5573190305
Add the CPU_XSCALE_PXA2X0 option. From Hiroyuki Bessho, PR 16617.
2002-05-03 02:43:19 +00:00
rafal
4cebb807c9
Cosmetic change.
2002-05-03 01:51:38 +00:00
rafal
2eece4af5f
Update copyright dates.
2002-05-03 01:49:21 +00:00
thorpej
46a3731866
Move the CPU/clock/memory-related options to std.dreamcast, since
...
they are constant across all Dreamcast systems.
2002-05-03 01:36:02 +00:00
rafal
c92f3647a4
Fix up clock interrupt accounting for the sgimips port -- make sure
...
to schedule clock interrupts at a fixed interval, rather scheduling
the next one based on the time of the arrival/servicing of the previous
clock interrupt. Also, pick up a trick from the sbmips port to convert
a division in ip22_clkread to a multiplication, since those are much
cheaper -- the details of that are described in Simon's commit (see
Message-Id: <20020306073437.1D2A8B004@cvs.netbsd.org>). Thanks to
Jason Thorpe and Dominic Sweetman's "See MIPS Run" (where I found
mention of this very subject while looking for something totally un-
related! 8-) for the clue about the source of the timekeeping problems.
For the IP32, where we have no clock-calibration code yet, use the CPU
frequency provided by ARCS instead; it beats a hard-coded value!
As an added bonus, most of the CPU-clock related stuff is now collected
together in cpu_info_store, rather than as a collection of unorganized
global variables.
2002-05-03 01:13:54 +00:00
eeh
be9ab3e5db
Provide _LP64 definition if we are generating LP64 binaries.
2002-05-03 00:06:55 +00:00
rjs
9646735a82
Enable CPU_CLASS_SA1 for SA1100 and SA1110.
2002-05-02 22:57:36 +00:00
rjs
2aae453976
Make it compile when VERBOSE_ARM32 is defined.
2002-05-02 22:47:09 +00:00
mycroft
47c99ba59e
Fix off-by-one error in delay().
2002-05-02 22:01:46 +00:00
rafal
ab8f2fbc01
Add interrupt counter for Seeq interrupts; also, make sure to reset back to
...
"recieve only my frames & broadcasts" and clear the ALLMULTI flag if we have
no multicast addresses in our list.
2002-05-02 20:31:19 +00:00
rafal
1a73d72d3b
If we handle multiple events from the zs chip in one interrupt, don't count
...
that as multiple interrupts.
2002-05-02 20:26:49 +00:00
wiz
851d26f9a9
Make sure the machine symlink is there in the dependall step.
2002-05-02 18:54:32 +00:00
wiz
aa4109feb4
Add machine symlink to CLEANFILES.
2002-05-02 18:35:02 +00:00
wiz
8015e58333
Since loadfile_machdep.h isn't installed anymore, link the mmeye include
...
directory into ${.OBJDIR} and find the header file there.
2002-05-02 18:30:46 +00:00
rafal
e65d64e370
Since we don't have code to drive the L2 cache on R4600/R5k processors,
...
disable the L2 cache so at least things work (albeit more slowly) on
the SC versions of those chips. Tested on a R4600 Indy and a R4400
Challenge S.
2002-05-02 18:00:40 +00:00
wiz
f7a47b635a
Remove #ifdef RC7500 defines.
2002-05-02 17:25:31 +00:00
thorpej
efb8222642
Fix error reporting in the bus_dmamap_load_mbuf() routines.
2002-05-02 16:50:39 +00:00
kleink
ba482b3950
* On the 601, obliterate all BAT entries when returning from kernel to
...
userlevel; this is necessary due to the 601, unlike other 6xx, having
no concept of separated Valid_user vs. Valid_supervisor for BATs.
* When crossing the kernel/userlevel boundary, have platform-provided
hooks set up the two fixed BAT entries, and possibly additional
segment registers to redeem the 601's BAT limitations.
Both of the above are only built if the $MACHINE provides these hooks,
sparing others the pain.
2002-05-02 16:47:49 +00:00
uch
4499275017
remove obsolete header file (shbvar.h)
2002-05-02 16:34:57 +00:00
thorpej
b094ff415f
Change the semantics of mbuf external storage "ext_free" routines
...
so that they're more useful for arbitrary types of external storage:
* Add an "mbuf *" argument to (*ext_free)(). If non-NULL, (*ext_free)()
is expected to free the mbuf itself. This allows (*ext_free)() to use
the mbuf for bookkeeping (e.g. deferring the work to a helper thread).
If the "mbuf *" argument is NULL, we are assumed to be in a context
which is safe for performing the destructor operation *now*.
* Adjust MEXTREMOVE() and MFREE() routines for above change.
* Update "ade" and "ti" drivers for new semantics.
2002-05-02 16:22:43 +00:00
thorpej
74e2ee8d5c
Define __NO_STRICT_ALIGNMENT.
2002-05-02 16:11:28 +00:00
nonaka
ed9081de2a
Added IBM Personal Power Series 830 IDE controller support.
2002-05-02 15:17:56 +00:00
nonaka
2ff13751ce
Use PLATFORM_*
2002-05-02 14:58:36 +00:00
nonaka
b9fc6ff617
rename reset_ibm_generic() -> reset_prep_generic().
2002-05-02 14:48:27 +00:00
nonaka
b5a1a9284b
Added dump residual data routine.
2002-05-02 14:44:17 +00:00
nonaka
925a022a1d
use ext_intr_ivr, too.
2002-05-02 14:38:41 +00:00
nonaka
c79479ac8d
Added dump residual data routine.
2002-05-02 14:36:42 +00:00
martin
9b693d4bca
Remove a local declaration shadowing the global "int statint", thus
...
preventing the latter to be initialized properly.
Patch from adam@lebsack.com in PR 16608.
2002-05-02 13:01:45 +00:00
thorpej
d105d4c056
Move call to sched_unlock_idle to later in the context switch to
...
eliminate a race where another processor could grab the outgoing
process before we were done saving our state into it, with predictable
results.
Bug spotted on i386 by Frank van der Linden <fvdl@wasabisystems.com>.
2002-04-30 16:05:13 +00:00
tsutsui
8b87191ece
Add _rtt(), which is called by panic() in libsa/panic.c,
...
which is useed from ustarfs.c.
2002-04-30 13:10:56 +00:00
tsutsui
68d3a4f0ee
Add ustarfs ops.
2002-04-30 13:09:05 +00:00
tsutsui
2d9bb7f94e
Add getchar().
2002-04-30 13:08:01 +00:00
ragge
96d4c35119
Don't try to probe for dz11 on 4000/90, may corrupt the flash rom (?).
...
Suggested by Hugh Graham <hugh@openbsd.org>.
2002-04-30 12:33:32 +00:00
tsutsui
27c8560138
Make sure whole DPRINTF()s are actually disabled on normal build.
...
It seems compiler does not remove text strings in while(0) statement
on its optimization.
2002-04-30 01:07:26 +00:00
tsutsui
8f9d2b8500
Add a delay() in adb_read_date_time() so that my Apus2000 can get
...
correct date in inittodr().
2002-04-29 10:15:29 +00:00