Commit Graph

29713 Commits

Author SHA1 Message Date
dbj ce516e4e69 add declaration of ipkdb_trap_glue 2001-12-23 08:25:27 +00:00
dbj 3ff5d761b8 restore msr on return from ddb, this allows single stepping 2001-12-23 08:19:44 +00:00
matt 5887cef210 Don't install boot.mop if ELF. 2001-12-23 02:21:35 +00:00
matt 0dab9a35b5 #include <sys/types.h> in case this is included before that was. 2001-12-23 02:21:03 +00:00
matt 238448b56b Make VAX kernels work again. Entry on vax is start, not _start. 2001-12-23 02:14:03 +00:00
chs 450ff86b66 convert luna68k to ELF. ok'd by nisimura. 2001-12-22 23:38:20 +00:00
cjep e76e91a051 Pull out csc Cumana SCSI II driver and note that it is not currently
working properly. This seems to have been the case for some time
(cf. PR #8924).
2001-12-22 23:17:35 +00:00
bjh21 00bd2cbdac Merge ast() and userret() between arm32 and arm26. The implementation used
is the arm32 one.
2001-12-21 22:56:16 +00:00
bjh21 73cedb8d55 Ensure that podulebus gets attached after unixbp, since it needs to know
whether the system has a unixbp to know what interrupt mask to use.
This could be cleaner.
2001-12-21 22:41:18 +00:00
jdolecek 845a3d15d2 rename (incorrect) SVR4_TRAP_CLOCK_SETTIME to SVR4_TRAP_GETHRESTIME - this
is what Solaris8 calls it
implement SVR4_TRAP_GETHRESTIME, though obviously only with microsecond accuracy

now clock_gettime(CLOCK_REALTIME, tp) works on Solaris8/i386
2001-12-21 07:02:23 +00:00
thorpej 36b6f0cf4a Clean up a little, bump KERNEL_VM_SIZE to 0x06000000 (we have that
much room -- from 0xf1000000 to 0xf7000000 [start of OFW]).
2001-12-21 00:23:17 +00:00
thorpej e091c2afd1 Add -Dsgimips to CPPFLAGS. 2001-12-20 20:30:59 +00:00
thorpej a6a5d9fa2b Use the correct version of va_arg() for _STANDALONE. 2001-12-20 20:29:09 +00:00
bjh21 b4b00796cd Fix a couple of obvious bugs in new code:
set_r15() needs to put the new value into R15, not the old one.
get_r15() can return using MOVS rather than MOV.
2001-12-20 17:45:31 +00:00
bjh21 449c8ab9e1 Remove a couple of outdated comments: arm26 kernels now use APCS-32, so
the I and F flags don't get restored on function exit.
2001-12-20 16:22:14 +00:00
bjh21 a938f3a7ee Remove some outdated comments: arm26 kernels use APCS-32 now, which
means they don't do silly things like restoring IRQ/FIQ disable bits
on function return.
2001-12-20 16:12:10 +00:00
uwe 084cc22e99 Define SPARC_PCI_DEBUG only if DEBUG is defined. 2001-12-20 11:38:52 +00:00
uwe 309e659bc4 Rewrite sbus_bus_mmap to conform to new signature and unbreak bus_space_mmap.
This fixes the problem with X server killing the kernel by writing to
the middle of physical memory instead of the frame buffer.
2001-12-20 07:53:59 +00:00
thorpej 014157862c * Share a common vector page between arm26 and arm32.
* Use a common set of exception handlers for all arm32 platforms.
* New FIQ framework based on discussions with Ben Harris, shared
  between arm26 and arm32.
2001-12-20 01:20:21 +00:00
thorpej bab6522cfb Delete MACHINE_ARCH assignment. 2001-12-19 18:35:35 +00:00
thorpej 4d3393a2c8 Remove the MACHINE_ARCH assignment. 2001-12-19 17:43:19 +00:00
minoura 7a7e9cfe7b Implement bus_dmamap_sync properly.
dma_cachectl is now used only for DMAC array chain.
2001-12-19 14:53:26 +00:00
mhitch 8923d6ba13 The ELF counterpart to aout2bb: convert a relocatable ELF object file
to the simple relocatable image used for the amiga bootblock loader.
2001-12-19 06:51:05 +00:00
minoura be5fdd5214 clockctl. Compile test only. 2001-12-19 06:38:37 +00:00
thorpej a214c3ad3a We haven't done ECOFF for a long time; garbage-collect all the
__ELF__ #ifdefs (thus setting ELF in stone).
2001-12-18 17:12:32 +00:00
yamt 7ae83a7557 use #define<TAB> style.
pointed by enami.
2001-12-18 15:21:13 +00:00
fvdl e922d091ba Prevent gcc from reordering things such that instructions may fall out
of a range which is protected by spl/splx. Originally proposed by
YAMAMOTO Takashi (yamt@netbsd.org) on tech-kern. This change mirrors
the one done by Bill Sommerfeld on the i386 mp branch.
2001-12-18 10:12:28 +00:00
thorpej c285667b3c Add a memory clobber to alpha_pal_swapctx() and alpha_pal_swpipl();
the former affects the address space, and the latter can let interrupt
handlers in to clobber memory.
2001-12-18 04:18:22 +00:00
thorpej 8c8f0f0f82 Disable .loc in macros for now; the new assembler is a lot more
picky about having the file number defined.
2001-12-18 04:15:45 +00:00
thorpej 631447bb4a Change some #if 0 to #ifdef VERBOSE_INIT_ARM. 2001-12-18 02:52:00 +00:00
thorpej 36c9cfea2d Fix constraints in __asm statements (err, again). Kernels compiled
with GCC 2.95.3 work now.
2001-12-17 23:34:57 +00:00
fredette f838750c17 Fixed a bug where we would always byteswap things,
even on a big-endian machine.
2001-12-17 21:55:13 +00:00
fredette a366516238 Added ifmedia(4) support. 2001-12-17 18:14:17 +00:00
bjh21 f2ebadcc6f Ensure that vidc.h gets installed somewhere -- Xarm32vidc needs it to compile. 2001-12-17 15:07:37 +00:00
mhitch 9d4755dd24 Adjust for a.out/ELF conversion program. 2001-12-17 05:49:41 +00:00
mhitch 79193d3408 Changes for building two stage loader, and add support for ELF object
format.
2001-12-17 05:48:09 +00:00
mhitch 4038ed8a29 Select relocatable to bootblock conversion program based on which object
format is being used.
2001-12-17 05:46:52 +00:00
mhitch 5a3ab70cb5 Add some additional conversions for ELF assembler output. 2001-12-17 05:45:08 +00:00
mhitch 29ee3faf63 Change fixed-size buffers to variable, with an option to set the size for
the second stage loader.

Show the number of bytes remaining in the boot file image.
2001-12-17 05:43:40 +00:00
mhitch e1d8eca622 Update amiga booter to two-stage booter.
First stage is bootxx_ffs (for ffs boot partitions) or bootxx_fd (for bootable
floppy disk).  These locate, load, and execute the second stage loader boot.amiga.
The console screen is created and passed to the second stage loader.

The second stage loader uses loadfile() to load the kernel image, which can
be either a.out or ELF format, and can also be compressed.  It will load a
kernel file from ffs file systems or the ustarfs used on floppy disks.
2001-12-17 05:40:40 +00:00
fvdl a3cd944f25 Also correct the attach flags to enable IO space on the ServerWorks
CNB20LE.
2001-12-16 21:33:06 +00:00
gmcgarry bdfdbd8233 Make this compile with new toolchain. 2001-12-16 20:58:25 +00:00
reinoud 608b11c8f4 Minor bootloader update but most of all updated UnixFS disk selections so
now also other patitions are possible; The scripts `native/wd*' were all
broken !!! Guess Mark Brinicombe had some plans but forgot to subit them...
2001-12-16 20:54:29 +00:00
thorpej 3bce84cf10 Consider __NO_LEADING_UNDERSCORES__ provided by the new ELF toolchain. 2001-12-16 18:11:12 +00:00
bjh21 d7be12c439 Report a display type of WSDISPLAY_TYPE_VIDC, since we'll probably share
interfaces with the VIDC20 drivers in acorn32 eventually.
2001-12-16 15:15:44 +00:00
takemura 3c28255e30 BUGFIX: it gets bus error on Vr4122 and Vr4131 attempting to access
pull-up/pull-down registers if you turn on verbose output.
And moved softc structure definition from vrgiuvar.h to vrgiu.c, which was
needless in other parts of kernel.
2001-12-16 09:58:34 +00:00
tsutsui 7d563fd40e malloc() + memset() -> malloc() with M_ZERO flag 2001-12-16 04:17:02 +00:00
tsutsui 20d126a5b4 Fix comments for ref-count of PT pages. 2001-12-16 03:53:21 +00:00
tsutsui f7312c690f cosmetics (typo, KNF etc.) 2001-12-16 03:41:57 +00:00
gmcgarry ac1f9fcc8c When attaching as console, unmap the device on failure. 2001-12-16 02:02:05 +00:00
bjh21 b17e1abb0f Use the MI DP83905 support for media selection on those cards that use it. 2001-12-16 00:23:59 +00:00
bjh21 2ca506c0ca if_ne_pbus needs the "mx98905" attribute. 2001-12-15 23:48:38 +00:00
fredette d3a28a576e Rather than using nlist(3), use a magic structure with a magic
number that installboot(8) can search for.  Suggested by cgd@netbsd.org.
2001-12-15 23:09:50 +00:00
fredette c9e7d7b7ba On the sun2, added support for loading larger kernels,
and pull objects from the libgcc in DESTDIR.
2001-12-15 23:02:34 +00:00
bjh21 7bc474a92b mod() was unused. g/c it. New code should use abs() anyway. 2001-12-15 22:41:44 +00:00
fredette 175ee0ab88 Fixed a bug where we weren't checking for required or
forbidden locators correctly, especially physical addresses.
2001-12-15 22:39:17 +00:00
fredette 9976af904a Remove some devices that aren't needed in INSTALL or RAMDISK
kernels, reenable NFS v3, and enable kernfs in INSTALL.
2001-12-15 22:22:13 +00:00
bjh21 eefdf030c9 Simplify the pixel-clock-rate-setting code, so it always works out the
parameters from first principles rather than using a static table for some
rates.  This makes it work correctly on ARM7500, for which the table was
bogus (ARM7500 has a different refclk from VIDC20).
2001-12-15 22:21:46 +00:00
fredette 74e4ac42de Be sure to mark in the prototype attach args
that a physical address is required for each
device on this bus.
2001-12-15 22:13:11 +00:00
bjh21 7de3bbbbe3 Use the MX98905 bug workaround for EtherN and EtherI cards. 2001-12-15 20:30:06 +00:00
soren 875bff0962 To make dev/pcmcia work on platforms with 64-bit bus_addr_t and
32-bit bus_size_t (sparc), change the pcmcia_mem_map(9) offsetp
argument to bus_size_t as it is used as a bus_space offset.
2001-12-15 13:23:20 +00:00
soren 6a76b36417 Use regular read/writes for stream variant calls. 2001-12-15 12:39:55 +00:00
wdk 505a7027b6 Revert back to invalidating cache during BUS_DMASYNC_POSTREAD instead of
during BUS_DMASYNC_PREREAD.

Fixes problem where SCSI bus probe didn't read meaningful identity data.

Technically there should be no difference between invalidating before or
after the DMA, but for reasons known only to the R3000 this fixes the
problem.   Some thought needs to be given to whether there is a performace
difference between these two cases.
2001-12-15 11:33:13 +00:00
wdk c49454c890 Declare KGDB hook functions. 2001-12-15 11:17:03 +00:00
wdk b697919ea7 Add bus_dmamap_sync for pre-read and pre-write case. This was previously
left out as it was a no-op on the R3000 processor.  However, recent changes
to the Mips cache ops highlighted we should DTRT in case the MI/MD layer
choses to invalidate the cache ahead of the DMA instead of after it.
2001-12-15 11:11:49 +00:00
chs ae5b4093b5 when counting PTEs, look at all the segments in a region, not just the first. 2001-12-15 09:00:50 +00:00
thorpej f77397d481 Use __sh__ instead of __sh3__. 2001-12-14 23:30:02 +00:00
briggs ea6ecf9933 Match MPC107, too. 2001-12-14 22:42:01 +00:00
briggs b7409e5213 Re-enable wscons stuff. Add rtk* as it's now confirmed to work on sandpoint. 2001-12-14 22:41:33 +00:00
christos 878eb1362a PR/14946: Rafal Boni: Make this work again.
Notes:
    - I added bsd.obj.mk and made it work with objdirs.
    - I added an entry point to the linker to fix a warning.
    - I made the backup of biostramp.inc silent.
    - I added missing clean targets.

This needs to be tested further.
2001-12-14 20:32:23 +00:00
christos d259e61055 Fix warnings about register prefixes caused by the new toolchain. 2001-12-14 20:30:10 +00:00
augustss aa71c52956 Uncomment uirda since it woks now. 2001-12-14 16:24:52 +00:00
gmcgarry 25be1c42e2 Arrange in correct order. 2001-12-14 08:39:11 +00:00
gmcgarry 9370d5d4ef Update hardware drivers with console attachments to the new console
attachment interface.
2001-12-14 08:34:27 +00:00
gmcgarry 8038726863 Update the console attach interface now that bus_space is available.
Basically means that hardware drivers with console attachments are
now largely machine independent.
2001-12-14 08:29:24 +00:00
gmcgarry 8883bd8ba3 Make the ite interface look a little more like wscons. This is done
by allowing the hardware drivers to register keyboard and display
support with the ite framework.  Removes the dependence on the hil
keyboard and should make support for dnkbd easier.

An interim fix until wscons arrives.
2001-12-14 08:25:40 +00:00
gmcgarry eed7e1f9a3 include Makefile.buildboot before testing for RELEASEDIR 2001-12-14 07:36:32 +00:00
gmcgarry 5b666cb353 Bump version: Default to BOOTP network boot 2001-12-14 06:08:35 +00:00
chs 5e3151bdf5 make this compile with DEBUG. 2001-12-14 06:06:26 +00:00
gmcgarry 64e7130584 Use bootp, to match the recent change to the bootblocks. 2001-12-14 05:56:59 +00:00
gmcgarry bdd225baa1 Add a blurb to the top of all GENERIC files. This serves three purposes:
- to clarify some terminology
- to clarify the intention of the GENERIC file
- to cross-reference some useful man pages
2001-12-14 05:34:45 +00:00
tv 816077b47e Fix problem introduced with the MKMAN->NOMAN conversion. 2001-12-13 22:33:20 +00:00
chs 2dfd15933e change the reference-counting of PT pages to start from zero instead of
one, so that we don't mess up the global count of wired pages by having
the page's wire_count be non-zero when we free the page.
pointed out by Michael Hitch.
2001-12-13 04:39:50 +00:00
petrov aaee6a1839 initialize all fpu registers and don't panic on user 'privileged action' 2001-12-12 19:14:47 +00:00
augustss a7d99a83b1 Add (commented out) uirda. 2001-12-12 15:32:13 +00:00
lukem b0b0a32ad7 Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
kleink e1f611fa76 The MPC105 does not implement the IBM reference implementation's
Equipment Present Register (I/O port 0x080c), so perform L2 cache
detection here.
2001-12-12 10:18:48 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
aymeric 48de85e04b add support for OBP 3.x as seen on some JavaStation 1's 2001-12-11 21:09:52 +00:00
kleink b52ac962b3 Add pci device. 2001-12-11 21:02:42 +00:00
kleink a5abbc5b66 Add wsfont pseudo-device. 2001-12-11 20:49:18 +00:00
ragge c7bae7c419 Add forgotten "hdc" and "rd" disks. 2001-12-11 15:14:25 +00:00
briggs 41f0fe2808 Make it possible to build a kernel that actually compiles and runs on a shark. 2001-12-11 06:00:16 +00:00
uwe 9a2a6c77e8 tabify 2001-12-11 05:54:56 +00:00
shin 13c66a24fe compilation fix. 2001-12-11 05:43:11 +00:00
briggs caf1c0abc7 include <arm/...> cousin 2001-12-11 04:50:51 +00:00
shin 7806543ebf SPEC_PLATFORM is 'defparam' (requires value). 2001-12-11 04:46:39 +00:00
uwe e51c17a95f enable pci bus device. (hi matt!)
fix a whitespace nit while I'm here.
2001-12-11 04:29:26 +00:00
uwe a2b05223ee Add microSPARC-IIep support. 2001-12-11 04:25:58 +00:00
uwe 6767457cab Add microSPARC-IIep support. Move sun4m bootstrap into separate
functions (for normal 4m and for IIep).
2001-12-11 04:21:39 +00:00