Commit Graph

13435 Commits

Author SHA1 Message Date
Stefano Ceccherini
5845b8c325 Various small changes (mostly style related)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13823 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-25 15:20:03 +00:00
Stefano Ceccherini
e4a11b6a77 When reading PHY regs over the i2c bus, the turnaround ACK bit
is read one clock edge too late. This bit is driven low by
slave (as any other input data bits from slave) when the clock
is LOW. The current code did read the bit after the clock was
driven high again.

From OpenBSD (from FreeBSD).

Another small change

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-25 14:30:02 +00:00
Michael Lotz
63d5a418ab Cleaned up and optimized Message2.cpp. It avoids as many unnecessary copies as it can now.
The unflatten time is now reduced to about a third of the current BMessage implementation but it's still
about half as quick as R5 (we're talking about microseconds here).
A third version of BMessage that operates purely on a flat buffer is in the works. We'll see which one
will be faster for normal uses.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13821 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-25 00:06:34 +00:00
Ingo Weinhold
18b5424c5f * Implemented BRoster::ActivateApp().
* Added the respective case statement in AppServer::DispatchMessage().
  The code that actually activates the app is still missing.
* Removed the remnants of the old way of notifying the registrar about
  what app got activated (the activated client window did that).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13820 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-24 21:10:33 +00:00
Ingo Weinhold
f3b3bb4ebd No longer build RosterShell as unit test.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-24 21:05:18 +00:00
Stephan Aßmus
7b4cc5a1c7 this has come in handy several times now
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-24 18:35:52 +00:00
Stephan Aßmus
be85e14208 initializing the system palette before creating the desktop and driver fixes the bug that the desktop is first shown in the wrong colors on 8 bit screens
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13817 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-24 18:32:05 +00:00
Axel Dörfler
5f2edc0ffc The Desktop class now inherits from MessageLooper as well, the AppServer
class runs it, too.
No real message processing is done yet, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13816 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-24 17:14:17 +00:00
Axel Dörfler
c6a2527297 Split ServerWindow::Quit() into two parts, and moved the generic one to
the MessageLooper class - the other part is called from there as virtual
_PrepareQuit().
Moved the class documentation to the source file.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13815 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-24 17:13:02 +00:00
Rudolf Cornelissen
b2355ae66d corrected jamfile: still had a skel.driver mention in it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13814 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-24 15:09:40 +00:00
Rudolf Cornelissen
66e18736f6 enabled color-PAL to be 8-bits wide instead of just 6-bit. Updated PAL programming accordingly. VIA CMAP8 now supports (indexed) 24-bit color instead of just 18bit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-24 12:11:51 +00:00
Rudolf Cornelissen
8a6f27ebd8 completed crtc colordepth setup guess for 24bit mode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13812 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-24 11:51:36 +00:00
David McPaul
32661d2e83 improved handling of compressed audio
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13811 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-24 06:11:23 +00:00
Rudolf Cornelissen
9e4b755834 updated registerdefines for K8M800 PLL.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-23 18:48:41 +00:00
Rudolf Cornelissen
3b0166e8f4 updated docs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-23 18:47:50 +00:00
Rudolf Cornelissen
230df378e3 added preliminary K8M800 pixelPLL programming. Need feedback to determine if it works. Bumped version to 0.06.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13808 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-23 18:47:21 +00:00
Axel Dörfler
89ab121e66 Factored a MessageLooper class out of ServerWindow and ServerApp. Could still
be improved a bit (Quit() and _MessageLooper() are empty right now).
Removed ServerApp::PingTarget().
Hopefully cleared some confusion about ServerApp::fClientLooperPort and fClientToken
(previously fHandlerToken), even if it's currently unused.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-23 18:30:48 +00:00
Rudolf Cornelissen
f95c74702f fixed refreshrate +5 percent setting error, Xtal was incorrectly set. Modesetting is now 100% OK on CLE266 and KM400, if a VESA mode was preset at boottime.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-23 12:23:11 +00:00
David McPaul
0ddd1fcb84 pre-alpha mp4 reader
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-23 01:51:55 +00:00
Axel Dörfler
5fcc5dfec9 Never used strlcpy() when compiled for R5, dunno why Jerome added this.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-22 16:01:52 +00:00
Nathan Whitehorn
9d41fc2bec Right click drags of people files into BeMail lets you choose which of multiple e-mail addess attributes you want to use, and the people query for the "To:" menu now looks on non-boot volumes as well. Patch c/o slaad.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-22 13:25:37 +00:00
Axel Dörfler
1270e8a017 Updated version info in the resource file as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13802 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-22 07:51:28 +00:00
Axel Dörfler
08f833c027 Fixed two bugs:
- when undoing the first change, any later change would make that first change reappear
- in hex mode editing, changes were not merged because they changed the same byte
Updated version info.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13801 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-22 07:50:29 +00:00
Axel Dörfler
da1f176a9a You can no longer write to O_RDONLY streams, and you can no longer read from O_WRONLY streams (thanks to Ingo for this hint).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13800 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-22 06:54:19 +00:00
Ingo Weinhold
5e14f5dae0 Make sure the division by zero is not optimized away.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 23:53:57 +00:00
Ingo Weinhold
0e2218e5b9 Provide a useful window title for the debug terminal.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13798 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 23:52:51 +00:00
Ingo Weinhold
4cbc183b53 Added option "-t" to specify the window title.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 23:52:06 +00:00
Ingo Weinhold
7f53c2cc96 We now make sure, that images always have absolute paths, otherwise
their path could be invalid in other contexts (e.g. the debug server might
be unabled to find them). This seems to be what BeOS does, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 23:51:02 +00:00
Ingo Weinhold
d08379a80b * Now we deal with all x86 exceptions, i.e. we no longer panic() when a
user application performs a division by zero or causes a general
  protection fault. For some exceptions (e.g. machine check) I wasn't
  quite sure whether they can be caused by user apps at all, so we panic()
  in those cases. Wouldn't harm, if someone more knowledgable would check
  this, though.
* Removed the unused fault handling stuff, respectively moved the little
  that was used into x86/arch_int.c.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 23:47:08 +00:00
Rudolf Cornelissen
7d971e51a1 updated register defines for PLL.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 21:37:38 +00:00
Rudolf Cornelissen
156dee6ac8 updated some naming stuff
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13793 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 21:37:03 +00:00
Rudolf Cornelissen
16bf7b9598 added primary pixelPLL programming and calculations for CLE266/KM400 architectures. K8M800 still needs to be setup (PLL registeradresses and ranges differ here). Although set refreshrates are about 5% too high, you can now decently set any mode you like: as long as you have *some* vesa mode preset (still). Looking at a soothing 75Hz now here :)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13792 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 21:35:34 +00:00
Ingo Weinhold
71903a151d This is the kind of small bug that takes hours to track down: The missing
grist caused bfd to be compiled using gdb's config.h. This made it think
Haiku had no fcntl() and thus assumed shared objects were opened r/w instead
of read-only, which made it write back data when closing the files. So this
fixes the problem that gdb damages the shared objects it had loaded.

