Commit Graph

43187 Commits

Author SHA1 Message Date
tsutsui 9a269899a0 Avoid unneeded sign extension. 2006-08-27 06:04:12 +00:00
christos 47966b67d0 This is why we should not copy buggy code... You get to fix bugs multiple
times: Wedges don't have partitions, so don't use MAKEDISKDEV
2006-08-27 05:37:40 +00:00
tsutsui d26ffc68c4 Make badaddr_flag volatile to avoid unintended optimization by gcc4.
Now GENERIC compiled by gcc4 works on NWS-3470D.

XXX: Is this gcc4 optimization bug, or volitile is required in this case?
2006-08-27 05:25:47 +00:00
tsutsui 037c731759 Put .rodata.str1.4 and .rodata.cst4 sections by gcc4 into .rodata section.
Fixes malloc(9) failure at early boot on newsmips.
2006-08-27 04:48:44 +00:00
christos bcecf5d797 Fix previous thinko. 2006-08-27 04:31:55 +00:00
christos fddb23d3e2 Fix reversed test 2006-08-27 04:16:33 +00:00
christos 5bb209df43 Wedges don't have partitions. 2006-08-27 04:11:45 +00:00
bjh21 2cd3c4f0e6 Move the sgimips "sbic" driver from arch/sgimips/hpc/sbic.c to
dev/ic/wd33c93.c.  This may not be the best WD33C93 driver we've
got, but it's the most recently worked on and probably the most
portable, so it seems like a good basis for further work (and in
particular an acorn26 driver for the Acorn SCSI card).  There's
no functional change in this commit, and sgimips kernels still
compile.
2006-08-26 22:06:36 +00:00
christos e0df1e4c51 PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
2006-08-26 20:26:43 +00:00
matt 6d37d896d6 Increase SYMTAB_SPACE by 10000 to 210000. MIPS64 needs a slighter large
symbol table.
2006-08-26 20:20:38 +00:00
matt 9ffa81c4ee Use PRIx64 instead of llx 2006-08-26 20:19:19 +00:00
matt 6ed3910f9e Use vaddr_t for virtual addresses. Don't cast pointers with int or
unsigned, use intptr_t or uintptr_t as appropriate.
2006-08-26 20:18:36 +00:00
matt 140eda393d Use vaddr_t for virtual addresses, not u_int32_t. 2006-08-26 20:15:28 +00:00
matt 921e6abd0a Use PRIx64 instead of llx 2006-08-26 20:14:51 +00:00
matt 410709f386 If we are _LP64, we must be mips64, not mips32. 2006-08-26 20:13:02 +00:00
ad 55154c9edc Add x86_sfence(), x86_mfence(). 2006-08-26 20:08:07 +00:00
ad 66cc95bc3f Don't grab the kernel lock for MPSAFE syscalls. 2006-08-26 20:05:25 +00:00
matt 93c0edefe2 Don't cast pointers using unsigned and/or int. Use intptr_t or uintptr_t
as appropriate.
2006-08-26 20:04:59 +00:00
matt 297706ddda Nuke unneeded LP64 conditional section 2006-08-26 20:03:49 +00:00
tsutsui 037b569f1b No need #include <machine/param.h> since #include <sys/param.h> is enough. 2006-08-26 17:36:06 +00:00
tsutsui 065fd1a5c0 Fix pointer signedness warnings by gcc4. 2006-08-26 14:13:40 +00:00
tsutsui 0216ae4c51 Handle (.rodata.*) sections created by gcc4. 2006-08-26 14:12:26 +00:00
xtraeme 18199bb695 Be a little less agressive in declaring the change pending bit stuck,
increase the number of retries by two orders of magnitude wont affect
most systems but will make transitions smoother on marginal ones.

From gwk@openbsd.
2006-08-26 10:10:00 +00:00
tsutsui 6dffe5790d options<space><tab> 2006-08-26 08:13:46 +00:00
tsutsui dca3a6d117 Remove netns and netccitt options. 2006-08-26 08:08:30 +00:00
tsutsui 6fed756003 Regen from GENERIC.in:
1.54:
> Disable SYSTRACE by default on all kernels (discussed with core)
1.55:
> Remove obsolete #options VERIFIED_EXEC, found by grep(1).
2006-08-26 08:04:32 +00:00
tsutsui 6ff205ce76 Remove obsolete #options VERIFIED_EXEC, found by grep(1). 2006-08-26 07:59:21 +00:00
skrll edb23da2a3 Pull across the stack trace stuff from OpenBSD. 2006-08-26 06:27:40 +00:00
skrll f0379c9f4b Pull across OpenBSD arch/hppa/hppa/machdep.c:1.77.
revision 1.77
date: 2002/09/09 18:33:42;  author: mickey;  state: Exp;  lines: +4 -2
set up the frame flags and a user frame better on exec
2006-08-26 06:17:48 +00:00
skrll e875774fce G/C dma_cachectl. 2006-08-26 06:07:28 +00:00
skrll 5a545933ba Correct assembler syntax to load the correct (left) bits of a constant.
Inspired by OpenBSD.
2006-08-26 06:00:07 +00:00
matt 9e051a8002 Add enough configury glue so that src/tools can build a N64 mips toolchain. 2006-08-25 23:35:04 +00:00
skrll 4f9577ff1d Fix a spello in a debug message. 2006-08-25 07:21:07 +00:00
skrll 544f900acb Fix PR 33702.
Modernise the linker script and make sure we have a symbol after the
link_sets.

