Commit Graph

23993 Commits

Author SHA1 Message Date
wdk caccbc2e21 Add kernel support for memory disks 2000-09-29 12:43:14 +00:00
tsubai e256cfb9ec Fix a bug that prevents the kernel from detecting the root device. 2000-09-29 10:14:20 +00:00
explorer 62da00b60c clean up printing when serial number not supported or disabled. 2000-09-29 09:07:53 +00:00
explorer be5f26e138 print CPU serial number at boot time. After all, we have a million other flags printed, what's one more interesting one. 2000-09-29 09:03:18 +00:00
msaitoh 3c5d2c7fac avoid SH7709A's serious bug (it fails to read IPR* registers under particular
circumstances)
2000-09-29 08:08:37 +00:00
deberg 623e319553 add support for 12-bit color displays, from Timm Wetzel w/ changes by
me.  closes 10741.
2000-09-29 06:35:57 +00:00
deberg a295f43fb1 merge lines 2000-09-29 06:33:37 +00:00
deberg b01c657c80 add RCONS_BPP16 for color display
also lose esp0 since i have no disc in this machine, and build symbols.
2000-09-29 06:33:17 +00:00
deberg 44c2ad4763 add RCONS_BPP16 for color display 2000-09-29 06:32:38 +00:00
eeh 15eaba378c Only call pcons_dopoll() if there's a pcons device. 2000-09-29 00:27:13 +00:00
eeh 5c98160d2b Separate user and kernel address spaces and move the kernel down to
0x0000000001000000 -- 0x00000000f0000000, below the PROM where the
PROM thinks we should be.
2000-09-28 19:56:13 +00:00
eeh d21456569e Fix INTR_SETUP() to properly distinguish kernel and user addresses.
Make microtime() return the correct time on %tick machines.

