Commit Graph

199 Commits

Author SHA1 Message Date
skrll
693a79edd7 Add ldcw as a store instruction. From OpenBSD. 2007-04-07 08:38:28 +00:00
skrll
6e5bbbab10 de-__P() 2007-04-07 08:37:49 +00:00
skrll
d8db1d193c de-__P() and whitespace. 2007-04-07 08:36:49 +00:00
skrll
fe255bdc71 Whitespace. 2007-04-07 08:35:52 +00:00
skrll
101cbda361 Typo. From OpenBSD. 2007-04-07 08:35:13 +00:00
skrll
3581d4c55c Improve EXIT and add a BSS macro. From OpenBSD.
Implement WARN_REFERENCES.
2007-04-07 08:34:17 +00:00
skrll
108c9e1aa3 Move a comment and correct a typo. 2007-03-16 08:02:49 +00:00
he
820deae228 Change a cast from void* to char* due to the need to do pointer arithmetic. 2007-03-07 09:23:32 +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
skrll
bb026cb226 Remove hppa_{round,trunc}_page. 2007-03-03 14:37:54 +00:00
skrll
830baead4e Actually remove spinlock.h 2007-03-03 10:52:45 +00:00
skrll
6fe0d31d3a Update for change in db_stack_trace_print prototype 2007-02-22 22:17:02 +00:00
thorpej
f5d6b882ad TRUE -> true, FALSE -> false 2007-02-22 05:46:28 +00:00
thorpej
dd962f8680 Pick up some additional files that were missed before due to conflicts
with newlock2 merge:

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 23:48:10 +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
skrll
85f62f2ac1 - Add /a modifier to trace that allows a specific LWP to be selected.
- When doing trace/t, always note which pid/lid combination is being traced

XXX This probably shouldn't be in this file.
2007-02-21 00:23:59 +00:00
skrll
9a649e55a4 Check the right register for the mtx_waiters value. 2007-02-20 00:28:53 +00:00
skrll
bb27762b37 Call mutex_wakeup if there are waiters instead of mutex_vector_exit. 2007-02-19 18:09:55 +00:00
skrll
9d95242f6c Remove some redundant '.import's 2007-02-19 17:06:32 +00:00
skrll
197cd56e11 Remove the requirement for $trap_tmp_save to be 2048 aligned. It's not
it for the sake of 4 instructions.
2007-02-19 13:23:11 +00:00
skrll
654d0ffbd9 Whitespace. 2007-02-19 13:19:20 +00:00
skrll
bf42c1ff86 s/SPACE_CURPROC/SPACE_CURLWP/ to reflect what it actually does. 2007-02-19 12:26:39 +00:00
ad
def3fb26c7 Add MUTEX_CLEAR_WAITERS(). 2007-02-15 22:52:42 +00:00
skrll
1472d08a88 Fix a label. 2007-02-10 13:21:52 +00:00
skrll
de10cef758 Destroy a mutex correctly. That is, overright the owner and don't set
mtx_waiters.
2007-02-10 12:15:24 +00:00
ad
b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
skrll
a815b70d5c G/C hp{pa,700}/spinlock.h 2007-02-06 21:59:24 +00:00
christos
5058960df7 make this gdtoa friendly. 2007-02-04 00:39:19 +00:00
skrll
03c2b891e6 Update uvm_grow to support stacks that grow upwards.
Use on hppa and fix a bug in the hppa trap handler.
2006-12-18 09:39:14 +00:00
skrll
6cff9cd2f4 Initialise the result rather than returning garbage. 2006-11-27 07:22:07 +00:00
wiz
6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
skrll
140ca90ce5 pmap_kenter_pa the kernel and it's data structures including the kernel
stack.

Fixes the "booting from disk memory corruption bug" which was a result
of pmap_extract silently failing against a scsipi_xfer data area allocat-
ed on kernel stack in _bus_dmamap_load_buffer
2006-10-30 16:04:10 +00:00
skrll
4663c12d85 Add some debug code. 2006-10-30 08:41:27 +00:00
skrll
c6dcde599c Whitespace fixes. 2006-10-30 08:39:04 +00:00
skrll
92df06c2d1 G/C pages_per_vm_page 2006-10-30 08:30:01 +00:00
skrll
2ec9405f64 Fix the code to deal with new gcc propagating const-ness from structs to
members. All fixups of the mcontext are done in the trapframe.
2006-10-25 11:06:02 +00:00
skrll
21f8bf16fc KNF and comment update. 2006-10-23 14:15:09 +00:00
he
e1fda29be8 Convert to using hexadecimal literals for the type limits.
Also, add a trailing 'U' to the unsigned limits.
2006-10-19 20:20:43 +00:00
skrll
23faec7f85 Reformat a comment and fix a typo. 2006-10-14 09:09:34 +00:00
skrll
d39c8c0379 Typo in comment. 2006-10-14 09:07:01 +00:00
skrll
8e824ab13e Make this compile without KTRACE.
From Sergey Svishchev in a private email.
2006-10-09 21:32:29 +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
skrll
c6b33d9f1f Create real lock primatives using as little asm as possible.
It's not used anywhere, but it's better committed than on any of my HDs.
2006-09-22 08:31:34 +00:00
skrll
f576f19cbb Fix comment. %t1 is the syscall # not curlwp. 2006-09-15 06:09:36 +00:00
skrll
679c7b5e46 Don't lose a page at the end of the 3 segments we uvm_page_physload.
(end/avail_end are excluive page numbers - as dicussed on tech-kern)
2006-09-03 13:40:08 +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
skrll
29c50502a7 Pull across OpenBSD cpufunc.h:1.27 (ignore the typo)
revision 1.27
date: 2005/04/07 00:19:28;  author: mickey;  state: Exp;  lines: +3 -3
put a memmory barrier onto the sync_caches()
2006-08-27 08:42:50 +00:00
skrll
edb23da2a3 Pull across the stack trace stuff from OpenBSD. 2006-08-26 06:27:40 +00:00
skrll
5a545933ba Correct assembler syntax to load the correct (left) bits of a constant.
Inspired by OpenBSD.
2006-08-26 06:00:07 +00:00
skrll
4f9577ff1d Fix a spello in a debug message. 2006-08-25 07:21:07 +00:00