Commit Graph

27196 Commits

Author SHA1 Message Date
Ingo Weinhold
10b4b5d175 * Added an "add-on" interface for the runtime loader. Pre-loaded images
can export a structure containing callback hooks invoked by the
  runtime loader when certain image events occur (image loaded,
  relocated, initialized, etc.).
* Also added a mechanism to patch image symbols. For an image callback
  functions can be installed that patch symbols exported or imported by
  the image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28475 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 13:27:14 +00:00
Ingo Weinhold
56eb43e3ca * Made kernel_cpp.h usable in the runtime loader.
* Added new(mynothrow) operators which avoid clashes when also linking
  against libgcc.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28474 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 13:15:12 +00:00
Axel Dörfler
bfc607d44f * "devfs_node" now also dumps the partition info, if any.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-03 11:02:02 +00:00
François Revol
ac3a539c97 Fix comment
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 22:00:43 +00:00
Stephan Aßmus
c470027d27 Tracked down a busy loop that I could reproduce pretty reliably with
tool tips in WonderBrush. The reason was that the text rect is getting
smaller and smaller each time the tool tip is shown (even though there
is only one word), and the line break moves one char towards the beginning
each time. After four times, the busy loop would kick in reliably. I cannot
really say that I understand the code, though. But that's the spot anyways.
Stefano, could you have a look?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28471 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 21:40:44 +00:00
Stephan Aßmus
f9f1555066 These values feel slightly more like running without Synaptics driver.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28470 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 20:08:27 +00:00
Stephan Aßmus
8f924a8469 Forgot to disable debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 19:46:54 +00:00
Stephan Aßmus
eab5a0f231 Experimented with the way the absolute touchpad coordinates are translated into
relative mouse movements. Removed the "history" and replaced it with a method
to accumulate the deltas. Very small deltas are somewhat suppressed, but still
accumulate. Overall, this improves the touchpad sensitivity for small movements
without introducing unwanted jitter. This also keeps the direction of slightly
"non-straight" movements better. I also changed the scale somewhat so that
the acceleration does not feel too little anymore.

These are the remaining problems I have:
* Tap-clicks are sometimes not recognized
* releasing the finger from the pad (which is pressure sensitive) sometimes
  still injects unwanted mouse movement, which may be possible to be supressed
  when looking at the pressure change and recognizing the release.
* scrolling has changed a bit due to my changes and feels a bit too sensitive
  now

Please check it out if you like (ps2_dev.c:105) and tell me what you think.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28468 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 19:43:08 +00:00
Rene Gollent
9db8c2f7bd Add BeBook to optional packages for pre-alpha image.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28467 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 18:19:27 +00:00
Jérôme Duval
554ff457ee * imported m_collapse()
* added an expected header dependency in rman.h 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28466 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 17:45:22 +00:00
Rudolf Cornelissen
9fb04b9066 added a few registerdefines for codec, added unmute mixer output. ES1370, SB PCI128 now produces sound on haiku over here.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28465 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 16:29:20 +00:00
Stephan Aßmus
bff51d943a Recursive scanning of already existing touchpad devices in the devfs never
worked, because the root scanning directory was declared without "/dev/".
This makes restarting the input_server work with the touchpad driver.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28464 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 13:15:47 +00:00
Stephan Aßmus
855012f2bd * Followed a suggestion made by Axel and removed the custom logfile
solution and replaced it by dumping output to the syslog. (Also
  disabled debug output by default.)
* Fixed wrong header guard.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28463 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 12:55:18 +00:00
Jérôme Duval
1f492539e7 implemented PartitionColumn::GetPreferredWidth()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28462 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 12:34:31 +00:00
Jérôme Duval
13cb35848b takes into account the column title width
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28461 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 12:33:32 +00:00
Stephan Aßmus
60266d74d9 * ps2_synaptics.c - small cleanup
* ps2_dev.c - accidentally turned Synaptics support back on with my last commit. Sorry.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28460 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 11:47:51 +00:00
Stephan Aßmus
03973d27eb Automatic white space cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 11:30:41 +00:00
Stephan Aßmus
b5c3e3f430 Patch by Clemens Zeidler: I (stippi) broke the detection for
standard versus extended PS/2 mice by simplifying the naming
of the devices but forgetting to adapt this part of the code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28458 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 10:49:23 +00:00
Stephan Aßmus
2c4a095da8 Patch by Clemens Zeidler: Move debugging output after the check for fConnected
in UpdateSettings() to avoid a crash when there is no TouchPad at all.
Changes by myself: Adapted coding style and added a comment to ConnectToTouchPad()
on why the loop is not exited as soon as the device is found.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 10:46:50 +00:00
Ingo Weinhold
19d40f9eb7 Moved the rld_export structure from <user_runtime.h> to
<runtime_loader.h>, since it isn't a kernel <-> userland interface.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 03:43:01 +00:00
Ingo Weinhold
ca618b2259 * Changed the way symbols are resolved. For each root image (program,
add-on) we create a breadth-first sorted image list and use that to
  search for symbols.
* Added support for preloading libraries. The environment variable
  LD_PRELOAD can contain a whitespace-separated list of shared objects
  that will be loaded before the program. This allows to replace
  symbols without changing the executable or libraries.
* Resolved TODO in load_program() regarding the order of remapping the
  images and initializing the dependencies (problem fixed in r28453).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28455 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 03:16:30 +00:00
