Commit Graph

1725 Commits

Author SHA1 Message Date
christos 3ffa241fcd Add a STRONG_ALIAS macro 2006-01-20 22:02:40 +00:00
peter cd07804bde Remove unnecessary #ifdef hpcarm + includes. 2006-01-03 23:14:23 +00:00
yamt 6d12f0a6d7 implement splraiseipl() for the following ports.
evbarm, iyonix, cats, netwinder, acorn26

reviewed by Bill Studenmund.
2006-01-01 14:24:33 +00:00
perry 2d542ba1f8 inline -> __inline 2005-12-28 19:09:29 +00:00
perry e7b322a5f7 inline -> __inline 2005-12-28 18:40:13 +00:00
yamt 1c535f7467 sacom_attach_subr: don't try to initialize a lock which doesn't exist. 2005-12-27 11:10:06 +00:00
chs 33d70de438 remove the COM_MPLOCK option. always include the spinlock in the softc
and always call the simple_* locking functions.  the locking functions
are compiled out if they are not needed anyway, so a separate option
for this doesn't gain anything.

this also fixes the serial console on my alpha ES40 (which doesn't make much
sense since the com driver should still be under the big lock on alpha,
but whatever).
2005-12-27 00:46:38 +00:00
perry 50a256a3a0 __asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
2005-12-24 23:23:59 +00:00
perry 2d65de2479 bare asm -> __asm 2005-12-24 22:45:33 +00:00
perry 5f1c88d70d Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00
briggs c9d34b2987 Add an offset to the I/O port translations. This allows IQ80321
and others to avoid providing PCI I/O space at address 0.
Iyonix, however, needs to provide PCI I/O space at 0.
The others require I/O space to be offset in part due to a bug
work-around in wm(4) which requires that I/O space access be used
to reset the controllers.  If I/O space is mapped at zero, the card
claims, but ignores, the transactions, and the controller doesn't
get reset properly and can't then be used.
2005-12-15 01:44:00 +00:00
christos 0e9d2fc182 proc -> lwp, ansi 2005-12-14 00:32:29 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
scw 5536ecb20f Implement pmap_collect() for arm32. 2005-12-10 21:19:57 +00:00
yamt 6bba73019a use VM_PAGE_TO_PHYS macro. 2005-12-08 22:41:44 +00:00
ross b026f0ed35 Must have a nop after an add to the pc.
This corrects a bug affecting kcopy() to unaligned dst addresses.
2005-12-06 08:05:31 +00:00
yamt bc21da4cfb bus_dmamem_map: honour BUS_DMA_NOWAIT. noted by Manuel Bouyer.
bus_space_map: always do NOWAIT allocation as it used to be before yamt-km.

we have too many copies!
2005-11-24 13:08:32 +00:00
hamajima 3caa0d4092 delete dummy entries for vmstat. (unnecessary since May 2005) 2005-11-12 08:17:59 +00:00
hamajima 7959c31a5f add new EP93xx device drivers.
epgpio: GPIO Interface (support gpio(4))
	epled:  LED on epgpio
	eppcic: PCMCIA Interface
	eprtc:  Realtime clock
	epwdog: Watchdog timer

changes
	ep93xx_intr: add dummy entries to keep vmstat happy.
	epclk:       I use Timer1 and generate 100Hz if set.
	epe:         attach epclk and epgpio first.
	             fetch the Ethernet address from property if set.
	             I use config flags and modify MDCDIV.
2005-11-12 05:33:23 +00:00
scw 92fa4843f1 Give THUMB_CODE its own 'struct undefined_handler' so we don't try to
install the same handler structure twice (for difference coprocs).

