Commit Graph

2205 Commits

Author SHA1 Message Date
Axel Dörfler
52bd3fc17c Implemented forbid_page_faults() and permit_page_faults(), added a new
field to the thread structure to keep track of the current state.
forbids/permits can be nested.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 14:09:43 +00:00
Axel Dörfler
420a6221ec Moved thread_types.h to this place.
Changed fd.h inlines because team->ioctx is now team->io_context.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 14:07:35 +00:00
Axel Dörfler
6ba1dc2341 Moved it to private/kernel/, this is no public header.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 14:06:21 +00:00
Axel Dörfler
c5cf4e87b6 Removed the "path" field in the team structure. Renamed "ioctx" to "io_context".
Added a "page_faults_allowed" field in the thread structure.
Clean up.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 14:05:21 +00:00
Stefano Ceccherini
da4ffe5d0b removing the header from here
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 07:35:50 +00:00
jrand
eae4530961 Add final test for BPolygon, update Marc's BPolygon implementation a bit
and integrate it into the build.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 04:07:21 +00:00
Axel Dörfler
1a72f541b5 Added function prototypes for forbid_page_faults() and permit_page_faults().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 01:51:39 +00:00
Axel Dörfler
aeb5053982 Added empty (until TLS steps in) function stubs for:
permit_page_faults(), and forbid_page_faults().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 01:50:55 +00:00
beveloper
353b9f6bce changed map and list templates to be more useable, however, they will
be rewritten soon. Changed debugging macros and use of them, too.
Also replaced the linked lists in the BufferManager (which were complicated,
but working ok) with template based ones.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 00:59:42 +00:00
DarkWyrm
68bb610bbc More redraw fixes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 00:23:04 +00:00
DarkWyrm
63034805fd Removed a bug in Layer::Invalidate()
Fixed a bunch of redraw problems


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-03 00:21:19 +00:00
DarkWyrm
57dd5feac4 Redraw tweaks for sliding tabs
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-02 23:00:45 +00:00
DarkWyrm
a68816fa27 Fixed GetFootprint to return proper window layout
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-02 22:56:17 +00:00
beveloper
00ae25d974 removed duplicate
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-02 22:27:31 +00:00
Stefano Ceccherini
94be8cb515 BTextView implementation by Marc Flerackers (with few additions of mine). Still incomplete, it works, tough.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-02 20:14:03 +00:00
François Revol
c70ca4fc3d Added --mkindex option, outputs a list of mkindex commands needed to recreate the indices.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-30 16:51:48 +00:00
beveloper
7d9fdf5918 make sure that the stack page is in place before disabling interrupts.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-30 02:36:31 +00:00
beveloper
c0d31b20ab Fixed the detection of page faults that happen while interrupts were
disabled. If a page fault happend while a interrupt handler is executed,
or while a section of code is running with interrupts disabled (with the
exception of the initial kernel startup), the page fault handler will
now panic, to give you the chance to fix the bug.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-30 02:01:29 +00:00
shadow303
f7052c0ec3 Fix StrokeArc
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 23:16:03 +00:00
Axel Dörfler
af9ba303e4 bfs_walk() now prints the file name if it couldn't locate a file with debug
output turned on.
bfs_open_dir() now accepts again all containers, because bfs_open_index_dir()
is using it, too (too bad when you forgot about your own code).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2122 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 20:03:49 +00:00
Axel Dörfler
006928f81b Fixed the bug in the query code: B_MIME_STRING_TYPE was not correctly
translated into B_STRING_TYPE for the key comparison (it was translated
but not saved under the new type).
compareKeys() will now return -1 if it didn't know the type to compare.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 19:22:52 +00:00
Axel Dörfler
edd97f84ad Fixed return code (using errno) of readdir().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 08:47:01 +00:00
Axel Dörfler
750a82c5d3 Added new debug output macros (TRACE()).
thread_exit() for now prints a warning if it was called with interrupts
disabled.
Fixed a bug in thread_exit2() that restored the interrupts too early,
instead of simply enabling them (and restoring them later) [found by
Marcus O. great debug additions].
Fixes for the khash changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 08:42:52 +00:00
Axel Dörfler
14d9bcd728 Fixed two warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2118 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 08:39:34 +00:00
Axel Dörfler
3ae9bebe33 Fixes for the khash changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2117 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 08:38:52 +00:00
Axel Dörfler
fc88dc959f Added a missing include (and fixed a warning this way).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 08:37:19 +00:00
Axel Dörfler
8a91be0446 Removed two warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 08:36:42 +00:00
Axel Dörfler
8a531eeb0a Fixes for the changes in khash.
Now the d_reclen field of struct dirent is correctly calculated in all
file systems (read_dir() function).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 08:36:05 +00:00
Axel Dörfler
b9b1c1c4f5 Almost completely rewritten module.c. Locking now works correctly, memory
leak fixed, some other bugs fixed, removed the global queues as there weren't
needed and used at all, moved to the other hash table implementation
(because the new_hash_table stuff was buggy). Should really work okay now :-)

