Commit Graph

28200 Commits

Author SHA1 Message Date
Axel Dörfler 608990b488 * Haiku's VM does not need the swap file to be as large as physical memory
at minimum to be able to work with it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 21:48:59 +00:00
Oliver Ruiz Dorantes bced01f71f - Use SetSelectionMessage to enable/disable the possibility to add to general list
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29388 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 19:02:26 +00:00
Axel Dörfler b82ed10b05 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 14:13:23 +00:00
Axel Dörfler 26153d0f67 * The net_domain's lock is now a recursive lock.
* Fixed all route locking problems, of which there were numerous
  ({add|remove}_route(), and list_routes() did not lock at all). Added
  lock assertions in functions that don't do the locking themselves.
* A route will now be removed from the list in remove_route(), not in
  put_route_internal(). Before, a route could easily be removed twice, causing
  remove_route() to release references it did not own. This fixes bug #2706.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 14:04:57 +00:00
Alexandre Deckner f11e13ffa2 * Fix build of ShelfTest
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29385 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 12:36:41 +00:00
Axel Dörfler b11680b741 * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 10:39:55 +00:00
Stephan Aßmus 61252f516c * Fixed the build and ticket #3515 (multi-line string).
* Automatic white space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-03 08:53:47 +00:00
Oliver Ruiz Dorantes 11d36ea03d - Add bluetooth kernel addons to build
- keep alphabetic order in network protocols



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-02 21:24:37 +00:00
Rudolf Cornelissen 6042b7b665 added 'block_acc' option in nvidia.settings to completely disable the acceleration engine. This lets my G72 run (not crash) for the first time when enabled. Note: Haiku becomes very slow in drawing in 32bit mode when the driver is running this way compared to vesa mode. I am assuming this is because of (too) fine-grained calling of the engine management functions. Never saw this effect AFAIK in BeOS.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-02 19:55:03 +00:00
Jérôme Duval 54ec265881 * fixed gcc4 build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-02 19:33:13 +00:00
Oliver Ruiz Dorantes 61c28fd543 Add new bluetooth components to the bluetooth optional package
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-02 18:24:24 +00:00
Axel Dörfler 43b2ca9108 * Fixed wrong use of MutexLocker as pointed out by Korli - nice catch! This
could have caused a number of problems.
* Fixed coding style violation Ingo introduced.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-02 08:23:16 +00:00
Ingo Weinhold 2f1f4f54d6 * Renamed UserlandFSServer to userlandfs_server. It is expected to live in
/system/servers, now.
* Got rid of the dispatcher application. It was the entity the kernel module
  talked to when mounting a yet unknown FS. It started the client FS server
  applications. Now the kernel module starts them directly. They use
  respectively named ports, so the kernel module can find them when already
  running.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-02 00:37:14 +00:00
Ingo Weinhold 2f8d0984b4 BeOSKernelVolume didn't initialize the fCapabilities base class member.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-02 00:28:17 +00:00
Ingo Weinhold 5ecc4b3775 * Introduced ref-counting for the I/O contexts.
* The I/O context related vfs_*() functions have io_context* instead of void*
  parameters/return values, now.
* vfs_new_io_context(): Lock the parent I/O context before getting its table
  size. Otherwise the table size could change until we do.
* vfs_resize_fd_table(): Fixed use of MutexLocker. We created only a temporary
  object, not one with function scope.
* Renamed load_image_etc() to load_image_internal() and added a parameter for
  specifying the parent team of the one to create.
* Introduced a kernel private load_image_etc() with a few more arguments than
  load_image().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29375 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-02 00:26:22 +00:00
Michael Lotz 9b9aa75aac * Implement basic support for the BSound parts of BSoundPlayer. Only one sound
at a time is supported and volume as well as start time are not taken into
  account. For reasons I don't feel like investigating right now all the
  BMediaTrack calls in the BTrackReader end up as pure virtual function calls
  though, so it's unusable for now.
* Fix leaking the temporary buffer in BSound.
* Whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 23:22:30 +00:00
Michael Lotz 0b2267c921 When searching for audio tracks, we are interested in a raw decoded format, not
a raw encoded format.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 20:57:24 +00:00
Michael Lotz 1b921108a7 Rewrote Sound.h and implemented most of BSound. Completely untested yet as the
BSoundPlayer functionality is yet missing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29372 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 20:56:19 +00:00
Rene Gollent 376b90d507 Update Vision to version 090301 - changes include various visual tweaks by Stephan Assmus to integrate better with Haiku's updated look. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 17:18:45 +00:00
Stephan Aßmus a27e95e37b Properly integrate the Bluetooth preflet with the build system.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29370 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 17:09:47 +00:00
Oliver Ruiz Dorantes d254a0eb2c - Fix gcc4 build(Monni)
- Remove Items added to Remote List from inquiry list, this fixes elements being shared among more than 1 list. Both lists behave better now.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29369 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 16:01:41 +00:00
Ingo Weinhold 126db05193 Missing return. BeOS style add-ons seem to work again (tested with ramfs).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29368 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 15:29:02 +00:00
Ingo Weinhold 9accd619b8 * FileSystem does now have a list of all volumes. This allows to get a volume
by ID.
* Added a three parameters version of UserlandFS::KernelEmu::publish_vnode(),
  which is used by the BeOS new_vnode() emulation. It calls the new
  Volume::GetVNodeType() to get the type of the node.