Spotted by dbj@ using QUEUEDEBUG.
2005-11-10 11:18:55 +00:00
dbj af56e26cc6 partially revert previous commit stripping arm mapping symbols
it broke ddb when DEBUG wasn't set to -g.
2005-11-10 09:42:42 +00:00
peter 70417e76a9 Make this compile when DEBUG is defined. 2005-10-23 15:30:02 +00:00
peter 545de90bdb Fix some typos. 2005-10-23 15:04:43 +00:00
dbj 237f025382 strip arm mapping symbols for ddb using STRIPFLAGS instead of SYSTEM_LD_TAIL
this works even for kernels compiled with -g and doesn't interfere with gdb
2005-10-21 14:40:03 +00:00
hamajima 0f9691137b Fix write sequence to PHY.
I write a data first, but I wrote a command first.
2005-10-19 14:01:49 +00:00
pooka 6c4ca17312 foreach NOTEACHED make the comment say NOTREACHED 2005-10-10 09:58:54 +00:00
yamt d597202302 make VMSWAP optional again. 2005-09-17 14:38:38 +00:00
martin adcdbe2c3d Now that process_frame() is a macro (done "unannounced" in arm's
include/frame.h), don't try to define an inline function with the
same name and same contents.
2005-09-14 18:26:31 +00:00
he 80a9d6b5a5 Now that process_frame() is a macro (done "unannounced" in arm's
include/frame.h), don't try to define an inline function with the
same name and same contents.
2005-09-14 10:51:22 +00:00
christos afffbeb330 split compat_16 functions to their own file and make this compile again. 2005-09-13 22:07:47 +00:00
kleink aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
drochner 44bf0a7ee2 s/locdesc_t/int/g 2005-08-26 13:19:34 +00:00
skrll ddf730e9d9 Fix RCSID. 2005-08-19 19:45:43 +00:00
he 79220f0c2a Fix one more missed clockframe -> irqframe transition. 2005-08-14 21:08:32 +00:00
he 1aaad1fbee Follow up the type change of i80200_extirq_dispatch which now takes
an irqframe* and not a clockframe* as argument.
2005-08-14 19:23:17 +00:00
joff f0e1f44063 Fix argument mismatch (clockframe * vs. irqframe *) in ep93xx_intr_dispatch() that
has been causing compile failures.
2005-08-14 03:10:16 +00:00
joff 02b3ec89cf SSP locations needs to be defined since tspld device uses it to talk to the
TS-7200 temperature sensor.  While here, add some more GPIO registers too.
2005-08-14 03:07:30 +00:00
cube 9f1eb3e30f Change all archs that did:
#define clockframe somethingelse

to:

struct clockframe {
	struct somethingelse cf_se;
};

and change access macros accordingly.

That means that, at least for that very issue, things will not go
ka-boomy if you don't have the actual definition of struct clockframe
before including systm.h.
2005-08-11 20:32:55 +00:00
yamt 38ca5312d2 revert "defflag VMSWAP" changes for now.
there seems to be far more people who don't want to edit
their kernel config files than i thought.
2005-07-31 04:04:30 +00:00
chris 195158eb08 When the footbridge does a bus space mapping it should default to
making the mapping not cacheable, and only allow caching if the relevant
flag is passed in.

This doesn't seem to fix, or break anything, but it matches the expected
bus space API.
2005-07-30 15:14:29 +00:00
yamt 1d0891101c defflag VMSWAP. 2005-07-30 06:33:33 +00:00
nonaka c678505909 Added i80219. 2005-07-20 14:38:11 +00:00
christos f1461c7e8a No point in declaring syscall_intern and syscall in a zillion places. 2005-07-10 00:45:52 +00:00
bsh 5775b1bc3e Reduce 1K bytes of code size by gathering calls to panic into one
subroutine.
2005-07-04 02:03:27 +00:00
bsh c61364bf3e The first step to support Intel PXA270.
kernel config option CPU_XSCALE_PXA2X0 is now obsoleted by
CPU_XSCALE_PXA250 and CPU_XSCALE_PXA270.  If both of them are defined,
CPU is determined run-time.
2005-07-04 00:42:36 +00:00
bsh c5dfef4764 add register definitions for PXA270, including those for USB host controller.
rename some constants from PXA2X0_* to PXA2[57]0_* since they have different values for PXA270.
2005-07-04 00:27:24 +00:00
he e831e8461d Make the vidcsearch() prototype match the function declaration. 2005-07-03 23:09:03 +00:00
bsh d8876765c5 + use constants defined in xscalereg.h instead of 0x0001.
+ clear CPU cycle counter in pxaip_measure_cpuclock()
+ style.
2005-07-03 16:57:44 +00:00
he 34cf717530 Delete now unused "bad" label. 2005-07-02 23:08:21 +00:00
christos 6d30dcee75 PR/29607: Christian Biere systrace doesn't handle interrupted syscalls properly
Instead of jumping to the default "bad" case, jump to the error handling
switch, so that we can deal with ERESTART/EJUSTRETURN properly.
2005-07-01 18:01:44 +00:00
drochner 996c273eda adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes 2005-06-30 17:03:51 +00:00
drochner b081eee072 convert remaining autoconf bus "submatch" functions to use the new
signature (passing locators), and remove some which obviously don't
serve any purpose
(untested, sorry)
2005-06-28 18:29:58 +00:00
scw 1aea799501 In pmap_devmap_find_pa(), use 64-bit arithmetic to handle the case where
'pa + size' == 0x0. As in, if we're passed details of a region right at
the top of physical address space.

