Commit Graph

82862 Commits

Author SHA1 Message Date
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
christos ecdff16f80 - use dk_lookup instead of our home-spun version.
- allow raid to be configured in a wedge
- allow wedges to be configured in a raid
- add autoconfiguration of wedges in a raid
2006-08-27 05:07:12 +00:00
christos b7a6606cb6 Add horrible hack for wedges. Why is the block device of the wedges in use? 2006-08-27 05:00:00 +00:00
christos 1a789da3ec Use dk_lookup. 2006-08-27 04:58:40 +00:00
christos 9472fb0cb6 raid and ccd now use dk_lookup. 2006-08-27 04:58:06 +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 eb74489b57 When receiving a SCSI message, it's important not to deassert ACK on the last
byte until we've worked out what to do with the message, since if we plan
to reply to it we have to assert ATN before deasserting ACK.  Implement this.
2006-08-26 23:55:22 +00:00
bjh21 286856d098 QAS REQUEST is a one-byte message. Make MSG_IS1BYTE recognise this. 2006-08-26 23:32:55 +00:00
bjh21 604c7b6558 Use standard MSG_IS1BYTE, MSG_IS2BYTE, and MSG_ISEXTENDED macros rather
than rolling our own.
2006-08-26 22:37:07 +00:00
bjh21 c981542cbe Use the 'z' size modifier when printfing size_t, so that GCC doesn't complain
on systems were size_t isn't unsigned int.
2006-08-26 22:33:18 +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 f9cd3d1167 more version lossage 2006-08-26 20:37:50 +00:00
christos cb5c9c5f42 PR/34287: Gene ENonymous: ipf/ippool enabled kernel fails build.sh build due to
use of "version" variable name
2006-08-26 20:36:17 +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
christos c762f34e0e PR/34284: Gene ENonymous: when "ippool -F" is invoked, error is
"ioctl(SIOCLOOKUPFLUSH): Bad address"
2006-08-26 20:25:23 +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
matt ef686bc4f3 Nuke netccitt. 2006-08-26 19:46:51 +00:00
matt 746233bae3 Nuke XNS kernel support. 2006-08-26 19:45:43 +00:00
christos dace278549 PR/34292: Aaron Hodgen: twa driver incorrectly reports drive size/description 2006-08-26 19:35:51 +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
tsutsui b5825ccf25 Change types from int8_t to char for arrays which store char names. 2006-08-26 14:04:55 +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
dyoung 9f2b43c4c3 In promiscuous mode, some WNICs stop filtering management frames
whose destination does not match our MAC address.  Filter those
frames in ieee80211_recv_mgmt, to prevent spurious
deauthentication/disassociation.
2006-08-25 21:04:07 +00:00
riz df667bafa9 In sk_watchdog(), attempt to reclaim pending TX descriptors before
resetting the hardware.  Should fix occasional watchdog timeouts
seen with this driver.

From FreeBSD, via OpenBSD.
2006-08-25 20:16:57 +00:00
matt 2c65982795 Make sure any inclusion of <netccitt/*.h> is protected by opt_ccitt.h and
CCITT.
2006-08-25 19:46:04 +00:00
matt 6c8fa3224e One step closer to loadable domains. Store pointers to a domain's soft
interrupt queues so if_detach can remove packets to removed interfaces from
them.  This eliminates a lot of conditional ugly code in if.c
2006-08-25 19:33:50 +00:00
matt 5e87012f78 Add __NULL_STMT which is do { } while (/* CONSTCOND */ 0) 2006-08-25 19:07:44 +00:00
matt 1b21337267 Don't include <netccitt/x25.> and don't bother checking for SIOCSIFCONF_X25. 2006-08-25 18:29:17 +00:00
reinoud 5b2c16b797 Fix small though important errors in the Ecma-167 structure definitions. 2006-08-25 17:43:51 +00:00
matt b0bf94791a Don't descend into netns and netccitt 2006-08-25 17:40:21 +00:00
matt 6d292cb00b Remove support for netns and netccitt. For now, don't include files.netns
and files.netccitt.
2006-08-25 17:32:27 +00:00
manu 753fce01f4 netbsd32_sys_ioctl was called with improper syscall argument structure, this
caused any X11 program to fail because FIONREAD ioctl always returned an
error.
2006-08-25 16:17:05 +00:00
manu 01f2e16aa8 Add support for socket ioctl. 2006-08-25 08:25:03 +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
riz 62cb42312d Cleanup, with no functional changes:
- remove unused code
	- KNF
	- ANSI function declarations
	- replace printf() with aprint_error() except in debug functions
	- a few minor indentation/whitespace changes