Make sure that pmap_bootstrap doesn't tell uvm that some of the kernel
phys pages are free. Previously uvm would very likely allocate the phys
pages used for the link_sets to a MALLOC and they'd get overwritten.

Thanks to David H. Gutteridge for testing various things.
2006-08-25 06:49:15 +00:00
skrll f2ed48bd00 KNF a comment 2006-08-25 06:23:54 +00:00
xtraeme a4f2ed9867 Remove k7_powernow_destroy() prototype... it's now defined in
x86/include/powernow.h.
2006-08-24 16:28:22 +00:00
manu db139eef22 Tweak i386 version of procfs_machdep to get Linux's /proc/cpuinfo working 2006-08-24 15:17:02 +00:00
cube d4c4e962c9 Display XD for Intel processors (Execution Disable bit support). 2006-08-24 12:55:46 +00:00
kardel bc2a798aea Pass the correct (timer instead of stat counter) timer registers to timerattach().
History: This cleans up another long standing inconsistency where timerblurb for delay() was
calibrated against the stat timer instead the clock timer. Before timecounters
this didn't matter at al as both timer run with the same frequency and the
calibration was a frequency based calibration.

Misbehaving clock found by Fanch (at) kekpar dot net on current-users@ - Thanks.
Fix verified to work by Fanch.
2006-08-24 09:52:46 +00:00
skrll 9f892c7bca Use PMAP_PRINTF(PDB_INIT, ...) instead of various #ifdefs and add some
more debug code.
2006-08-24 07:00:46 +00:00
skrll afd79cc70e KNF a comment. 2006-08-24 06:54:11 +00:00
skrll cd2d8ca31f Fix PMAPDEBUG compile by sorting the printf format problems. 2006-08-24 06:50:48 +00:00
xtraeme 9af57310fe - Move k7_powernow_* prototypes from i386/include/cpu.h to
x86/include/powernow.h
- Protect k[78]_powernow_init() functions with #ifdef POWERNOW_K[78] to
  make it build without these options.

This fixes the problem reported by hubertf.
2006-08-23 22:59:45 +00:00
jnemeth abf515e5c5 fix DDB_ONPANIC option 2006-08-23 09:16:40 +00:00
sanjayl ba5eabd137 the following address a couple of issues with the G5 port.
(1) failsafe.c  allows character input from the failsafe
console device. This is the early console device that is used for output before
the pmap layer is initialized.