Otherwise we'll likely hit a false-positive due to 32-bit wrap-around.
2005-06-24 15:59:04 +00:00
scw 3a572660d3 Use objcopy (as suggested by Richard Earnshaw) to strip ARM mapping symbols
from the kernel image, as they interfere with ddb. But only do this if
'makeoptions DEBUG="-g"' was not specified, in case they're needed by gdb.
2005-06-20 08:42:52 +00:00
dyoung a37289db57 Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/.  That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such.  I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
2005-06-12 19:46:15 +00:00
matt e1245a3c46 Rework the coredump code to have no explicit knownledge of how coredump
i/o is done.  Instead, pass an opaque cookie which is then passed to a
new routine, coredump_write, which does the actual i/o.  This allows the
method of doing i/o to change without affecting any future MD code.
Also, make netbsd32_core.c [re]use core_netbsd.c (in a similar manner that
core_elf64.c uses core_elf32.c) and eliminate that code duplication.
cpu_coredump{,32} is now called twice, first with a NULL iocookie to fill
the core structure and a second to actually write md parts of the coredump.
All i/o is nolonger random access and is suitable for shipping over a stream.
2005-06-10 05:10:12 +00:00
he cc17b14ba8 Adapt to compiling with -Wcast-qual and -Wshadow. 2005-06-09 09:24:45 +00:00
he bdc36c4d9b Adapt to compiling with -Wcast-qual by constifying vt220_putstring()'s
first argument.  Also gets rid of unneccessary casts to (u_char*).
2005-06-09 09:23:39 +00:00
he 78fc2f2db7 Remove an unneeded cast and add some consts. 2005-06-05 15:39:17 +00:00
he 627c254473 Work around -Wcast-qual by adding another __UNVOLATILE() when using
atomic_set_bit().
2005-06-05 15:28:27 +00:00
he 62200edc2e Fix a shadowing warning by renaming an (unused) function parameter. 2005-06-05 13:53:23 +00:00
he 82ea600ca2 Fix -Wcast-qual by sprinkling some consts, and remove named
parameters from a function prototype to avoid shadowing.
Also fix a couple of other shadowing problems.
2005-06-04 22:37:51 +00:00
he a816cb98da Fix shadowing warning. 2005-06-04 22:05:40 +00:00
he d4dda01010 Add use of an __UNVOLATILE() to appease -Wcast-qual.
May be revisited if atomic_set_bit()'s signature can change.
2005-06-04 21:45:05 +00:00
he b10da2c299 Add some const and rename a local variable to avoid shadowing. 2005-06-04 21:22:12 +00:00
he 24b7db0ccd Fix shadowing warnings by renaming local variables and by
removing parameter names in function prototype.
2005-06-04 21:19:23 +00:00
he 47e106509e Add an __UNVOLATILE() in atomic_set_bit() usage.
Revisit if we can adjust atomic_set_bit()'s signature.
2005-06-04 21:18:18 +00:00
he 848febea1d Rename an (unused) argument to avoid shadowing. 2005-06-04 20:36:15 +00:00
he aafdb08c5a Fix the various todr_gettime() and todr_settime() fallouts from
-Wcast-qual differently, by instead changing the signatore of those
"functions" to take a "volatile struct timeval*" instead of a
"struct timeval*".  Many places, these functions are called with
&time, and time is declared as volatile in <sys/kernel.h>.  This
way we can get rid of all the ugly casts which now also triggered
warnings, and caused more code to be added to work around the
problem.

