Commit Graph

1599 Commits

Author SHA1 Message Date
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