Theoretically BeOS FS interface style add-ons should work again, but ATM we
crash the kernel when trying to mount.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29367 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 14:51:05 +00:00
Oliver Ruiz Dorantes f988be6fbc - Add the retrieval of remote names to the discovered devices
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 14:48:11 +00:00
Ingo Weinhold 5b2561a538 A NULL pointer was dereferenced when mounting failed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29365 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 14:44:56 +00:00
Ingo Weinhold f0d7e65672 Fixed debug build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 14:42:57 +00:00
Stephan Aßmus d5e2aa9389 Patch by Oliver Coursiere:
Center the TV window on start. Fixes ticket #3041. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 13:58:05 +00:00
Oliver Ruiz Dorantes cafd739df8 - Add device class in listitem
- Add scrollbar to the list of remote devices
- Draw a Rect where an icon is suposed to be located



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29362 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 13:05:41 +00:00
Oliver Ruiz Dorantes 623f4e6534 - Implement a suitable BListItem(me) for bluetooth Devices
- Add functionality to the Menu starting or shutting down the server(Monni)
- Add the desired device after the inquiry to the RemoveDevices List (Monni & me)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 20:48:27 +00:00
Rene Gollent 4438cb3b69 Prevent BTextControl from eating scripting messages it doesn't handle (though it doesn't currently handle any). Updated TODO note to clarify this. Fixes ticket #3494.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 19:59:16 +00:00
Ingo Weinhold afd265501f Moved the creation and initialization of the FileSystem subclass instance
into the FS interface specific libraries, thus making the server completely
independent of those.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 18:56:35 +00:00
Ingo Weinhold dd0eadec73 * Fixed get_vnode() signature.
* Added simple get_default_partition_content_name().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 18:52:36 +00:00
Ingo Weinhold 4ffdedd0f0 Missed to check this in earlier.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 18:51:23 +00:00
Ingo Weinhold 80ece78534 Added private get_image_symbol_etc() that can recursively search for a symbol
(similar to how dlsym() works).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29356 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 18:50:40 +00:00
Ingo Weinhold 25c4a958a2 Renamed files (removed "beos_" prefix).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 16:16:36 +00:00
Michael Lotz 4085ff6fcf * Check for and discard not enabled interrupts in EHCI.
* Simplify acknowledging interrupts a bit.

Might help with bug #2083 in case the controller would interrupt on a port
change or frame list rollover even though those aren't enabled by us.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 16:06:53 +00:00
Ingo Weinhold 35d56691a2 Adjusted to interface changes in the server. Should be working save for the
stubbed new_vnode().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 16:00:09 +00:00
Ingo Weinhold 3b8f138f43 Removed the parent directory from the header directories again. Instead
include the respective headers explicitly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 15:28:51 +00:00
Ingo Weinhold c12690b58a Some file renaming (removed the haiku_ prefix).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 15:24:54 +00:00
Ingo Weinhold b7d815f1cd Stubbed the missing methods. The library links now at least.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29350 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 15:14:24 +00:00
Ingo Weinhold 67cf3a62b4 Removed the file cache emulation and added implementation stubs for the file
cache functions. We won't emulate the file cache in userland anymore, but
forward the calls to the kernel. Besides that this will save quite a bit of
emulation code, it will also make mmap()ing files on UserlandFS volumes
possible. The drawback is that these calls will be slower.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 15:10:36 +00:00
Ingo Weinhold e4ec0a2364 Added the kernel file map implementation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29348 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 13:47:10 +00:00
Ingo Weinhold 0559ce85e9 Moved the implementation of the public interfaces out of their namespaces.
This makes things a bit simpler and makes quite a bit of haiku_kernel_emu.cpp
superfluous.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29347 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 12:20:41 +00:00
Ingo Weinhold 8f53cb421d Missing include directory.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 12:16:18 +00:00
Ingo Weinhold 08ab7a19f5 Commented out the interaction with the specific kernel interfaces. This has
to be implemented differently.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 11:46:57 +00:00
Ingo Weinhold a7b3468770 * Reorganized the sources. Haiku and BeOS kernel interface each have their own
subdirectory, now.
* Moved all code specific to a kernel interface into the respective library.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 11:39:46 +00:00
Ingo Weinhold a20733f9e7 Forgot to add the dummy slab implementation.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 10:09:36 +00:00
Ingo Weinhold f6d0017dea Fixed duplicate parameter name.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-28 10:08:30 +00:00
Axel Dörfler 2e47b62e2c * Consolidated '*' style.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 23:09:39 +00:00
François Revol 595d8a3b9c Fix for gcc4 build. Thx Monni.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29340 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 22:44:05 +00:00