Re-enable debug stuff in dostart for now to detect kernel mapping issues.
2000-09-28 19:27:49 +00:00
eeh 1090c8a9cf probeget() actually handles 64-bit values so fix the prototype. 2000-09-28 19:16:35 +00:00
eeh 0ca74ba0d8 Fix the `trap type 0x10' problem. Apparently, something has changed and
now makes use of lockmgr().  Since we broke into the debugger from an interrupt,
we don't have a curproc, so when lockmgr() tries to find our PID it barfs,
causing another break into DDB which then calls the mysterious code that
calls lockmgr() again.....

So set doing_shutdown while we're in DDB so lockmgr ignores locks.
2000-09-28 18:54:39 +00:00
thorpej 59ef356b35 Reintroduce the ACPI memory map code. The bug that caused the
IDT to be scribbled over on some systems was found and fixed by
T.SHIOZAKI <tshiozak@netbsd.org>.
2000-09-28 18:31:36 +00:00
uch 154f1e86b1 fix tx39clock_alarm_refill bug. 2000-09-28 16:18:26 +00:00
eeh 6776b270ae Remove unneeded cache flushes. 2000-09-28 15:47:27 +00:00
eeh a6205d98a9 Poll pcons for input on softints in case someone want to break into the debugger. 2000-09-28 15:38:49 +00:00
eeh abeb734bb9 Cannot distinguish kernel and user addresses any more. 2000-09-28 15:34:38 +00:00
eeh 5b577f0c8f Add a command that locates the page structure corresponding to a pa. 2000-09-28 15:32:36 +00:00
eeh 3a2599ebec Don't take ref/mod faults on DMA segments mapped in to the kernel. 2000-09-28 15:28:43 +00:00
eeh a5a8082482 Use prom_printf() for debugging instead of printf() since the console may
not be functional.
2000-09-28 15:23:06 +00:00
eeh 25ce73d7b3 Fix bad path specifier for finding fpu sources. 2000-09-28 15:19:56 +00:00
is 126ba78048 We do wired page accounting. Tell UVM about this. 2000-09-28 14:03:38 +00:00
is f41561e9de We do wired page accounting. Tell UVM about it. 2000-09-28 13:09:10 +00:00
abs 5aa0a5abb1 Prior art in naming would suggest INSTALL_SYSINST rather than INSTALL-SYSINST. 2000-09-28 12:46:43 +00:00
is 2c86369fc4 The Atari pmap does wired page accounting; advertize it to UVM. 2000-09-28 09:09:28 +00:00
leo 670b06c6e0 Move config_console() out of the grf-layer. This allows for more than just
grf-type consoles (wscons). Config_console() is now called from consinit(),
just after setting up the kernel msgbuf, so debugging is easy(er).
To further facilitate this move, the pcibus now allows for early-console
attaches by allocating static bus_space_tags (no mallocs possible at this
point).
2000-09-28 07:26:48 +00:00
leo 6cb04802f1 Nuke cf_unit abuse. 2000-09-28 06:39:52 +00:00
leo af27893736 Correct some typos. 2000-09-28 06:32:10 +00:00
leo a89f788198 Move the grfbus out of std.atari. You don't want a grfbus defined on headless
and wscons setups.
2000-09-28 06:19:06 +00:00
itohy c2672f184b Fix the type of pmap_zero_page_uncached from void (paddr_t) to
boolean_t (paddr_t) to make it compile again.
2000-09-28 03:41:50 +00:00
mhitch f9521e4c70 Set the boundary to NBPG for bus_dmamap_create(). The IOASIC DMA segment
can not cross a page boundary.  This fixes a problem when a dump(8) buffer
just crossed a page boundary and bus_dmamap_load() would coalesce the
the overlap onto the first segment.  The NEXTPTR value would get set to
-1 when starting the DMA transfer and the residual data for unaligned
transfers would be copied to physical address 0x1ffffffc.  On the R3000,
this would result in corrupted data, and on the R4000 would usually result
in a hard system hang.
2000-09-28 03:27:29 +00:00
mhitch 226b343323 Need to use MachHitFlushDCache() for the MIPS3 to ensure invalidating
both the primary and the secondary caches.  MachFlushDCache() will not
invalidate the correct secondary cache lines for KSEG2 addresses.
R4000 systems should now be able to boot and run.
2000-09-28 03:19:12 +00:00
is 643b30ef1d Admit that we count wired pages. 2000-09-27 21:34:29 +00:00
fvdl c84826de03 Enable usb devices that may be useful during the install (hubs, keyboard,
ethernet, mass storage).
2000-09-27 20:41:35 +00:00
eeh 2b673aaef8 Add -V and -D bootflags to print out debug info in pmap_bootstrap() and
a fix for non-DEBUG kernels.
2000-09-27 18:20:33 +00:00
eeh 8a0dc83e07 Fix for prev (define fl). 2000-09-27 18:16:01 +00:00
uch 0ab2301b6b hot plug support. 2000-09-27 17:32:34 +00:00
fvdl 3a999fb11f A GENERIC and INSTALL tailored for laptop usafe (i.e. cardbus and
PCIBIOS options included).
2000-09-27 16:57:09 +00:00
fvdl 0619e37229 Reduce ramdisk size to the amount that is really needed for optimal
space saving. Reduce number of ptys to 2. Use NFS_V2_ONLY.
2000-09-27 16:54:56 +00:00
fvdl 48b43cdfb9 Remove some less-needed items to save space. Also add NFS_V2_ONLY,
to save more space. For installs, NFSv2 will do just fine.
2000-09-27 16:09:18 +00:00
uch e1c01aff60 remove obsolete files. 2000-09-27 13:42:14 +00:00
shin d3cf7525d3 add 'options VNODE_OP_NOINLINE' to reduce size. 2000-09-27 10:22:22 +00:00
shin 6ec1be8054 apply 'hpckbd' change. 2000-09-27 10:21:23 +00:00
sato 82d4c9df0e add DoCoMo sigmarion cover button. 2000-09-27 09:32:23 +00:00
sato b1d64a728d add DoCoMo sigmarion keymap. 2000-09-27 09:30:47 +00:00
aymeric 5712405584 cross-compile properly 2000-09-27 08:28:34 +00:00
aymeric 25365607f3 minor aesthetic changes, plus explicitly state this is public domain 2000-09-27 08:24:02 +00:00
aymeric 97e929ff45 define PCB_REGS_* so that kdb compiles again 2000-09-27 08:23:50 +00:00
scottr 489ed1a908 The Duo ADB controller doesn't notify us that it needs to be polled
through the (emulated) VIA.  Work around this problem by polling the
Power Manager chip directly.  From Daishi Kato, PR 9852.
2000-09-27 03:57:51 +00:00
scottr 29923311f1 Set up ADB hardware type before making decisions based on same.
This is part of PR 9852 from Daishi Kato.
2000-09-27 03:27:23 +00:00
scottr 7c2fc39588 Now that we do collision detection and assign all ADB devices to distinct
addresses, it makes sense to print the actual address of the device rather
than the original address.  The latter is useful to distinguish the type
of device only, so we maintain that data internally (as we always have).

This closes PR 10557 from Dave Huang.
2000-09-27 03:22:05 +00:00
wdk ceb69697cd Backout previous commit.
loadfile_machdep.h doesn't belong in /usr/include/machine

Pointed out by Simon Burge
2000-09-27 02:06:08 +00:00
msaitoh f487c6c12e check whether both COMPUTEXEVB and SH7709A is defined to access special
register.
2000-09-26 22:23:55 +00:00
msaitoh 7c1b5c5599 fix SDMR settings:
- s/BSC_SDMR_VAL/BSC_SDMR3_VAL/
 - add options COMPUTEXEVB
2000-09-26 22:20:03 +00:00
eeh 008eadbac6 UltraSPARC machines don't have FP queues. Don't let userland code set them.
It tends to break the FPU emulation code.
2000-09-26 22:05:50 +00:00
jeffs 1bf0f4630f Use a cast to handle syscall() copyin case with 64b clean ctx save/restore. 2000-09-26 18:24:45 +00:00
jeffs d6f992112d No longer save $at on syscall entry. v1 does appear to be used as if
you do not save it and pass it along in rval the system will start
to fail running user programs.  This finishes the suggestion by cgd to
not save some registers on syscall entry.
2000-09-26 18:22:12 +00:00
uch a21df3ae8e fix R3900 FlushCache bug. 2000-09-26 17:47:40 +00:00
ad a01a66c525 cac* at eisa? reported as working. 2000-09-26 11:51:14 +00:00
wdk bbec09cae1 Add stand directory to build process 2000-09-26 11:45:06 +00:00
wdk 7378a103a0 Much needed installboot utility. Manual page to follow.
Builds and installs from stand directories, but untested from higher
level makefiles.
2000-09-26 10:00:19 +00:00
wdk 50e120c13f Parse boot string intelligently to extract the boot device options.
This permits boot from any SCSI ID
2000-09-26 09:48:35 +00:00
wdk 7495cd76b1 Since we don't have a lseek function in the PROM firmware standalone libs
we have to poke the data structures directly to force the offset we need.

The open() function returns with the address of the IO control block in
register t0 so we take a copy of it for our brute-force lseek function.

This should be reasonably portable since the firmware writers closely
follow UNIX semantics and the open stubs should recompile and use the
same registers.   May break on the rebadged clones -- buyer beware.

The alternative is to use dummy reads to go forwards and reopen followed
by dummy reads to go backwards.  It takes around 60 seconds to boot
using this method if we use a clean filesystem.

Tested with firmware versions 5.40 and 5.43
2000-09-26 09:32:25 +00:00
wdk 9b4e50f624 Second stage bootstrap:
-  Rename from boot.mipsco -> boot to be consistant with other ports
  -  use ELF format
2000-09-26 09:11:04 +00:00
wdk 1eec339f4b First stage bootstrap is stored on boot sectors in ECOFF format. Ensure
entire file fits within the imposed limit.
2000-09-26 09:06:50 +00:00
simonb 215a3a5491 Add support for booting off RAIDframe RAID1 mirrors.
Check the first partition type in devopen(), and if it is of type
FS_RAID, add 64 to blkdev_part_offset.

NOTE: This brings the size of the alpha first-stage bootblocks up to
      close to the maximum.  RAID1 support is controlled by the
      BOOTXX_RAID1_SUPPORT define, and is easy to disable if size
      becomes an issue.
2000-09-26 05:13:36 +00:00
pk 2e79bfed2d Missing `#if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)' 2000-09-25 21:02:38 +00:00
simonb ea0dd8a5fb Reenable VNODE_OP_NOINLINE, and some white space nits. 2000-09-25 14:05:32 +00:00
abs 3ef92f0bdb Use "options<SPACE><TAB>" not "options<TAB>" - noted by simonb.
Move VNODE_OP_NOINLINE and NFS_V2_ONLY into '# Filesystem options' section.
Consistently label '# Filesystem options' and '#File systems' sections.
2000-09-25 13:54:50 +00:00
abs ccf1c822a6 Ensure all INSTALL config files have (at least) COPTS="-Os", cincluding bebox
based on it working already for macppc.
Also add commented out:
#options        VNODE_OP_NOINLINE       # Don't inline vnode op calls
#options        NFS_V2_ONLY             # Exclude NFS3 and NQNFS code
as suggestions for additional savings
2000-09-25 11:46:37 +00:00
sato eb2da98d92 #include <sys/reboot.h> would probably suffice for those. 2000-09-25 09:03:32 +00:00
sato 67afa9cfe2 - when PMUINT_BATT or PMUINT_BATTINTR interrupts occured,
send CONFIG_HOOK_PMEVENT_SUSPENDREQ event.
2000-09-25 03:51:28 +00:00
sato 1efb55d0b4 - add debug/verbose functions. 2000-09-25 03:47:37 +00:00
sato 5125b04184 - can compile these files.
#include <sys/boot_flag.h>
2000-09-25 01:56:56 +00:00
itohy dd5d3287ec Use "etext" instead of "_etext" like db_trace.c,
which makes it be linked by a.out ld.
2000-09-24 23:46:37 +00:00
itohy c3202405d5 Support half-duplex mode (use only one DRQ).
Fix PR #10308.
2000-09-24 23:40:12 +00:00
jdolecek f9f2c92422 this file was oversight at first (pointed out by is):
Add new boot flags -v, -q, which switch on AB_VERBOSE or AB_QUIET
respectively. This follows recent bootverbose/bootquiet changes.
2000-09-24 20:56:04 +00:00
jdolecek 2308091f66 update usage message (new flags -v, -q) 2000-09-24 18:28:18 +00:00
jdolecek b135d5504a netbsd_opts.c was removed as part of bootverbose/bootquiet changes
Pointed out by Lennart Augustsson in private e-mail.
2000-09-24 18:13:54 +00:00
tsubai 5836de14e4 Fix a bug introduced in BOOT_FLAG change. 2000-09-24 16:16:37 +00:00
jdolecek b1f94e26ab don't specify number of ptys if >= 16 (current default initial number)
pty comments: normalize and g/c what is no longer relevant
2000-09-24 15:59:26 +00:00
tsubai 4833accce2 In mem_regions(), remove zero sized entry returned from OF.
Since this function uses size == 0 to delimiter, valid entries must not
contain 0 in size field.