Reviewed by thorpej.
2005-06-04 20:14:24 +00:00
rearnsha b7c8c07e17 Fix shadowed use of hz, and attempts to cast away volatile on time. 2005-06-04 14:00:18 +00:00
chris 5b9528a66b Fixes for -Wshadow and -Wcast-qual 2005-06-04 00:47:18 +00:00
rearnsha 80a3b6d023 Very basic support for the ARM1136.
This code takes no advantage of any 'new' features provided by
architecture 6 devices (such as physically tagged caches or new
MMU features), and basically runs the chip in a 'legacy v5' mode.
2005-06-03 15:55:55 +00:00
scw 312b7ad7d8 Appease -Wcast-qual 2005-06-03 13:01:29 +00:00
rearnsha 17ba11f3dc Add CPU_ID_ARCH_V5TEJ and CPU_ID_ARCH_V6.
Add CPU_IDs for ARM1136J-s and ARM1136J-S R1.
2005-06-03 10:51:14 +00:00
uwe b7896157ac Drop parameter names from prototype to avoid shadowing warnings. 2005-06-02 21:33:08 +00:00
uwe 8d16df2baf Rename local vars to avoid shadowing. 2005-06-02 21:32:03 +00:00
uwe e1638036b3 Drop redundant (and wrong) cast. 2005-06-02 20:27:30 +00:00
uwe fd4f28440c Catch up with constification. 2005-06-02 19:33:04 +00:00
uwe 7f3b59be3f Drop parameter names from prototypes to avoid shadowing warnings. 2005-06-02 19:32:03 +00:00
he 172a623876 Adapt to shadowing and qualifier-cast warnings. 2005-06-02 17:45:59 +00:00
rearnsha 1db1f704fc Fix off-by-one error on cache-range functions (where we use op-by-VA) which
caused us to expunge one more line than necessary.
2005-06-02 14:40:05 +00:00
scw 8f4aee207b Declare the second arg of process_write_{fp,}regs() to be const.
This permits sh5 to continue to re-use those functions in cpu_setmcontext()
with the recent change to Makefile.kern.inc (revision 1.62).
2005-06-01 13:01:35 +00:00
christos f6b4c20f18 s/GENASSYM/GENASSYM_CONF/ so we can use "GENASSYM" as the program name. 2005-05-31 04:03:08 +00:00
chs b0a8a83e7b remove vestigal {,e}intr{names,cnt} symbols now that vmstat doesn't need them. 2005-05-31 00:45:02 +00:00
he 38e7ca57fc Adapt to constification of sys/ddb/db_interface.h. 2005-05-30 17:39:17 +00:00
kleink 4a6a03b162 Include <sys/cdefs.h> for __signed; related to lib/30072. 2005-05-25 20:58:00 +00:00
christos 7cdea212c0 No 0x in front of %p... 2005-05-22 15:54:45 +00:00
rearnsha 46a854572c Add support for arm1026ej-s. 2005-05-10 13:02:55 +00:00
rearnsha 1b9dcc944a Detect arm1026ej-s. 2005-05-10 12:59:22 +00:00
rearnsha aabe52c20a Add CPU-id for arm1026ej-s. 2005-05-10 12:57:18 +00:00
jdolecek 4d515665c5 assign major for nsmb(4) 2005-05-10 00:02:35 +00:00
scw 096fb61b39 Since pmap_page_remove() is called from pmap_page_protect(), don't modify
the current pmap's pm_cstate if we have to flush the TLB, as callers of
pmap_page_protect() are not required to invoke pmap_update() afterwards.

