bjh21
9dc368e353
Clean up read_region_2 code to use fast version under more circumstances, and
...
to always use it aligned on a 4-word boundary. The setup code feels like
it could be sleeker, but I can't currently see how.
2006-10-03 22:27:02 +00:00
chs
e8295642bd
remove MALLOC_NOINLINE, it doesn't do anything anymore.
2006-10-02 03:28:29 +00:00
bjh21
6a2268f94f
Faster bus_space_read_region_2(), using LDM and STM to process 16 bytes at a
...
time where possible. This almost doubles the speed of reading through the
sec(4) in my A540.
2006-10-01 22:47:18 +00:00
bjh21
5375dc7f10
New driver, sec(4), for the Acorn SCSI Expansion Card. Unlike asc(4), this
...
driver uses the board's DMA system, uses the machine-independent WD33C93
driver, works on NetBSD/acorn26, and doesn't share a name with six other
machine-dependent SCSI drivers. Not tested on acorn32, but it seems to
work tolerably well on my A540.
2006-10-01 12:39:35 +00:00
bjh21
e9030bd381
Move over to using the standard ARM bus_space implementation on acorn26.
...
This is more flexible than the old acorn26 bus_space, which means that single
read/write operations are slower, but multi and region operations have the
potential to be faster, and particularly insane podules might be supportable.
In theory the acorn32 mainbus and podulebus code ought to be shareable, but
acorn26 needs the extra overhead of saving R14_svc on some operations so
I've made my own version for now. Also the acorn32 bus_spaces are a mess.
2006-09-30 16:30:10 +00:00
bjh21
213f273e6a
Calls to bus_space_barrier() on acorn26 were very few and using constants that
...
were two generations obsolete. Since they do nothing anyway, remove them
rather than trying to update them.
2006-09-30 15:14:21 +00:00
bjh21
3143e7d6c3
ANSIfy, un-__P, light KNF.
2006-09-28 23:54:14 +00:00
bjh21
557f409231
No need to do silly asm() dances to get R14_svc saved now -- the compiler
...
does it for us everywhere.
2006-09-28 23:25:01 +00:00
bjh21
8e80f0df78
Don't specify -fomit-frame-pointer -mno-apcs-frame, since that breaks kernel
...
page faults.
2006-09-28 23:23:22 +00:00
bjh21
87e6985bed
Add -mapcs-frame -fno-omit-frame-pointer to acorn26 kernel builds. This
...
is necessary to ensure that GCC saves R14_svc on entry to every function,
and thus that page faults within the kernel are safe (since they corrupt
R14_svc). I think this used to be the default, but it's not any more.
2006-09-28 22:10:53 +00:00
bjh21
826ff5f060
Make db_validate_address() work, even when called from within an interrupt
...
handler. This should make debugging prefetch aborts slightly simpler.
2006-09-27 21:21:09 +00:00
bjh21
5858e7aa70
Arrange that catching an unexpected data abort in the kernel causes a trap
...
into DDB where possible, even if it happens in an interrupt handler.
2006-09-24 23:38:59 +00:00
bjh21
83d7ac871e
Turn address exceptions into SIGSEGV rather than SIGBUS, since they're really
...
just attempts to access unmapped (and incidentally unmappable) memory,
rather than anything special.
2006-09-24 21:42:06 +00:00
bjh21
7841bf68c0
uvm_fault has been sensible about when to return ENOMEM for some time now,
...
so it's reasonable for us to kill processes when we get it returned,
rather than sleeping. Do that.
2006-09-24 20:54:14 +00:00
bjh21
51b05a4131
Use MI inittodr() and friends.
2006-09-03 11:51:29 +00:00
bjh21
1323fd42da
This file isn't used any more.
2006-08-31 23:16:28 +00:00
bjh21
44ef93a9be
Be more careful with registers in LDR[T] so that GAS doesn't warn us about
...
constructs that aren't allowed in ARMv3.
2006-08-28 15:15:50 +00:00
bjh21
d5930df82e
unifdef -U __APCS_26__: we've been using APCS-32 for years.
2006-08-28 14:31:18 +00:00
bjh21
3612709d56
unifdef __APCS26__: we've been using APCS-32 for years.
2006-08-28 14:26:34 +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
tsutsui
6ff205ce76
Remove obsolete #options VERIFIED_EXEC, found by grep(1).
2006-08-26 07:59:21 +00:00
christos
b300b74469
Disable SYSTRACE by default on all kernels (discussed with core)
2006-08-12 15:29:52 +00:00
drochner
84f50d1b92
don't install <machine/db_machdep.h>, this is kernel only
2006-07-26 19:54:56 +00:00
bjh21
cf7ce97e4b
Silly error: xos_cli() should call XOS_CLI, not OS_CLI.
2006-07-20 23:35:20 +00:00
bjh21
5bdcc8987d
-mshort-load-words has been removed in GCC 4. It was only an optimisation,
...
so just stop using it.
2006-07-20 10:53:12 +00:00
ad
2b79369c7e
- Hold a reference to the process credentials in each struct lwp.
...
- Update the reference on syscall and user trap if p_cred has changed.
- Collect accounting flags in the LWP, and collate on LWP exit.
2006-07-19 21:11:37 +00:00
liamjfoy
aeee5deab9
Add CARP to GENERIC kernel configs. CARP is not enabled by default.
...
ok: christos
2006-06-28 15:19:27 +00:00
drochner
a3464e1d27
use the "i2cbus" interface attribute rather than putting a string name
...
into the i2cbus attach args
2006-06-26 18:21:38 +00:00
skrll
a9f4c28a3d
Fix a bunch of cast lvalues.
2006-05-10 06:24:02 +00:00
jmmv
7a51d4dddc
Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
...
to the screen on which they are being called. The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place. There are no functional changes
yet.
Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
2006-04-12 19:38:22 +00:00
he
7d6535cfe2
Since this port has its own db_interface.c, we need to declare ddb_regs
...
here as well, after it moved out of db_machdep.h.
2006-04-06 17:29:49 +00:00
thorpej
2be6494fc9
Use device_cfdata().
2006-03-29 04:16:44 +00:00
pavel
dc1372c547
Add stf to all kernel configs which have INET6 and gif, except the INSTALL
...
ones and those for specific machines of developers. PR 32304.
OK'ed by rpaulo.
N.B. stf is a cloning device, so it still must be enabled by
"ifconfig stf0 create".
2006-03-28 20:58:39 +00:00
he
450ce68a74
Transform to new signature for uvm_fault() by dropping the third arg.
...
Discussed with drochner.
2006-03-16 15:10:06 +00:00
thorpej
be8b235384
Clean up fallout proc_is_traced_p() change:
...
- proc_is_traced_p() -> trace_is_enabled(), to match trace_enter() and
trace_exit().
- trace_is_enabled() becomes a real function.
- Remove unnecessary include files from various files that used to care
about KTRACE and SYSTRACE, but do no more.
2006-03-07 03:32:04 +00:00
thorpej
458b3e43f7
Use device_parent().
2006-02-23 05:37:46 +00:00
perry
fbae48b901
Change "inline" back to "__inline" in .h files -- C99 is still too
...
new, and some apps compile things in C89 mode. C89 keywords stay.
As per core@.
2006-02-16 20:17:12 +00:00
bjh21
c92781b8e2
Don't access an LWP's struct lwp after we've called lwp_exit2() on it.
...
I'm not sure the new code is right, but it works, which is an improvement.
2006-02-14 16:41:21 +00:00
bjh21
24b46da494
Make Econet code compile again.
2006-02-12 10:32:46 +00:00
bjh21
22ce92c5a5
Make this compile again (change of signature for arcppopen() and arcppclose()).
2006-02-12 10:30:30 +00:00
cube
6ff13154dd
Remove 'count' argument for pseudo-devices that ignore it
...
(vnd, bpfilter, ppp, gif, gre, tun, sl, strip, faith, stf).
2006-02-05 05:01:48 +00:00
rpaulo
21c1d240bc
bpfilter doesn't accept count anymore.
2006-02-04 02:31:12 +00:00
reinoud
a92fdbbc53
Add commented out UDF file-system entry in all GENERIC configurations.
2006-02-02 21:32:08 +00:00
dsl
6f0f9f8763
Make almost everything #include <sys/bswap.h> instead of <machine/bswap.h>
...
The bswap.h and endian.h files are all rather incestuous, but I want to
get the constant folding stuff into one place - sys/bswap.h
2006-01-29 21:42:40 +00:00
christos
606bb2caed
free -> dealloc
...
unsigned -> size_t for alloc/dealloc
2006-01-25 18:28:25 +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
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
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
elad
4591e5acfd
Add (commented out) Veriexec options and pseudo-device to GENERIC kernels,
...
and remove the i386 GENERIC_VERIEXEC config.
2005-12-09 23:34:01 +00:00