Added the last missing function get_next_loaded_module_name() - I am not
sure the Be version works this way, but we could easily change that after
actually having found out how that one is really working.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 08:33:57 +00:00
Axel Dörfler
d92e4b19e4 Completely removed the buggy, inflexible, and incomplete new_hash_table
implementation.
Some cleanups of the other code.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2112 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 08:30:20 +00:00
Axel Dörfler
8f6008b482 We now have our own (and cleaner) modules.h file.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2111 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 08:27:25 +00:00
Axel Dörfler
ebf5be407a Reworked and cleaned the khash; completely removed the new_hash_table
implementation that was buggy, not very flexible, and incomplete.
Changed some variable types, and function names.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 08:25:08 +00:00
Axel Dörfler
717eabde1f Added comments to the fields of the dirent structure. Most important one
is d_reclen which points out that this field is not the name length but
the one of the whole record (this is also handled incorrectly by the kernel
file systems right now).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-29 02:49:58 +00:00
beveloper
0010bfc64f the new_hash_table code has a larger number of problems
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-28 17:34:55 +00:00
Axel Dörfler
c78d05895c Removed some debug output I accidently added to the repository.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2107 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-28 15:13:08 +00:00
beveloper
428f0ce25c last cleanup of pool code before rewriting it
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2106 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-28 15:05:58 +00:00
beveloper
9c2992c73b fixed debug function
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-28 14:41:06 +00:00
beveloper
9eb6ed8082 disable interrupt check when in a panic() context
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-28 14:11:08 +00:00
beveloper
3b70f94330 added a magic value to check clobbering of the free list
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2103 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-28 14:10:20 +00:00
beveloper
60d9ed9e3b fixed the ASSERT macro, it did not even compile if DEBUG was defined
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2102 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-28 14:07:28 +00:00
beveloper
0ff867c242 if you specify DEBUG as environment variable, the DEBUG macro
will be defined with the same value.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2101 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-28 14:06:11 +00:00
Stefano Ceccherini
a42a3ab57f A skeleton for the BBufferIO class.
(Since we have a header, I think we should also have an implementation...
;-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2100 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-28 09:26:32 +00:00
beveloper
7991b1a031 added a lot of debugging functions that should help fixing bugs
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-28 02:25:04 +00:00
Axel Dörfler
363999a1eb Thanks to Bruno, we fixed a bug in Inode::Create() that happened with newly
created files that already existed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2098 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-27 22:40:04 +00:00
Stefano Ceccherini
30d9eb3baf Screen now uses the same preference file as R5's one, and it's compatible with it. Now revert works as it should. Some cleanups
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2097 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-27 15:45:32 +00:00
Stefano Ceccherini
22eb56e099 I accidentally broke the build. Fixed now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2096 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-27 14:41:16 +00:00
Stefano Ceccherini
b2c7cb6f60 In the R4's bebook, they say BScreen objects shouldn't be
constructed on the heap, and a BScreen object should be keep for
as little time as possible, because it locks the screen.
This doesn't seem to be the case in R5, but I am happier this way...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2095 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-27 11:57:39 +00:00
Michael Pfeiffer
87f0c75967 Clean up.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2094 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-26 23:32:04 +00:00
Michael Pfeiffer
af09bc0a28 Implemented job list handling.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2093 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-26 23:21:28 +00:00
Michael Pfeiffer
367265f7f0 Added shared source code for print kit.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2092 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-26 23:12:19 +00:00