2006-08-25 02:34:30 +00:00
riz 0284fe298f Regen (Marvell product IDs) 2006-08-24 22:40:59 +00:00
riz 4a163d3c68 Add a bunch of Marvell product IDs, from OpenBSD. 2006-08-24 22:40:20 +00:00
dbj f7434c5451 avoid diagnostic panic if both blk and chr wedge are open at the same time 2006-08-24 21:57:11 +00:00
dsl 5464d4dc61 Create a linker map file.
Very useful when trying to find out where recent 'bloat' has come from,
as well as giving exact details of what is actually in the kernel.
2006-08-24 21:23:40 +00:00
manu 432f035fa6 The return value for Linux shmat on amd64 does not suffer the same horrible
hack as on i386.
2006-08-24 16:36:59 +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
christos da9052a357 Don't free what we did not allocate. 2006-08-24 12:40:39 +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
jld e782915872 Add %'s to go with PRI format constants. 2006-08-24 01:08:00 +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
bjh21 b223d41e99 gettime and settime functions are meant to return errno values. Make
the pcf8583 ones do so.
2006-08-23 21:21:34 +00:00
dogcow 51faed03f9 move #ifdef up a few lines to prevent unused variable warning/error 2006-08-23 21:17:48 +00:00
bjh21 a707189c87 Use VALID_R15_PSR() to check the context we're restoring in
linux_sys_sigreturn().  Somehow this got missed when I introduced that macro.
2006-08-23 21:16:58 +00:00
adrianp 3d8cbc06ba A problem has been identified in the in-kernel PPP code shared by ISDN PPP
interfaces ippp(4) and pppoe(4). Insufficient checking of options presented
by the peer may cause writing of copies of the malicious input beyond the
end of a buffer allocated for that purpose.

Issue found by pavel@
Fix from martin@

This is SA2006-019 (CVE-2006-4304)
2006-08-23 20:02:23 +00:00
manu 81c909dd45 1) Complete Linux exit_group() emulation
Members of the thread group must die without reporting to the parent and
without going to zombie stage. We do that by reparenting to init before
catching a SIGKILL. The parent will not see the child death.

The thread group leader must report the exit status, even if it exits
because of another thread calling exit_group(). We do that by storing the
exit status in struct linux_emuldata_shared, and the exit hook has the
duty of setting struct proc's p_xstat for the thread group leader.

2) For exit/fork/exec hooks, move the NPTL specific code to separate functions
that are shared between COMPAT_LINUX and COMPAT_LINUX32

3) Fix LINUX_CLONE_PARENT_SETTID semantics
2006-08-23 19:49:09 +00:00
christos f73c6e5980 Change iostat_alloc() to take the parent pointer and the name directly, so
that callers are not responsible for initializing the fields. Store the name
inside the struct instead of maintaining a pointer to external storage, or
leaked memory (nfs case).
2006-08-23 17:19:32 +00:00
christos f0f1731b24 Acting as Elad's keyboard:
Place the securelevel checks in their logical locations.
This will be clearer in the future when code changes to use kauth(9) calls.

input and okay ad@
2006-08-23 15:44:29 +00:00
cube 7db2b0d746 Regen (Broadcom NetXtreme II). 2006-08-23 13:55:48 +00:00
cube 7de2074ec7 Add Broadcom NetXtreme II devices. 2006-08-23 13:54:37 +00:00
kent dab6bf2001 implement auto-detection of volume resolutions 2006-08-23 11:24:07 +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
riz ec9d914ee6 Regen for GALILEO -> MARVELL 2006-08-22 21:41:12 +00:00
riz 3f9d78d294 Rename vendor GALILEO -> vendor MARVELL . Marvell bought Galileo years
ago, we have little existing stuff in the tree, and this will make it
easier to keep certain network drivers in sync with other OSes.

