Commit Graph

28248 Commits

Author SHA1 Message Date
François Revol
3b40448410 added cache/TLB descriptors from Intel Application Note 485. Patch by Christian Packmann.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29337 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 16:50:25 +00:00
Ingo Weinhold
203c622934 * Added condition variables.
* Added a dummy slab implementation.
* Updated the lock, hash, and block cache implementations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 16:17:58 +00:00
Ingo Weinhold
42ef52132a Made usable from userland.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 16:11:57 +00:00
Ingo Weinhold
9bb78ee296 Removed the superfluous 'extern "C"'s.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 12:06:43 +00:00
Ingo Weinhold
3594d63b34 Got the kernel interface compiling.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 11:38:26 +00:00
Ingo Weinhold
b19b5f9dda More adjustments to the new FS interface. The enabled sources compile again,
but don't link yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29332 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 10:54:26 +00:00
Ingo Weinhold
f6583b4a17 Got rid of no longer needed LookupNoType(). The lookup hook doesn't doesn't
have a type return parameter anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29331 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 10:52:19 +00:00
David McPaul
42e4132ed3 made comment a TODO
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29330 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 09:06:53 +00:00
David McPaul
905faca0bf Output as Stereo as AudioChannelConverter cannot handle > 2 channels
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 08:58:59 +00:00
François Revol
bbc84914d4 Working version of the driver. At least it does seem to work with my onboard com port, but not the OxfordSemi PCI card I have here. Still requires tty_manager, and config_manager too, so won't work in Haiku yet. Needs cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29328 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-27 00:15:20 +00:00
Jérôme Duval
b5aca78a04 * compute offset based on vendor (32 for non intel) and sample rate
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 23:27:28 +00:00
Bruno G. Albuquerque
2144797f02 This fixes retrieval of email from IMAP servers. It seems there is a difference between the behaviour of BPath in R5 and Haiku (as this used to work in R5). More specifically:
BPath blah("blah");
printf("%s\n", blah.Path());