Ingo Weinhold
f68fa9d364 Implemented realloc().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 02:59:15 +00:00
Ingo Weinhold
2ef4a8b524 Moved the variable cv_factor from the text to the bss section.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 02:58:38 +00:00
David McPaul
79216f18c9 Turn off TRACE and some cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 23:08:08 +00:00
David McPaul
e19363c6a2 Turn on more decoders
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28451 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 23:03:15 +00:00
David McPaul
d2c702af77 Log an error before returning error result
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28450 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 22:59:52 +00:00
David McPaul
dfa31d6f48 improve error logging message
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 22:58:43 +00:00
David McPaul
7670d4094c put TODO in front of my todo comment
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28448 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 22:57:25 +00:00
François Revol
fbc1ca4196 No need for NULL there.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 22:17:19 +00:00
Ingo Weinhold
cd65e69b00 Callgrind output: Encode the thread name and the total time the thread
used into the file name. This makes it easier to find the thread(s) one
is looking for.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 21:06:44 +00:00
François Revol
9da2356857 Work in progress to pass the image extents to the kernel,
- code is disabled yet as the bootloader doesn't have add_boot_item.. will need to pass via kernel args
- add a GetFileMap() method to the vfs, and implement it in FAT code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 20:39:14 +00:00
François Revol
ebb7d4466e add header & (c)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28444 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 20:33:39 +00:00
Stephan Aßmus
fb1502680c Turn off synaptics touchpad support for the time being.
I am also not happy with the acceleration yet and as reported
by others, there are problems with real mice as well (now wheel
support anymore). With the plain PS/2 driver, I can slide my
finger slowly over the touchpad and the cursor would react/follow
precisely the movement. In Synaptics mode however, there are
unexpected pauses in the movement of the cursor. In any case, the
patch is finally in and I or anyone else can continue to work
on it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 20:33:14 +00:00
Stephan Aßmus
dd85ce0d07 * Check the return codes returned by the command functions
in probe_synaptics().
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 20:29:50 +00:00
Ingo Weinhold
e5c6366896 AbstractThreadProfileResult::SynchronizeImages(): New images were only
added, if their creation event was now or in the future. Obviously we're
only interested in images that do already exist, though. Also get rid of
"new" images that already have been deleted in the meantime.
Fixes problem that for some threads (almost) no images were added and
thus no functions could be resolved.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 20:21:47 +00:00
Rene Gollent
73ca5aff45 Fixed numerous problems in BWindow::_FindView:
1) If a view contained the point, but had children, that view would never be returned as a result, even if none of the children matched.
2) When converting coordinates to the child's coordinate space, it was using the bounds rectangle rather than the frame. This in most cases had the result that the coordinate was unchanged, and thus messed up the search completely.

This fixes ticket #3000.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 20:14:56 +00:00
Axel Dörfler
ac0a3e87f0 * Turned off debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 19:05:23 +00:00
Axel Dörfler
6c3348f1cd * The check mechanism in the block allocator now locks the journal as well to
fix a potential deadlock.
* Journal::Lock() now accepts another parameter that specified whether child
  transactions should be split - this is nothing you would want in normal
  operation unless the parent transaction is only there to prevent others from
  writing (such as with the block allocator check stuff).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 19:04:14 +00:00
Axel Dörfler
d9810e04cf * Implemented a "chkbfs" using the old ioctl interface formerly only used by
the old bfs_shell. This is probably not how Ingo anticipated this to be
  used :-)
* It still seems to work, though, haven't yet tested on a partition with harder
  errors.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 17:31:31 +00:00
Axel Dörfler
dd68fdb57a * Calmed down debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 17:29:45 +00:00
Axel Dörfler
a8e8efef96 * Made repairing partitions work theoretically.
* Implemented a small app "checkfs" to check partitions and put it on the image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 17:28:10 +00:00
Rene Gollent
c15ed4c682 Correct slight error.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 16:52:45 +00:00
Stephan Aßmus
99c69d9a2b More coding style cleanups.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 16:28:45 +00:00
Stephan Aßmus
03d0e639fc * Fixed more coding style issues.
* White space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 16:08:57 +00:00
Rene Gollent
5233e974e2 Update Vision package for some minor fixes:
- fixed layout of font preflet
- enabled InfoPopper support
- incorporate recent BCLV changes 



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 15:21:52 +00:00
Jérôme Duval
280e43b1f7 maintain our own copy of direct_buffer_info as it can change without notice
fixed bug #3001


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 15:07:38 +00:00
Stephan Aßmus
802b633082 * Fixed some of the weirdly changed define names.
* A few more style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 15:02:35 +00:00
Ingo Weinhold
8d41d0ee72 Spotted by "daste": When unlocking the mutex owner must be set to -1
also for error check mutexes, otherwise the next pthread_mutex_lock()
will fail.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 14:30:09 +00:00
Stephan Aßmus
1ecbbd9c27 Darn, SVN checked only modified stamps of the files, not the content.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 13:22:29 +00:00
Stephan Aßmus
c3a113e4b4 ps2_mouse.c was refactored into ps2_standard_mouse.c, but I applied the
patch wrongly. This should hopefully fix it. Only my coding style cleanup
history should be "lost" this way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28426 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 13:11:53 +00:00