chris
c75aeaa653
Use __insn_barrier() to prevent the compiler reordering splx/splraise
...
relative to the code they're supposed to protect.
2006-04-16 23:31:54 +00:00
jmmv
aec18036fd
Remove the getwschar and putwschar accessops from wsdisplay drivers as
...
requested by uwe@. These were wrong because they were receiving an
emulcookie yet they were accessops (thus having to receive an accesscookie).
Instead, just handle the WSDISPLAYIO_{GET,PUT}WSCHAR ioctls from the
driver's ioctl accessop.
As this reduces the amount of code needed to handle these operations to
two small functions in each driver, remove the WSDISPLAY_CHARFUNCS kernel
option.
Reviewed by, at least, uwe@ and macallan@. No objections in tech-kern@.
2006-04-15 17:48:23 +00:00
matt
d4449c8a4e
switch from MALLOC to malloc
2006-04-15 17:47:31 +00:00
jmmv
3947d9184e
Add missing parameter to s3c24x0_lcd_{ioctl,mmap} functions (after the
...
change in wscons that modified their signature) to let this build again.
Pointed out by he@.
2006-04-15 17:00:11 +00:00
nonaka
370cb08389
Added FARADAY FA526 ID.
2006-04-14 09:28:17 +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
simonb
5124fb547a
Whitespace nit.
2006-04-12 12:42:27 +00:00
peter
8c470c63e5
Change disclaimer: "THE NETBSD FOUNDATION", not "REGENTS".
2006-04-11 15:24:24 +00:00
peter
4ece0d684f
Add missing disclaimer.
2006-04-11 15:21:26 +00:00
peter
a62a67d37c
Implement pmap_devmap on hpcarm to map I/O registers that are used
...
in early start-up stage. Change the virtual address for UART #3 to
the physical address in the configuration files.
While here, implement the sa11x0_bs_unmap function.
Reviewed by Toru Nishimura (on port-arm).
2006-04-11 15:08:10 +00:00
simonb
a65c1d2e41
Fix a couple of typos in some comments.
2006-04-10 04:13:58 +00:00
simonb
a8b3022a42
Tab Police.
2006-04-10 03:36:03 +00:00
simonb
4338faf3d6
Unwrap a not-too-long-line.
2006-04-10 03:07:40 +00:00
uwe
54826c03de
Define ddb_regs in db_interface.c.
...
Change its definion in db_machdep.h into a declaration.
2006-04-05 00:38:51 +00:00
uwe
c29aeed86e
Don't define, just declare want_resched here.
2006-04-05 00:15:25 +00:00
cherry
d600e81a73
closes: PR kern/32359
...
modifies machine/db_machdep.h: BKPT_SET(inst) to BKPT_SET(inst, addr) for all archs ie; passess the
breakpoint address as well.
Patch from cherry@mahiti.org
2006-04-01 15:44:58 +00:00
thorpej
2be6494fc9
Use device_cfdata().
2006-03-29 04:16:44 +00:00
peter
1e8f0f2099
Report the SA1100 control register state.
...
From Arnaud Lacombe on port-hpcarm.
2006-03-26 14:34:30 +00:00
thorpej
bf53a8ce6f
Use device_unit().
2006-03-26 04:39:40 +00:00
thorpej
5a75140fb8
Use device_unit() (and remove a couple of places where it is not
...
needed).
2006-03-26 04:38:52 +00:00
drochner
751e656b13
adjust a diagnostic printf
2006-03-16 18:22:16 +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
drochner
b68c2aadca
use km_alloc to get wired kernel memory for kernel stacks
...
of idle processes for secondary CPUs
(affects the MULTIPROCESSOR case only - does this exist?)
(untested)
2006-03-15 18:31:11 +00:00
lukem
a1f606d3fd
Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
...
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
he
927b30ab63
Remove yet another instance of the macro triplet SET/CLR/ISSET, now
...
found in <sys/types.h>.
2006-03-08 12:10:58 +00:00
he
5bc221cbe3
Remove yet another instance of the macro triplet SET/CLR/ISSET, now
...
found in <sys/types.h>.
2006-03-08 10:48:40 +00:00
thorpej
61dd49d3bc
Syscall debug tracing is handled by trace_enter() / trace_exit(). Change
...
trace_is_enabled() to return TRUE if SYSCALL_DEBUG is defined, and g/c
all of the SYSCALL_DEBUG handling from individual system call dispatch
routines.
2006-03-07 07:21:50 +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
rjs
71e3b5b4c8
Remove SET/CLR/ISSET macros.
2006-03-06 20:21:25 +00:00
christos
8f1c5de2eb
PR/33014: arnaud degroote: remove SET/ISSET/CLR defines
2006-03-06 19:57:03 +00:00
he
5fa2f4d231
Delete the local definitions of CLR, SET and ISSET, since they are
...
now in <sys/types.h>.
2006-03-06 07:54:12 +00:00
christos
beea4fc3fa
Add a proc_is_traced_p() macro and use it, instead of copying the same code
...
in many places. Idea from thorpej.
2006-03-05 19:08:38 +00:00
peter
3a6842166a
Dump IRQ handlers only when INTR_DEBUG is defined, it's to verbose for DEBUG.
2006-03-05 11:32:01 +00:00
peter
afc0947d98
Prefix dbg_str with "L".
2006-03-05 11:30:58 +00:00
christos
a4495f4cec
implement PT_SYSCALL
2006-03-05 07:21:37 +00:00
peter
045d542877
s/u_intN_t/uintN_t/
2006-03-04 17:24:13 +00:00
peter
db5f931afb
Use ANSI function decls.
2006-03-04 17:22:06 +00:00
peter
d73e908169
Put a printf into OST_DEBUG.
2006-03-04 16:54:04 +00:00
peter
ffc68bd503
Match all Jornada 7xx models.
2006-03-04 13:54:08 +00:00
scw
c95cd91549
Allow the kernel config file to override the default timer frequency
...
using "options IXP425_CLOCK_FREQ".
2006-03-04 11:26:12 +00:00
yamt
ec5a93183a
merge yamt-uio_vmspace branch.
...
- use vmspace rather than proc or lwp where appropriate.
the latter is more natural to specify an address space.
(and less likely to be abused for random purposes.)
- fix a swdmover race.
2006-03-01 12:38:10 +00:00
scw
c40da0c0a2
Include "device-major sysmon" when sysmon_power is defined.
2006-02-28 20:36:51 +00:00
wiz
5d1e8b2745
Fix some typos.
2006-02-25 02:28:55 +00:00
thorpej
458b3e43f7
Use device_parent().
2006-02-23 05:37:46 +00:00
thorpej
3ddf26777f
Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
...
directly.
2006-02-20 16:50:36 +00:00
thorpej
680d9eea68
- Don't expose dev_propdb directly -- provide devprop_*() wrappers instead.
...
- Rework the ARMADILLO / epe device properties interaction so that it actually
associates the MAC address property with the epe device instance.
2006-02-18 05:04:11 +00:00
hamajima
cff2b34165
add SYSCON DeviceCfg register.
2006-02-13 12:13:20 +00:00
dsl
67d47e0290
Change sys/arch/xxx/include/bswap.h to #include machine/byte_swap.h then
...
sys/bswap.h in order to pick up the MD inline routines and the constant
folding definitions in the right order.
Code can include either sys/bswap.h or machine/bswap.h with the same effect.
2006-01-31 07:49:18 +00:00
dsl
c88ae1f9ee
Move all the stuff that detects bswapxx(constant) into the MI sys/bswap.h
...
Put the minimum to define the required inline assembler or C into the MD files.
NB: there may be some fallout from this!
2006-01-30 22:46:35 +00:00
dsl
2723c11bd9
Move the definitions of ntohl() and friends into sys/endian.h where they
...
are defined in terms of bswap32() and bswap16().
This makes the definition be in the same place for all systems regardless
of creed^Wendianness.
2006-01-30 21:52:38 +00:00
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