(1) locore.S: make sure that the size of the cacheline for
dcbz is set to the default of 128 bytes. It also sets up other mode bits on
the 970.  This fix allows the G5 to boot into full multi user mode using a
NFS mounted root file system.
2006-08-23 05:58:39 +00:00
jnemeth d08d7d8e34 make this compile when DEBUG is set 2006-08-23 03:53:32 +00:00
macallan 3887e678eb use gain table for master volume as well 2006-08-23 03:25:31 +00:00
macallan ef6b7fdb0e fix some KNF nits 2006-08-23 02:56:32 +00:00
uwe 131b06fbff Make columns align with the header when dumping sh4 tlb.
Ifdef out dump of data array 2, it causes weird effects on landisk.
Minor whitespace cosmetic.
2006-08-23 00:09:01 +00:00
uwe ee4e3d86b3 Follow up to revision 1.16 (that only dealt with sh3).
Pass untruncated va=TEA to tlb_exception() from sh4_vector_tlbmiss too.
2006-08-22 21:47:57 +00:00
riz a9815feffa Vendor GALILEO is now MARVELL. 2006-08-22 21:42:19 +00:00
tsutsui fea89b198e Add options SOSEND_NO_LOAN. See the following comment for details:
---
# XXX Disable zero-copy page loaning in sosend() temporarily:
#     PV mappings created by sosend_loan() in sys/kern/uipc_socket.c may
#     produce virtual cache aliases and it seems to cause TLB MISS panic
#     in cache flush code called from bus_dmamap_sync(9) PREWRITE ops
#     during heavy TX packet traffic on tlp(4).
2006-08-22 16:30:41 +00:00
riz 0bfc315592 Add sk(4) now that it works. 2006-08-22 06:49:55 +00:00
hamajima 7d30668340 fix unterminated #ifdef. PR34240. 2006-08-21 15:01:54 +00:00
jnemeth 3b961daf6c move 'PCI cryptographic devices' out of the middle of the Disk section 2006-08-21 10:50:00 +00:00
bjh21 72e11b654e Clean out some of the junk from this file, sepcifically definitions for
an Amiga DMA controller, and #if 0'ed WD33C93 definitions that are duplicated
in sbicreg.h.  uPD71071 definitions can stay for now, since they're not
actually useless even though they're unused.
2006-08-20 19:26:52 +00:00
plunky 066074b94f Make btdev default count explicit 2006-08-20 07:06:57 +00:00
bjh21 d91f74bef1 Now that boot32 can pass in a useful frame rate, it's reasonable to use the
standard video mode list in our example kernels, rather that a somewhat
random subset.  So do that.
2006-08-19 23:01:23 +00:00
bjh21 da29c632f0 Add support to boot32 for passing a real vsync frequency to NetBSD.
Unfortunately, RISC OS doesn't seem to provide a sensible way to ask what
frame rate it's using so we resort to measuring it ourselves.
2006-08-19 22:44:57 +00:00
bjh21 a296cdc11f When looking for a screen mode at startup, skip any interlaced and
doublescan modes, since vidcvideo doesn't support them.
2006-08-19 22:38:42 +00:00
dsl 79c382f0db There is no need to compile machdep.c with -O2 anymore.
Fixed by changing the asm for lidt() in cpufunc.h
2006-08-19 17:50:56 +00:00
bjh21 63030cca90 If we can't find a screen mode matching the bootloader's frame rate, choose
the nearest one, rather than the first one with the same resolution.  This
is likely to be useful when the bootloader finally passes a valid frame rate.
For now, it just favours flickery over non-functional.
2006-08-19 16:57:06 +00:00
dsl a30325d38e de __P() 2006-08-19 16:27:57 +00:00
dsl c8da0759cd Fix build of machdep.c with -Os and -O3 2006-08-19 16:06:39 +00:00
dsl f648ce90ee Fix the amd64 INSTALL kernel (builds of machdep.c with -Os and -O3).
Load the idt with non-randmon data.
2006-08-19 16:04:41 +00:00
dsl 52361b12c9 Change the 'asm' pattern for lidt so that gcc4 knows it references memory
and doesn't optimise out the assignments to the descriptor memory area.
i386 kernels now build with -Os (and -O3) applied to machdep.c
2006-08-19 15:21:23 +00:00
bjh21 9dc302fec2 Arrange things so that if MONITOR isn't defined in the kernel configration,
we use the standard mode list from videomode.c rather than one generated
by makemodes.awk.  This is less useful than it might be since without a useful
frame rate from the bootloader we're likely to end up choosing a screen mode
that's either flickery or too fast for the monitor (or DRAM bandwidth).
2006-08-19 13:34:15 +00:00
bjh21 72cec93787 The log2_bpp fields of the mode list generated by makemodes.awk weren't
used for anything.  Rearrange things so that it doesn't any more, and
just produces an array of struct videomode.  modedefs.c is looking
suspiciously much like videomode.c now.
2006-08-19 11:01:56 +00:00
bjh21 1e6fe5d059 Move calculation of a screen mode's frame rate out of makemodes.awk into
the kernel, removing an element from struct vidc_mode.  The calculation
is a bit pointless at the moment anyway, since both bootloaders pass in
a constant 56, but that might get fixed one day.
2006-08-18 23:25:10 +00:00
martin eed884e62f Remove ISO and NS networking - the eon0 device is pretty confusing
in sysinst. XXX - we actually should remove it from GENERIC too.
2006-08-18 21:37:31 +00:00
martin 2dfd1d809c Fix wrong prom_getoption() return value checks 2006-08-18 11:17:25 +00:00
uwe 01cddb97a0 Refer sc_font.wsfont explicitly instead of playing cast tricks. 2006-08-18 00:41:57 +00:00
bjh21 4513244661 This is kernel-only now, so no need to check _KERNEL. 2006-08-17 22:47:33 +00:00
bjh21 15f26966cb There's no need to expose arm/iomd/vidc.h to userland any more, since
<machine/vconsole.h> has gone now.
2006-08-17 22:38:14 +00:00
bjh21 28d9a9e366 Switch to using the MI struct videomode for storing VIDC video timings.
struct videomode doesn't have a way to record border widths (though I
wonder if VESA's "margins" are the same thing), so we now just treat them
as zero.  Tested on my NC, which still seems to be working.
2006-08-17 22:33:59 +00:00
christos 11f7a16891 the kernels Arnaud and I used to fix the debugging options. 2006-08-17 19:56:14 +00:00
christos 35ca6c8b5b Fix all the -D*DEBUG* code that it was rotting away and did not even compile.
Mostly from Arnaud Lacombe, many thanks!
2006-08-17 17:11:27 +00:00
bjh21 64e85b48bf Fix an obvious typo. 2006-08-16 22:09:12 +00:00
yamt 8d460d015a don't define XEN_CLOCK_DEBUG automatically for DEBUG.
it isn't safe to do printf in microtime().
2006-08-16 13:23:33 +00:00
bjh21 b70c967724 Clean out some cruft left behind by the old console code. 2006-08-16 09:47:26 +00:00
he 4c04c967da Remove an unneeded include of the now-deleted <arm/iomd/rpckbdvar.h>. 2006-08-16 07:59:44 +00:00
bjh21 949d521d89 Un-__P 2006-08-15 23:32:09 +00:00
bjh21 cd88b446c2 vidc_initialmode seems to be initialised at startup and never touched again.
Lose it.
2006-08-15 23:02:47 +00:00
bjh21 48ddf9f65e Un-__P 2006-08-15 22:58:47 +00:00
bjh21 2de7d16656 Remove some prototypes and macros that aren't used any more. 2006-08-15 22:44:19 +00:00
sanjayl 5576a1bb85 G5/970 updates:
Setup cache bits in HID5 early on so that dcbz/icbi use the
128 byte cache line size.  The mismatch was causing dynamically linked
apps to randomly coredump.