Basically two questions remain:
1) Why does BFD write something into the files that makes them invalid?
2) Why was it possible to write something into the read-only opened files?



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 19:37:41 +00:00
Philippe Houdoin
edcc167783 Add support for others rtl8139-based devices, beyond the vanilla RealTek vendor/device IDs.
Untested.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13790 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 13:37:05 +00:00
Stephan Aßmus
e4b3b04f99 Appearantly, there is a race condition when setting preferences, this fixes (one of) the crash(es?), but we should really fix the race condition, but I have no energy to get to know the code more. I'm thinking the PrefHandler class needs locking, since it is used everywhere, it is probably best to put the locking directly into the PrefHandler methods.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13789 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 12:59:23 +00:00
Stephan Aßmus
6acca385f0 source is a BControl pointer, so we need to dynamic_cast, no?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13788 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 12:56:24 +00:00
Stephan Aßmus
05988bd35f inactive workspaces are drawn with darker colors
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 11:43:11 +00:00
Stephan Aßmus
b23f4579af fixed a debug message
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-21 11:42:26 +00:00
Michael Lotz
fcf209d9ce Added padding calculation (not final) so that flattening / unflattening actually works.
Passes all unit tests now and works on Haiku too. Speed is not yet optimized and Message2.cpp is still not cleaned up.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-20 23:15:03 +00:00
Michael Lotz
bbe759b31b Took Ingos considerations into account and added a simple hashtable implementation.
It's currently really broken so don't even try to test it, but you can still review it ;-).
Message2.cpp is not yet cleaned - more to come...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-20 21:11:27 +00:00
Jérôme Duval
eddf2adc8a style change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13783 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-20 07:41:18 +00:00
Jérôme Duval
3f107259bf style change
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-20 07:29:19 +00:00
Jérôme Duval
b1e1fbaeda replaced UBYT with B_UINT8_TYPE
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-20 07:26:03 +00:00
Michael Lotz
5707106109 These should have gone with the last commit. Last commit for tonight.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-20 01:17:46 +00:00
Philippe Houdoin
a284b7b388 Set low color to selection background color before drawing text.
This should remove AA bugs for selected item(s) text.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-20 01:15:05 +00:00
Michael Lotz
e8b43dc055 Fixed includes and removed some debug output. You could now switch Message.cpp, MessageBody.cpp and MessageField.cpp in src/kits/app/app.src to Message2.cpp, MessageBody2.cpp and MessageField2.cpp to test the new implementation. Fixed the wrong commit message by the way (via svn propset).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-20 01:11:19 +00:00
DarkWyrm
d1ebd75641 Refactored CDDB lookup code
CDDB data is written in R5 format with the exception of CD:key (still figuring out what to do about that)
Fixed some update notification problems with changing CDs


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-20 01:04:55 +00:00
Michael Lotz
1a3441a4a1 Added a new BMessageBody and BMessageField implementation and added a version of BMessage to
use it. It is not (yet) included in the build and won't break anything.
As we now only have thin wrappers around the *Data() functions, the templatized implementation does
not make much sense anymore and wouldn't work either.
I started this new implementation to be as clean as possible. Instead of using a std::map and
BDataBuffer it uses BList and BMallocIO. It passes the unit tests and it even seems to be a bit quicker
in some tests (but not as quick as the R5 one).
Flattening/Unflattening does not work yet so you can't use it under Haiku right now. It's completely work in progress (I started it just 4 hours ago).
Shout if you see something completely broken, reviews welcome.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-20 00:36:50 +00:00
Ingo Weinhold
6ff2656c03 * We now use libdebug.so, which saves us a couple lines of code.
* Print the debugger message in case the debugged team called debugger(),
  and the description of an occurred exception respectively.
* Properly keep gdb's internal thread list up to date. This fixes the
  problem that an attached debugger always resumed all threads of the
  debugged team.
* A bit of cleanup of the attaching code.

Discovered an ugly bug: When invoking gdb with an executable -- regardless
of whether attaching gdb to a running process or just starting a debugger
session with the executable -- the executable is modified. I tested with
"crashing_app" and in the second debug session gdb fails to read the debug
info from the file and encounters a weird error when closing the file:
"No space left on device." I have the suspicion that this is another bug
in Axel's VM/file cache pet. :-P



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-19 23:29:04 +00:00
Ingo Weinhold
a79265708d Set the members of a destroyed debug_context to invalid values.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-19 23:14:16 +00:00