Commit Graph

1676 Commits

Author SHA1 Message Date
chris 35c6b9f8a4 Simplify delay loop by moving the maths to before the loop.
There is minimal risk of overflow unless something delays >134s.
2006-04-17 00:03:17 +00:00
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