Otherwise we can end up with a pm_cstate which is inconsistent with reality
in the TLB, which can lead to future TLB flushes being erroneously skipped.
2005-04-26 16:03:08 +00:00
lukem 3fd1802e62 Move the MI printing of `copyright' to the MD cpu_startup() code
where the printing of `version' is already performed.
This has the benefit of allowing the copyright to be available
via dmesg(8) on platforms which need the `msgbuf' to be setup
in cpu_startup() before printed output is remembered.
2005-04-25 15:02:02 +00:00
kleink b2cb7fcd8a Push back the descriptions of NaN formats, and descriptions of the
distinction between signalling NaNs and quiet NaNs back into the
machine-dependent headers; treat the implementation of __nanf in the
same spirit.

IEEE 754 leaves the distinction between signalling NaNs and quiet NANs
to the implementation, and unlike our headers used to suggest they're
not identical in the interpretation of the fraction's MSb; in due
course, make those of hppa, mips, sh3, and sh5 reflect reality.
2005-04-15 22:39:10 +00:00
scw 1cc2a2688d Add support for the DMA and AC97 controllers on PXA2x0, and enable them
on the Lubbock evaluation board.

Many thanks to Hiroyuki Bessho for testing this driver with the new
aurateconv interface, as I no longer have access to the hardware.

Contributed by Wasabi Systems, Inc.
2005-04-13 07:42:28 +00:00
yamt 221945ca1c s3c2xx0_bs_unmap: overlooked yamt-km API update.
from Havard Eidnes, tweaked by me.
2005-04-13 03:39:18 +00:00
yamt 6b2d8b66a4 merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
  save some resources like pv_entry.  also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.
2005-04-01 11:59:21 +00:00
bsh a5d9dab3e0 Switch kernels for Lubbock and TwinTail to use pmap_devmap to map
I/O registers that are used in early start-up stage.  Also stop using
special bootstrap-time-only bus_space_map function in {lubbock,g42xxeb}_machdep.c.

This makes initarm() for them a bit simpler, and gives us smaller diffs
to other evbarm platforms.
2005-03-17 16:22:56 +00:00
bsh 4c5c06097c Switch SMDK2410 and SMDK2800 kernels to use pmap_devmap_bootstrap() to map
I/O registers that are used in early start-up stage.  This replaces the
special bootstrap-time-only bus_space_map function in smdk{2410,2800}_machdep.c.

This makes SMDK{2410,2800}'s initarm() a bit simpler, and gives us smaller diffs
to other evbarm platforms.

An another good thing for SMDK2800 is that now we have all built-in peripheral
registers mapped in 2 segments.  We may expect less TLB miss on I/O access
(very slightly).
2005-03-16 05:02:12 +00:00
bsh 2145d5199e change a printf to aprint_normal. 2005-03-13 16:53:08 +00:00
matt a6db24a485 Add a dm_maxsegsz public member to bus_dmamap_t. This allows a user of the API
to select the maximum segment size for each bus_dmamap_load (up to the maxsegsz
supplied to bus_dmamap_create).  dm_maxsegsz is reset to the value supplied to
bus_dmamap_create when the dmamap is unloaded.
2005-03-09 19:04:43 +00:00
simonb 798eed2639 Watch out for those unexpected tains. 2005-02-26 12:00:52 +00:00
drochner 0717077eea The joystick driver is using mi timing code for many months.
Noone complained, so we can remove the unused md versions.
2005-02-18 15:39:17 +00:00
he 932c2bb115 In the __lint__ version of __builtin_va_arg(), apply the cast the
user specified.  Fixes build problem.
2005-02-17 08:35:24 +00:00
briggs a3b97e0765 twe doesn't get a block device. 2005-02-14 18:17:41 +00:00
rearnsha 31711b756b Permit the counter frequency to be overridden by a board configuration 2005-02-12 09:44:15 +00:00
briggs ef57c7b216 Add twe. 2005-02-12 03:24:39 +00:00
simonb 3cebd9325e White space nit- don't put a space before/after increment/decrement
operators.
2005-02-11 06:21:21 +00:00
jmc c0f021e9fe Put this back to a #define after he patched sys/exec_aout.h. Otherwise errno.h
has to be pulled in for ENOEXEC definition.
2005-02-04 22:45:05 +00:00
joff 74f7c604df Make cpu_exec_aout_makecmds() a static inline instead of just #define'ed to
ENOEXEC.  Broken on ARM build from the de-__P'ing, this is the fix.
2005-02-04 19:07:26 +00:00
joff 34e8ea9d68 Add Port-B GPIO register equates 2005-01-31 05:51:44 +00:00
joff 944e317a54 dont use TX intrs and various other performance improvements 2005-01-17 02:32:29 +00:00
kent 93293b9ec7 ansify and KNF 2005-01-15 15:19:51 +00:00
joff d3eafb7e4f Dont try freeing bootstrap pages with pool_page_free. Fixes kern/28869 2005-01-14 02:28:54 +00:00
simonb f17401da54 Add isa_irq.o and spl.o to the list of files that depend on assym.h so
that "make -j<bignum>" works without a "make depend" beforehand.
2005-01-11 08:41:07 +00:00
joff 5b4ec09e40 Add GPIO addresses 2005-01-10 23:17:53 +00:00
kent 23b5d91433 merge kent-audio1 branch, which introduces audio filter pipeline to the MI
audio framework


Summary of changes:

* struct audio_params
  - remove sw_code, factor, factor_denom, hw_sample_rate,
hw_encoding ,hw_precision, and hw_channels.  Conversion information
is conveyed by stream_filter_list_t.
  - change the type of sample_rate: u_long -> u_int
  - add `validbits,' which represents the valid data size in