G4 Cube should boot now. :-)
2000-09-24 15:57:03 +00:00
tsubai 4317291e1a Make HTABSIZE calculation work with >1GB RAM. 2000-09-24 15:26:34 +00:00
jdolecek 5fea96167f use new generic bootverbose instead of local definition 2000-09-24 12:37:03 +00:00
jdolecek 27824fb036 note support for verbose/quiet boot (-v, -q flags) 2000-09-24 12:33:58 +00:00
jdolecek 49c105ffdb add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate

as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro

for hpcmips, use new bootverbose instead of it's own hpcmips_verbose

Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
2000-09-24 12:32:31 +00:00
simonb cd2e1c1e91 Use ${COPY} instead of -c for ${INSTALL} commands. 2000-09-23 13:53:41 +00:00
bjh21 d0dfd74448 COrrect comment at top and add options NFS_V2_ONLY. 2000-09-23 12:58:26 +00:00
bjh21 b6ba812d35 Much juggling of pmap startup sequence:
* All of pmap_init is now deferred to the first call of pmap_create.  This
  allows us to allocate stuff dynamically using malloc.
* pv_table (which is needed before malloc is available) is temporarily
  allocated using pmap_steal_memory in pmap_bootstrap, and then
  re-allocated using malloc in pmap_create, with the old allocation being
  given back to UVM.  This should save some memory on small machines, but
  the malloc overhead probably soaks it up.