It seems that in R5 it would print "blah" (untested as I don't have R5 anymore, but this code definitelly used to work). And in Haiku it prints "/currrent/path/blah".

This fixed bug #3187.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29326 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 22:38:24 +00:00
Oliver Ruiz Dorantes
025e2c7bfe Separate stolen ListItem subclass to work on a new one for bluetooth devices
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29325 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 20:56:27 +00:00
Oliver Ruiz Dorantes
84a2dcb0eb Discoverability can be set through preferences now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 20:52:14 +00:00
Ingo Weinhold
cdebdeb0aa Some more work towards adjusting the UserlandFS to the current FS interface:
* Split the FSCapabilities bit mask into three bit masks for the FS, the
  volume, and the vnodes, since we have three independent FS interface
  structures, now. The latter is not supported in the kernel add-on, yet.
* Server:
  - Temporarily removed some things from the build (the BeOS interface
    and the cache implementations).
  - Some WIP in HaikuKernelVolume and [haiku_]kernel_emu.{h,cpp}.
  - Added HaikuKernelNode, which wraps fs_vnode for the client FS.
  The server is still quite a bit away from being buildable again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29323 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-26 00:09:43 +00:00
Jérôme Duval
346ae57c93 * Stream interrupts seem to arrive too early on most HDA chips:
we adjust buffer descriptors to take this into account. It defaults to one sample, but it should depend also on the sample rate or the chip vendor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29322 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-25 19:12:23 +00:00
Bruno G. Albuquerque
3539f6ec6a Added a TODO related to the runtime loader + OpenSSL problem.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29321 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-25 10:41:12 +00:00
Bruno G. Albuquerque
bec8576238 Works around problem with runtime loader described here:
http://www.freelists.org/post/haiku-development/Runtime-loader-problem

The problem seems to be related to loading/unloading add-ons linked against the
recent OpenSSL. Linking the E-mail preferences against the SSL libraries (when
USE_SSL is enable) fixes this as the SSL libraries are not unloaded then.

I am still investigating this but will have no more time this week so I am commiting this workaround until I look at it again.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-25 10:37:42 +00:00
Alexandre Deckner
634596058d * Revert the changes in r29316 as it's now fixed upstream.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29319 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 21:41:32 +00:00
Ingo Weinhold
2bcdce290b First work towards adjusting the UserlandFS to the changed FS API. The
kernel module compiles again, though newer features like VM file support,
asynchronous I/O, and FS layers aren't supported yet. The userland code is
still completely out of sync and won't even compile.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 21:07:40 +00:00
Stephan Aßmus
c0b6b0dff6 * Refactored _SanitizeEvents() a bit to remove small bits of duplicate code.
* Round the mouse coordinate to be compatible with BeOS behavior. I know that
  in WonderBrush, I had to extract the fractional coords using the be:tablet_x
  and y fields. This may actually be a better fix for #1527, now that we know
  what caused it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 20:13:49 +00:00
Alexandre Deckner
ea83c971c6 * Round mouse coords before doing BRegion ops for the transparent
selection rect, as BRegion behaves unpredictably with non-integral 
values (cf bebook).
  Fixes #1527


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 18:55:23 +00:00
Ingo Weinhold
5abd9a464d Whitespace cleanup and variable renaming for consistency. No functional
change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 14:20:24 +00:00
Ingo Weinhold
308c212c31 Patch by Matt Madia: Added automatic detection of 32 or 64 bit mode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 14:14:40 +00:00
David McPaul
be125ae02f Remove wrong format
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 12:50:31 +00:00
Stephan Aßmus
50d6da5a0e Fix GCC 4 build. Implemented constructors/destructors and standard operators.
Hopefully, I am not stepping on your toes, David! Please check these changes,
I've added some TODOs where problems may be lurking.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29312 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 12:15:40 +00:00
Stephan Aßmus
8ee9217eec Improved the look of the slider triangle thumb. Still missing is the vertical
version.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 11:09:27 +00:00
Stephan Aßmus
887f9688a4 Improved the look of the icon label outline, at least the white text
version should look much better now. Not so sure about the dark text
version, but if you don't want that, just make sure your desktop bg
color is dark enough to get white text.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 11:07:22 +00:00
Stephan Aßmus
2b4f382aac * When painting the view background bitmap, make sure to do
this with a reasonable drawing mode. Otherwise the current
  graphics state setup may not be what we need.
* Automatic white space cleanup. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 10:50:47 +00:00
David McPaul
201970d309 First cut at improving avi seeking
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 08:12:27 +00:00
David McPaul
3e02e6ae4d Seek functionality changes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 08:05:18 +00:00
David McPaul
379d4bb08f implement basic C yuv422toRGB function
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29306 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 08:00:46 +00:00
David McPaul
decfff7c4d implement seek function
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29305 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 08:00:06 +00:00
David McPaul
c6527ff508 add additional motion jpeg fourcc
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-24 07:56:25 +00:00
Ingo Weinhold
1e525344d6 * Automatic white-space cleanup.
* Handle the new B_DEBUGGER_MESSAGE_HANDED_OVER and pick the "causing thread"
  as our first victim. Fixes #2956.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 23:02:28 +00:00
Ingo Weinhold
e1975d3353 * When a team debugger is installed automatically, the thread causing that is
stored now.
* Extended the debugger message for B_DEBUGGER_MESSAGE_HANDED_OVER by the
  causing thread.
* Also send B_DEBUGGER_MESSAGE_HANDED_OVER to the debugger to which the team
  was handed over. The message will be the very first one the debugger gets
  from the team in question.
* Some harmless refactoring (added thread_hit_serious_debug_event()).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 22:59:45 +00:00
Ingo Weinhold
180e55a48b Added option "--multi", which creates another thread and crashes both, the
new thread and the main thread in this order. Allows to reproduce #2956
quite often.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29301 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 22:53:46 +00:00
Ingo Weinhold
cb5d702190 TeamDebugHandler::_HandlerThread(): Remove and delete the team handler in any
case, not only when we kill the team, i.e. also when the team just died or we
handed it over to another debugger. We can do this, since it is also safe to
assume that we won't get any further debug messages from the team after a
B_DEBUGGER_MESSAGE_TEAM_DELETED or B_DEBUGGER_MESSAGE_HANDED_OVER. We were
leaking (well, keeping) the team handler in those cases, which was a problem
in the latter one, since we silently ate all debug messages for the team in
case it would be re-attached later. Fixes bug #2942.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 22:51:01 +00:00
Michael Lotz
63448c92a4 Better do the check for "." and ".." after stripping off superflous leafs as
otherwise a "rmdir ./" would still have caused the corruption.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 22:48:16 +00:00
Ingo Weinhold
37aefc9c6f * Moved jam argument processing to new build/jam/CommandLineArguments.
* Check the first argument for "help" as well. If given print a somewhat
  helpful text. Consider this my excuse to close ticket #1883. :-)
* Track available and added optional packages and fail, if an optional package
  is requested that doesn't exist. Closes ticket #3332.
* Check for duplicate build profile definitions and fail if encountered.
  Closes ticket #3333.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 22:33:09 +00:00
Michael Lotz
24a7f4c285 Disallow removing the "." entry. We do the same for ".." already and it seems
to be in line with what other systems do as well. Also fixes bug #3476.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 19:55:03 +00:00
Jérôme Duval
f163ab92bb replicant view is already sized correctly
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 19:31:51 +00:00
Bruno G. Albuquerque
a440ab6ef1 - Small update.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 18:05:36 +00:00
Jérôme Duval
bc3229d648 * load settings before building the window: the behavior is then similar with the replicant version.
* change window limits when keypad option is off
* style cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29293 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 22:45:41 +00:00
Michael Lotz
1c053f1771 Obviously forgot this in the last commit...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 20:47:14 +00:00
Michael Lotz
6eba063647 * Added simplified possibility to schedule UHCI transfers from within KDL.
* Added debugger commands to resolve usb_ids to pipes.
* Adjusted the physical memory allocator to be usable in a slimmed down mode
  when running inside the kernel debugger.
* Implemented USB keyboard support for KDL through a kernel debugger add-on.
* Added kgetc() and made use of it where previously individual methods were used
  to ensure that reading characters always goes through the kernel debugger
  add-ons and the other methods.

This has some preconditions to meet though:
1) The keyboard must be in the boot protocol (currently the case but needs to
   be revisited once we have a full usb_hid).
2) The keyboard must be attached to a UHCI root port (i.e. not use EHCI or OHCI,
   also not through hubs unless those are USB 1.1).
3) the usb_hid driver has to be opened for this to work. This means that for the
   time between initializing USB and when usb_hid is opened by the input_server
   there is no keyboard support.

Also note that this has no way of detecting hot-plug, meaning that you can't
re-attach your USB keyboard from the hub to the root port once in KDL.

On the bright side of things, since this is a non-destructive mechanism it is
possible to enter and leave KDL without loosing the USB state.

Tested OK in QEMU, not tested on real hardware yet, will see in a few minutes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29291 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 20:46:27 +00:00
Jérôme Duval
e2c33fb995 * fix gcc4 build
* some style cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 18:26:19 +00:00
François Revol
08f7275afa Ignore generated files.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29289 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 16:05:02 +00:00
François Revol
d29cb41521 Fix ZETA build, USBKit doesn't have the AltInterface stuff.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 15:27:39 +00:00
Jérôme Duval
b824d54c1a fix linking with stdc++
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29287 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 15:26:17 +00:00