precision bits.  It is required in order to distinguish 24/32bit
from 24/24bit or 32/32bit.

* audio_hw_if
 - add two parameters to set_params()
	stream_filter_list_t *pfil, stream_filter_list *rfil
   A HW driver should set filter recipes for requested formats
 - constify audio_params parameters of trigger_output() and
trigger_input().  They represent audio formats for the hardware.
 - make open() and close() optional
 - add int (AUMODE_PLAY or AUMODE_RECORD) and audio_params_t parameters
 to round_blocksize()

* sw_code is replaced with stream_filter_t.
  stream_filer_t converts audio data in an input buffer and writes
into another output buffer unlike sw_code, which converts data in
single buffer.
  converters in dev/auconv.c, dev/mulaw.c, dev/aurateconv.c,
dev/tc/bba.c, dev/ic/msm6258.c, and arch/arm/iomd/vidcaudio.c are
reimplemented as stream_filter_t

* MI audio
 - audiosetinfo() builds filter pipelines from stream_filter_list_t
filled by audio_hw_if::set_params()
 - audiosetinfo() returns with EINVAL if mmapped and set_params()
requests filters
 - audio_write(), audio_pint(), and audio_rint() invoke a filter
pipeline.
 - ioctl() for FIONREAD, AUDIO_WSEEK, AUDIO_GETIOFFS,
AUDIO_GETOOFFS, and audio_prinfo::{seek,samples} for
AUDIO_GETINFO handle values for a buffer nearest to userland.