With this fix, the G5 can boot into full multi-user by using a NFS
mounted root file system.
2006-08-15 03:29:55 +00:00
macallan aa34d188fa back out previous commit since it breaks console output when not using a
serial console
2006-08-15 01:53:26 +00:00
bjh21 90bd2ce02c Nothing in the tree uses NVIDCAUDIO or NVIDC, so stop generating them. 2006-08-14 22:33:37 +00:00
bjh21 2c38f19586 Finally remove the old, pre-wscons, acorn32 console code. This dated back
to RiscBSD and had been lurking in dark corners scaring people (mostly me)
for far too long.  It will be missed, but not much, and I hope we can clear
up any fallout before 5.0.

While I'm in the area, also remove rpckbd(4), since pckbd(4) has
been supported on acorn32 for ages.
2006-08-14 22:04:30 +00:00
martin 1db4d327d9 Allow booting from wedges. 2006-08-14 12:11:26 +00:00
jmcneill fc371b8f09 Please don't voluntarily panic before looking for ohare mac-io; I need
ohare on my Performa 6360.
2006-08-14 11:17:59 +00:00
itohy 59f807908c Use the same comment for ym(4) lines. 2006-08-14 09:38:33 +00:00
itohy cdb1835aff ACPI frontend for Yamaha OPL3-SA[23].
Derived from PR kern/33991 by jasper at pointless dot net.
2006-08-14 09:34:43 +00:00
skrll 1a3062e81b s/adpater/adapter/
Prompted by PR/34195
2006-08-14 06:22:33 +00:00
uwe 4fc8146812 Whether hd64461video is console is not is irrelevant to powering it up
on PWR_RESUME.  Drop that bogus test and check whether the screen was
blanked instead to corerctly reflect blanked status across suspends.
2006-08-14 02:34:04 +00:00
jmcneill ac96fed0c2 No longer try to attach unichromefb as an initial console device. 2006-08-13 20:22:27 +00:00
simonb 14c80e001b Add wpi@pci. 2006-08-13 02:27:32 +00:00
christos 5afff5edf4 Fix missing initialization of tmpvn; thanks gcc. 2006-08-13 00:56:37 +00:00
agc 448cb4aa28 uncomment INCLUDE_CONFIG_FILE - the information is useful, and is on by
default in other GENERIC configs
2006-08-12 22:28:07 +00:00
christos cf1ddb6596 - Check if a disk has wedges, and use the wedge device corresponding to the
root partition, instead of punting. This makes booting work
  with traditional disklabel disks and wedge autoconfiguration.
- factor out disk opening code.
2006-08-12 21:45:22 +00:00