OK matt@, uwe@
2006-08-22 21:40:17 +00:00
reinoud 7915eb6468 Fix pool allocation/freeing problem for once and for all correctly. Since
it was initialised quite late due to its reliance on disc data the mount
process could have stopped before initialising and thus could panic again
only now for uninitialising an not initialised pool! *sigh*
2006-08-22 16:52:41 +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
martin c8872be34c Add a new swapctl(2) command to unset the dump device. 2006-08-22 14:07:07 +00:00
seanb eeb51ff4c3 Don't leave a dangling socket (no associated struct file) if
user supplied a bad name or anamelen parameter to accept(2).
If bad paramaters were suplied and a copyout() failed, the
struct file was cleaned up but not the associated socket.  This
could leave sockets in CLOSE_WAIT that could never be closed.
2006-08-22 13:39:48 +00:00
riz 0bfc315592 Add sk(4) now that it works. 2006-08-22 06:49:55 +00:00
riz 2314dce488 Add byteswapping where appropriate, to allow things to work on
(at least some) bigendian systems - I tested on macppc.

From brad@openbsd .
2006-08-22 06:24:10 +00:00
uwe b320dcd170 Fix a pasto: save CONFIG_HOOK_PMEVENT_AC hook in the correct variable.
From Adam Wysocki on port-hpcsh@.
2006-08-22 01:55:00 +00:00
reinoud 5223c4995c Make a better guess on VAT locations so discs that are semi-standard
formatted can be recognised. This also fixes the bug that prevented UDF to
mount an empty CD-R/DVD*R disc.
2006-08-21 23:52:19 +00:00
reinoud 445a215f26 Fix spurious panic when twice remounting a bad filingsystem. It then gets
the same memory block allocated as before and it bombs out on its
descriptor pool allready being initialised. It turns out that the pool was
not allways destroyed. This fix ought to clean it up whatever the cause of
the mishap that results in a reject.
2006-08-21 22:23:09 +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
martin 5581630d1f Add <sys/lock.h> include for <sys/callback.h> 2006-08-21 09:06:06 +00:00
martin b87950a9f6 Use %zu for size_t 2006-08-21 09:05:22 +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
riz a06f7205fb Some cleanup in skc_attach():
- does not need splnet()
	- disestablish the interrupt and unmap bus space on failures.
2006-08-20 18:04:53 +00:00
riz c250a823e7 Make this driver compile when SK_USEIOSPACE is defined - I have no
evidence that this is actually needed except for the existence of the
code itself, but if it's going to be here, it should compile.  Tested
briefly on my ASUS motherboard with built-in sk interface.
2006-08-20 16:03:30 +00:00
christos 9d18036adc PR/34241: Dave Sainty: Bound a memcpy to the sizeof the buffer where we
are trying to save the contents, instead of trying to copy what the lenght
of the acpi resource tells us.
2006-08-20 15:10:59 +00:00
christos cba8e50f44 From Elad:
Attached diff short-circuits kauth_authorize_action() if the request
comes from the kernel (NOCRED or FSCRED).

okay matt@
2006-08-20 15:05:14 +00:00
yamt f3d146fd88 vmf_to_prf: tweak code to avoid a "may be used uninitialized" warning.
pointed by Kurt Schreiner.
2006-08-20 13:14:03 +00:00
yamt 4e59653466 move kmem_kva_reclaim_callback out of #ifdef DEBUG.
fixes compilation problem in the case of !DEBUG.
pointed by Kurt Schreiner.
2006-08-20 13:08:11 +00:00
blymn 50abf3c730 Add functions to the fileassoc interface to allow a "hint" to be provided
instead of performing an implicit VOP_GETATTR() when adding/looking up
fileassoc entries.
2006-08-20 10:38:23 +00:00
yamt 0406a06106 implement kva reclamation for kmem_alloc quantum cache. 2006-08-20 09:45:59 +00:00
yamt fc12b34a0a kmem_init: use vmem quantum cache. XXX needs tune. 2006-08-20 09:44:06 +00:00
yamt c8cdcde4de implement vmem quantum cache. 2006-08-20 09:43:08 +00:00
yamt 3c433fc395 implement PR_NOALIGN. (allow unaligned pages)
to be used by vmem quantum cache.
2006-08-20 09:35:25 +00:00
skrll b33c02bc86 Remove the _UCONTEXT_TO_SIGCONTEXT() and _SIGCONTEXT_TO_UCONTEXT() macros
as nothing uses them and they wouldn't work as _MCONTEXT_TO_SIGCONTEXT()
and _SIGCONTEXT_TO_MCONTEXT() got deleted a while ago.
2006-08-20 08:02:21 +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
macallan 1ab7fe6df2 fix a typo so we actually write sane values into the clipping registers 2006-08-19 17:57:13 +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
plunky 95d2b886d7 The ubtbcmfw(4) driver fails to compile, as noted by PR kern/34219.
While it can be made to compile, the paradigm is not quite right because
it attempts to contact the filesystem during autoconfig which sometimes
causes a panic. Even if that was fixed, there is another potential problem
in that the driver tries/sleeps/tries/sleeps and the sleep could
theoretically sleep past the rc.d/btconfig stage and the controller
would remain unconfigured.