* add `struct device *' parameter to ac97_attach()

* all of audio HW drivers follow audio_hw_if and ac97 changes
2005-01-10 22:01:36 +00:00
joff 8bf98807a3 Add tslcd device 2005-01-08 20:24:59 +00:00
skrll 6a8415b9ef KNF 2005-01-07 08:02:16 +00:00
joff cff5504bf7 Add missing newline after preposterous time warning printf 2005-01-06 16:11:54 +00:00
scw 5643984efd In iopiic_wait(), latched status bits in the ISR is cleared by writing
ones to the appropriate bits, not zeroes. In this case, just write the
value from a previous read of the register.
2005-01-06 09:34:02 +00:00
joff 9c1013d65c Avoid duplicate IRQ deliveries by processing at most 1 IRQ for each VIC read 2005-01-05 04:53:50 +00:00
chris 80ba0e9617 Remove direct references to TAILQ internal structures.
No functional change, just tidying up code.
2005-01-02 22:47:26 +00:00
joff 33f8ad5c19 set L_SA_PAGEFAULT for prefetch aborts, too. Fixes kern/28828 2005-01-02 21:12:48 +00:00
joff 05aeaeff39 Always expose struct sigcontext instead of just #ifdef COMPAT_16. 2004-12-30 20:38:37 +00:00
joff 5beb7d303e improve intr handling behavior in light of the fact that there is no transmit completion irqs on epcom 2004-12-29 06:31:32 +00:00
joff 193578fd49 Bump UPAGES back down to 8KB now that real issue was found with ep93xx intr handling 2004-12-29 04:47:44 +00:00
joff 54fe88f7fd Fix the potential recursion processing soft interrupts that was eating
all the stack.
2004-12-29 04:46:13 +00:00
joff 60b9b5a6ef do things the todr(9) way 2004-12-27 02:46:22 +00:00
joff 23fe936a38 bump default U-area size from 8KB to 64KB, 8KB is too little to even successfully boot a tsarm SBC 2004-12-23 04:39:41 +00:00
joff 781176b751 char major 107 to ep93xx processor UART driver epcom 2004-12-22 19:23:18 +00:00
joff ece4d58532 support high vectors on ARM9 2004-12-22 19:18:13 +00:00
joff 0fac6fa89b ep93xx ARM system-on-chip support 2004-12-22 19:14:11 +00:00
joff c1caa5af5e ep93xx processor system tick timer and microtime()/delay() impl 2004-12-22 19:13:32 +00:00
joff 2980391051 ep93xx ARM system-on-chip support 2004-12-22 19:12:21 +00:00
joff 81551c0b8b ep93xx processor on-chip USB OHCI driver glue 2004-12-22 19:11:49 +00:00
joff 4eeab77519 ep93xx processor on-chip 1/10/100 ethernet MAC driver 2004-12-22 19:11:10 +00:00
joff 4e771f5ddb ep93xx processor on-chip UART driver 2004-12-22 19:10:25 +00:00
joff e98c2a1dac ep93xx processor system tick timer and microtime()/delay() impl 2004-12-22 19:09:29 +00:00
joff 9241ff0062 ep93xx processor bus_space impl 2004-12-22 19:08:16 +00:00
joff 91e542a4f5 ep93xx processor VIC interrupt controller support 2004-12-22 19:07:14 +00:00
briggs b222b60d4a Start I/O range at base+0x1000 to avoid 0. 2004-12-09 04:40:20 +00:00
thorpej 961245b8bf Sync with i386 bus_dma. 2004-11-28 17:36:27 +00:00
skrll ca5b73a7e3 Fix syntax error from 1.9. I guess IPKDB isn't used very much... 2004-11-19 07:59:53 +00:00
scw 06375beb5f Fix mbr_label_locate() to return '1' on success rather than the '0'
leftover from the call to biowait(9).
2004-11-03 12:21:04 +00:00
yamt 18f717bb90 constify audio_hw_if, midi_hw_if, and radio_hw_if. 2004-10-29 12:57:15 +00:00
skrll e0658593c2 Fix the argument to KERNEL_PROC_LOCK/KERNEL_PROC_UNLOCK. 2004-10-24 06:58:14 +00:00
scw ca40f65ce1 Apply patch provided by Hiroki Nakano in PR kern/27159 to fix
compilation with DEBUG_DMA defined.
2004-10-06 08:59:40 +00:00
toshii 5b66414bae Add a socket_settype function to match with recent pcmcia code change. 2004-10-02 23:42:57 +00:00
chris 906b93ef09 Fix for cd disklabel issues on arm machines.
Because we no longer return an error message when no disklabel was found
the scsipi/cd.c code took the label we generated.  The problem is that the
readdisklabel code was clearing the partition information, which included
the default partition information setup by the cd.c code.  Previously when
no disklabel was found we returned an error, which caused the cd.c code to
generate a new default label which included an a partition.

According to the man page for readdisklabel:
Unspecified fields in lp should be set to zero

Therefore we have no reason to clear the partition info, as it's already
clear or contains useful default partition info.

This means if we don't find a label on disk, the default label is left as
is.  I would expect the driver to have setup a much more sensible default
label than we could fake at this level.

Also don't hard code the number of partitions to the maximum.  This better
matches other platforms (i386)
2004-09-26 11:57:53 +00:00