2000-09-23 12:54:47 +00:00
bjh21 3112fd4f14 Add a pmap_steal_memory implementation. This has two good consequences.
First, it reduces the kernel text segment by 1k or so.
Second, it should enable me to eventually allocate the pv_table dynamically.
2000-09-23 11:10:58 +00:00
augustss e9a2baa2ff Grab a major # for USB scanners. 2000-09-23 04:30:08 +00:00
eeh ece5d6d3f0 Define __BUS_SPACE_HAS_STREAM_METHODS now we have them. 2000-09-22 21:01:55 +00:00
is 4e2cf3688b fpu_emulate.h:
the fmovecr constant table has the internal format
  of the constants. So, when changing the mantissa size by a
  non-multiple of 32 bits, we'd have to change this table, too. As
  all other code changes just chopped of the least significand
  32bit word of the mantissa, we correct the mantissa size instead
  to (115 - 32 == 83) bits.
fpu_fmovecr.c:
  put a safety belt in, to catch the next person who doesn't know this.
fpu_int.c:
  in one place, the reduction of the mantissa size was overlooked.
fpu_log.c:
  as the most significand 32bit word of the mantissa was changed back to the
  old format, change back the table indexing code, too.

This should fix PR 11045.
2000-09-22 19:47:58 +00:00
scw 5f6802db57 Add pmap_zero_page_uncached(), and the PMAP_PAGEIDLEZERO macro. 2000-09-22 08:27:00 +00:00
thorpej 264dadf928 After consultation of the 21164A manual, the I-cache blocks are
indeed tagged with ASM and the ASN, "per the Alpha architecture".
It is therefore safe to cancel any pending lazy I-sync on a
given CPU when a new ASN is assigned on that CPU.
2000-09-22 05:23:37 +00:00
scottr 7eec1b2d04 Attach exactly one keyboard to the wscons console. 2000-09-22 04:56:54 +00:00
thorpej 0564259315 Make this a more likely laptop config file. 2000-09-22 00:18:17 +00:00
eeh 57ebc2eb53 Remove some unsupported devices and add support for the `com' device. 2000-09-21 23:46:49 +00:00