So, I have prepared a different method for loading the firmware to
Broadcom BCM2033 chip based devices. A package 'sysutils/bcmfw' will load
the firmware files via a ugen(4) device interface.

This update removes the ubtbcmfw(4) driver and adds a table to the ubt(4)
driver so that it will not attach to Broadcom BCM2033 based devices before
the firmware was loaded.

This fixes kern/34219
2006-08-19 16:35:02 +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
yamt 8f01bd288f pool_init: in the case of PR_NOTOUCH, don't bump item size to
sizeof(struct pool_item).
2006-08-19 14:01:15 +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
skrll 326bcc171a Add some sysctl knobs to bring us closer to the FreeBSD driver.
Also sysctl enable the debug message printing (if IWI_DEBUG) is defined.
2006-08-19 06:32:52 +00:00
macallan ea7df82ebc fix some typos, add mmap() support for X
needs options RADEONFB_MMAP_BARS for now
2006-08-19 04:39:32 +00:00
macallan f5804719cd make this work on macppc.
fixes and caveats:
- will switch to 32bit colour, 8bit support needs some more work
- added support for fonts with widths that aren't multiples of 8
- for now the driver will always try to become system console
- mode switching works but is ugly
- all the acceleration bits work
- X should work with wsfb, mmap() needs some more work
- it still needs a hack to allow wsdisplay_cnattach to be called twice
2006-08-19 04:00:15 +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
yamt 36b78db59e ubc_fault: fix a deadlock in the case of uvm_loanbreak() failure. 2006-08-18 15:03:21 +00:00
martin 2dfd1d809c Fix wrong prom_getoption() return value checks 2006-08-18 11:17:25 +00:00
uwe dee7f461a0 G/c unnecessary includes. 2006-08-18 02:42:38 +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
bjh21 279e0fb4d4 There seems to be no good reason for sfbp(4) to be commented out here, and its
state is breaking alpha builds.  I'll uncomment it and see what breaks.
2006-08-17 22:19:13 +00:00
he f4ad138e01 Make this build again without OBOE_DEBUG defined (get rid of warnings
about unused variables).
2006-08-17 22:14:38 +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
gdamore 0d7e99a27a Initial import of radeonfb. Works to some degree on at least some hardware.
Most of the testing was done on MIPS hardware -- it probably needs work before
it will be useful with x86 hardware, and it is probably incompatible with
the X11 server.

"ATI Technologies Inc. ("ATI") has not assisted in the creation of, and
does not endorse, this software.  ATI will not be responsible or liable
for any actual or alleged damage or loss caused by or in connection with
the use of or reliance on this software."

Enjoy!
2006-08-16 22:46:44 +00:00
bjh21 64e85b48bf Fix an obvious typo. 2006-08-16 22:09:12 +00:00
gdamore f943f04933 2nd try. Fix errors (hopefully) that prevented this from compiling. This
has not been tested, as I lack the tools necessary to build this (and can't
bootstrap pmppc toolchain for some reason.)

Requested by garbled@
2006-08-16 21:28:36 +00:00
plunky d9b3621e66 Fix broken comments - there is no SO_ISCONNECTED or SO_ISCONFIRMING
this fixes kern/32058
2006-08-16 18:31:54 +00:00
plunky b85b083b6f Fix misleading comments regarding disposal of mbufs 2006-08-16 18:23:40 +00:00
plunky b54ec7d631 Remove macro call sonewconn() => sonewconn1() as it is no longer necessary.
There are no such calls and the compiler would catch mistakes like this
in any case.
2006-08-16 18:17:23 +00:00
christos c07e49883f Pretending to be Elad's keyboard:
Attached diff let's call kauth_register_scope() with a NULL default
listener. from tn2127:

"callback is the address of the listener callback function for this
scope; this becomes the scope's default listener. This parameter may be
NULL, in which case a callback that always returns KAUTH_RESULT_DEFER is
assumed."
2006-08-16 17:57:26 +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
yamt c777d5404f - fix integer overflows.
- bump VMEM_MAXORDER.

