drochner
dce09ea075
clean up some definitions around rune_t which are not needed anymore
2007-09-03 20:31:56 +00:00
drochner
0e0fe2c353
Fix definitions of UCHAR_MAX/USHRT_MAX and related
...
types. C99 requires that these definitions promote to (signed/unsigned)
integer the same way as the types the definition is for. And since
unsigned char/short fit into an "int" on all our archs and thus promote
to signed int, the definitions must not be unsigned.
Fixes PR lib/31306 by Neil Booth.
2007-08-31 16:24:21 +00:00
macallan
c1d4259805
turn pmap_phys_address() into a macro since all the function ever did was
...
to cast its parameter to paddr_t and return it
approved by mrg
2007-07-16 16:36:06 +00:00
ad
63811f5275
Generic soft interrupts are mandatory.
2007-07-14 21:48:17 +00:00
mrg
565d4d6ca6
disable mutex_spin_enter() & mutex_spin_exit() as they are currently
...
broken and cause MULTIPROCESSOR kernels to hang while entering
userland boot up.
2007-05-28 22:56:19 +00:00
yamt
f03010953f
merge yamt-idlelwp branch. asked by core@. some ports still needs work.
...
from doc/BRANCHES:
idle lwp, and some changes depending on it.
1. separate context switching and thread scheduling.
(cf. gmcgarry_ctxsw)
2. implement idle lwp.
3. clean up related MD/MI interfaces.
4. make scheduler(s) modular.
2007-05-17 14:51:11 +00:00
mrg
a4960a24c9
fix fall out from caddr_t changes.
2007-03-04 22:12:43 +00:00
christos
53524e44ef
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
2007-03-04 05:59:00 +00:00
thorpej
712239e366
Replace the Mach-derived boolean_t type with the C99 bool type. A
...
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00
mrg
4410329b87
add a pair of new bus_dma(9) functions:
...
int _bus_dmatag_subregion(bus_dma_tag_t tag,
bus_addr_t min_addr,
bus_addr_t max_addr,
bus_dma_tag_t *newtag,
int flags)
void _bus_dmatag_destroy(bus_dma_tag_t tag)
that allow a (normally broken/limited) device to restrict the bus address
range it can talk to. this is used by bce(4) to limit DMA addresses to
1GB range, the maximum the chip can address.
all this is from Yorick Hardy <yhardy@uj.ac.za> with input from several
people on tech-kern.
XXX: bus_dma(9) needs an update still.
2007-02-21 20:41:23 +00:00
mrg
a9ddc54905
remove a redundant variable from spl0().
2007-02-19 02:57:40 +00:00
ad
790d873430
Put a sock in it..
2007-02-17 19:30:33 +00:00
ad
431bcb0874
Pacify lint.
2007-02-16 15:42:02 +00:00
ad
3363855a4a
Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
...
via a soft interrupt. In the near future, softclock will be run from process
context.
2007-02-16 02:53:43 +00:00
ad
def3fb26c7
Add MUTEX_CLEAR_WAITERS().
2007-02-15 22:52:42 +00:00
ad
58c53b4195
Pacify lint/gcc.
2007-02-15 15:27:53 +00:00
ad
6511d52f7d
inline -> __inline
2007-02-11 15:41:31 +00:00
ad
b07ec3fc38
Merge newlock2 to head.
2007-02-09 21:55:00 +00:00
christos
deecbf494d
remove dup definition
2007-02-04 00:39:43 +00:00
christos
20b56f03ed
make extended precision gdtoa friendly.
2007-02-03 16:44:45 +00:00
ad
e96fca7884
Define ipl_t as uint8_t so that it can be packed into a word with a lock
...
byte. Ok yamt@.
2006-12-26 15:22:44 +00:00
yamt
8bf7662829
merge yamt-splraiseipl branch.
...
- finish implementing splraiseipl (and makeiplcookie).
http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
- complete workqueue(9) and fix its ipl problem, which is reported
to cause audio skipping.
- fix netbt (at least compilation problems) for some ports.
- fix PR/33218.
2006-12-21 15:55:21 +00:00
tnozaki
44eb8f042e
fix gcc -Werror -Wmissing-braces problem
...
mbstate_t(this is opaque object)'s initializer should be ``{ 0 }'',
so changed 1st field of union from character array to integer.
2006-10-04 13:51:59 +00:00
gdamore
b46bdc5e2b
Convert both sparc and sparc64 to MI todr.
2006-09-03 22:27:45 +00:00
bjh21
e10108c7f2
Nothing in the kernel now tests __HAVE_NWSCONS, so stop defining it everywhere.
2006-09-03 13:51:23 +00:00
yamt
e527ebac6f
- remove unused bdbtofsb.
...
- move the following macros from MD headers to sys/param.h.
ctod
dtoc
ctob
btoc
dbtob
btodb
2006-08-28 13:43:35 +00:00
martin
378dec2fe2
Align the size and alignment of label_t (kernel jmp_buf equivalent)
...
with the use in setjmp/longjmp. Duh!
This makes DDB work again on sparc kernels compiled with gcc4.
2006-06-28 20:55:45 +00:00
kardel
09b51ec920
convert to timecounters (from branch simonb-timecounters)
2006-06-07 22:37:14 +00:00
yamt
1468e19297
implement splraiseipl() for sparc.
...
reviewed by Martin Husemann.
while i'm here, use macros for some MD constants (eg. IPL_ZS)
as suggested by Havard Eidnes.
2006-05-04 12:21:18 +00:00
cherry
93447d7ac4
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:45:00 +00:00
cube
473e9e89bf
Add the netbsd32 MD bits for sparc64 and amd64 to support SA.
...
Many thanks to all who helped for that little project, notably Martin
Husemann for teaching me a bit about the very special sparc64 world.
2006-03-29 23:07:49 +00:00
uwe
8ea3cb44c6
De-__P.
2006-03-04 03:39:02 +00:00
uwe
6e4f5eb548
s/u_intN_t/uintN_t/
2006-03-04 02:56:21 +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
chs
24b808d88e
reduce MAXSSIZ to 32 MB, like most other ports. fixes PR 30918.
2006-02-07 16:55:31 +00:00
christos
606bb2caed
free -> dealloc
...
unsigned -> size_t for alloc/dealloc
2006-01-25 18:28:25 +00:00
christos
3ffa241fcd
Add a STRONG_ALIAS macro
2006-01-20 22:02:40 +00:00
chs
67a406aaae
increase NKMEMPAGES_MAX_DEFAULT to 32 MB. this is needed on sun4m machines
...
with 512 MB of RAM, and it doesn't seem to cause any problems on sun4c.
2006-01-13 15:45:56 +00:00
perry
2d542ba1f8
inline -> __inline
2005-12-28 19:09:29 +00:00
perry
50a256a3a0
__asm__ -> __asm
...
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
2005-12-24 23:23:59 +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
uwe
bf5bead380
We need to init p_md.md_flags on fork, so implement cpu_proc_fork().
2005-10-27 00:36:16 +00:00
uwe
ab5d782da8
Move md_flags back to mdproc. MDP_FIXALIGN, the only flag we have, is
...
per-process, not per-lwp. We don't have per-lwp flags currently.
2005-10-26 23:21:47 +00:00
uwe
060dedbbf7
Comment change: Clarify meaning of some user traps.
2005-10-26 22:37:18 +00:00
uwe
29511150ab
Add missing extern to make the definition of softnet_cookie into a declaration.
2005-10-26 21:11:05 +00:00
uwe
7781633361
Cosmetic. Kill __P. Remove few remaining paramter names in
...
prototypes. CONSTCOND in while (0). Move wcopy/wzero declarations
with the rest of machdep.c. Add some blank lines for readability.
2005-10-26 20:52:33 +00:00
uwe
cfe232b1e4
G/c msiiep_swap_endian, it's no longer used now that we run without
...
byteswapping in the PCIC.
2005-09-25 21:57:02 +00:00
uwe
531fd682f7
Add definitions for microSPARC-IIep memory fault registers.
2005-09-10 01:23:19 +00:00
christos
3e061b04ef
new file
2005-07-11 13:05:33 +00:00