should fix "idx < VMEM_MAXORDER" assertion failure reported by
Martijn van Buul on current-users@.
2006-08-16 13:19:03 +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 c189c05750 Remove various devices that acorn32 no longer has. 2006-08-14 22:05:45 +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
rpaulo e47f6f523c Actually, we don't support CLOCK_SELECTION unless we have
pthread_condattr_{get,set}time() and clock_nanosleep().
2006-08-14 18:17:48 +00:00
rpaulo 13a593e7c8 We support the POSIX Clock Selection Option. 2006-08-14 18:14:19 +00:00
ad 87dd042f7a sys__lwp_create: put newuc back to the pool on failure. 2006-08-14 14:11:21 +00:00
gdt 7db024f8e7 When mounting an MSDOS fileysystem, do not require that bytes 252 and
253 of the superblock be zero.  Searching the net failed to find any
justification for checking these bytes; all available references say
that they are part of the boot code and not BOOTSIG2 and BOOTSIG3.

Modify the MSDOS 7.1 bootsector definition to have 420 bytes of boot
code and no BOOTSIG[23], rather than 418 bytes of boot code, to follow
available references and apparent Windows practice.  A test build
showed that these defines are not used other than in the check removed
by this commit.

Patch tested on netbsd-3, and enabled mounting of a 4 GB CF formatted
under Windows XP and then in a digital camera.  The CF was previously
unmountable.

Concept approved on tech-kern by christos@ and martin@.
2006-08-14 14:06:26 +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 e0a36ed3ff Reclaim resources from an initial vga console on attach. 2006-08-13 20:27:33 +00:00
jmcneill 28ff3283af Acceleration definitions (missed in previous commit). 2006-08-13 20:26:55 +00:00
jmcneill 5effc9a4f9 Expose RGB palette tables. 2006-08-13 20:25:47 +00:00
jmcneill d7fd667c03 Provide a method for other display drivers to ask vga to free resources
it had claimed while acting as the initial console device. This allows
(for example) vga to be the initial console, and an accelerated
framebuffer driver to take over later.
2006-08-13 20:24:51 +00:00
jmcneill ac96fed0c2 No longer try to attach unichromefb as an initial console device. 2006-08-13 20:22:27 +00:00
martin b28babedf4 Backout previous - it is already dealt with at the config level. 2006-08-13 19:17:11 +00:00
martin 4ada5572ad Make the discovery methods optional (as they were already declared
in conf/files)
2006-08-13 18:45:08 +00:00
christos ca4ffb9d4d Add the Apple HFS UUID for the Intel based mac's. From FreeBSD. 2006-08-13 15:31:21 +00:00
jmcneill ef21ee74e6 Add accelerated putchar and cursor ops. Also fix a bug in copyrows that
caused scrolling down to always fail.
2006-08-13 14:16:44 +00:00
plunky 6232d01b2d Remove obsolete file from repository 2006-08-13 13:59:45 +00:00
dsainty 07955f97ca Add support for the Promise PDC20771, present on the Promise FastTrak TX2300.
This support is not based on a datasheet, because a datasheet is not readily
available for this chip.  However, Promise have partially open sourced their
driver for Linux, and all suggestions are that the PDC20771 is pretty similar
to other recent SATA chips.

The TX2300 has two ports, but there is unoccupied space on the board for a
third PATA port.  It isn't entirely obvious how many channels the PDC20771 can
support.

The pdc205xx_drv_probe probe is necessary to avoid probing two wd* devices for
every physical device.
2006-08-13 09:39:25 +00:00
dsainty cff0bb36bb Regen: Add the Promise PDC20771, present on the Promise FastTrak TX2300 2006-08-13 08:02:07 +00:00
dsainty 1a778d636e Add the Promise PDC20771, present on the Promise FastTrak TX2300 2006-08-13 08:00:14 +00:00
xtraeme dfa8fac821 Add __KERNEL_RCSID() 2006-08-13 06:21:10 +00:00
oster 505c134201 Apply a change from damien in OpenBSD: fix a use-after-free (read)
of a mbuf in wpi_tx_intr().
2006-08-13 03:52:33 +00:00
jmcneill 7c8d725f94 Add acceleration support for the VIA UniChrome driver. While here, fix a
bug that caused the screen to be filled with annoying vertical lines.
2006-08-13 03:37:02 +00:00
jmcneill bdbf1a3323 Add rasops16 attribute to unichromefb. 2006-08-13 03:34:11 +00:00