Commit Graph

33438 Commits

Author SHA1 Message Date
Stephan Aßmus 33671742a5 We definitely don't want a global lock, even when not using the chunk cache.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35029 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-12 20:22:22 +00:00
Stephan Aßmus a2b71035ae Updated to already implemented features.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-12 20:20:37 +00:00
Stephan Aßmus ecc1234fbe Apparently some GCC 4 fixes...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35027 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-12 20:18:50 +00:00
Stephan Aßmus 0d7c802fa5 "page setup" is appended to the driver name. Thanks PulkoMandy for the heads
up!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35026 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-12 20:16:10 +00:00
Stephan Aßmus 26556405c2 Applied patch by Humdinger which converts printer drivers to use sentence-case.
Thanks a lot! (Part of ticket #5169)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35025 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-12 20:03:56 +00:00
Ingo Weinhold 3b8c056da0 Should have been part of r35023: Introduction of the vm_page::modified flag.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35024 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-12 01:24:40 +00:00
Ingo Weinhold 829f302836 Introduced vm_page::modified flag, which is used by vm_unmap_page[s]() to
preserve the dirty flag of the mapping without having to potentially move the
page to the modified queue. This lifts the (ignored) requirement that the
pages to be unmapped must not be busy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35023 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-12 01:22:09 +00:00
Adrien Destugues b3a6a13635 Preliminary support for the proper frame format for davicom devices.
It still miss at least some checks about packet sizes and frame termination and probably some more error handling.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35022 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 22:21:33 +00:00
Ingo Weinhold 3fb2a94dfb * Inline {acquire,release}_spinlock(), when spinlock debugging is disabled.
* Use atomic_{and,or}() instead of atomic_set(), as there are no built-ins
  for the latter.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35021 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 22:13:11 +00:00
Ingo Weinhold 9c6720c064 Fixed two instances of debug code I missed to adjust in r35004. Fixes #5242.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35020 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 22:10:12 +00:00
Adrien Destugues a16d0e47d8 Fixed a stupid bug preventing media stauts to become active.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 21:39:43 +00:00
Ingo Weinhold 4f7b2c67b0 * gcc 4 features built-ins for atomic operations. If the macro
B_USE_BUILTIN_ATOMIC_FUNCTIONS is defined most atomic_*() functions are
  redefined as macros using the built-ins directly.
* Enabled that feature for the x86 build. Might work on other platforms as
  well, but that needs to be tested.

No significant speedup for the -j8 Haiku image build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 21:38:07 +00:00
Ingo Weinhold 1a837b3910 Tell gcc to produce code for Pentium at least. Doesn't seem to make any
difference performancewise though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35017 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 21:12:37 +00:00
Stephan Aßmus 98664e52dd Patch by Andreas Färber:
* Fix the boot net stack's IPService to base the calculation payload size
   on the IP-indicated packet size instead of the Ethernet payload.

Thanks a lot! Fixes ticket #5234.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 20:50:06 +00:00
Ingo Weinhold 4eb548a8ae Removed useless assigning of the default values and use a switch for the
architectures.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35015 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 20:36:24 +00:00
Jérôme Duval c8eb5b0bdf * regenerate config.h as it seemed not the good one for diffutils
* added sdiff command to the build and the image


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35014 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 20:23:34 +00:00
Ingo Weinhold 451ca8b4b4 PAGE_TYPE_GUARD was unused and for the other two types a simple one bit flag
suffices. Therefore replaced vm_page::type by vm_page::is_dummy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35013 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 19:13:14 +00:00
Oliver Ruiz Dorantes 5084d83333 - Do not delete net_buffer in frame container, as it or its fragments have already been deleted in driver transport layer
- Style



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35012 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 18:04:14 +00:00
Ingo Weinhold d7455de2f6 allocate_page_run(): Use temporary lists to store the pages we're allocating.
This makes appending the pages to the active queue more efficient and we
don't need the vm_page::is_cleared bit anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35011 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 16:36:31 +00:00
Ingo Weinhold a0b07ebaab Added AppendUnlocked() version that appends a list of pages.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35010 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 16:31:44 +00:00
Adrien Destugues eb7157a4b6 Localize virtualmemory preflet.
Patch done by mt, with some changes by me following sentence-casing of the preflet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35007 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 13:39:27 +00:00
Adrien Destugues 7a2f113eaf Added japanese translation for keyboard preflet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 12:06:25 +00:00
Ingo Weinhold 441945d568 Whitespace cleanup. Someone should check his editor settings. :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 02:55:41 +00:00
Ingo Weinhold 7372a88af4 Replaced the page queue mutexes by spinlocks. The critical sections are very
short and quite hot, so mutexes just cause more overhead due to frequent
rescheduling than waiting for the spinlocks does. The free and clear queues
are additionally protected by a R/W lock, which is mostly read-locked, save
for rare cases like allocating page runs.

The total -j8 Haiku image build speedup is marginal. The kernel time drops
about 8%, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 02:52:53 +00:00
Ingo Weinhold 8fc761bd7a Don't use a condition variable for blocking the system profiler thread, since
that causes a locking order reversal (condition variable lock <-> system
profiler lock) and thus a potential deadlock. Instead we use the thread
blocking API directly. Fixes #5229.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35003 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 02:33:10 +00:00
Philippe Saint-Pierre 83de0ccdec Launchbox was displaying the description of the application into its tooltips
even if it meant displaying the same label twice.

Fixes bug #5233.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35002 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 00:53:22 +00:00
François Revol f175afefc3 Use the amiga-specific checksum fixing tool when building the Amiga boot floppy image (not usable yet).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35001 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-11 00:17:10 +00:00
Jonas Sundström 2fb4b397a3 Explicitly check BApplication::WindowAt() against NULL, as suggested by Axel. Replacing AutoTextControl with a standard BTextControl and window flag B_CLOSE_ON_QUIT.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 23:30:04 +00:00
Oliver Ruiz Dorantes ee01456254 - Add macros to distingish between requests and responses
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34999 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 23:02:21 +00:00
Jérôme Duval 550d47d912 * cleanup
* save and restore window frame. Fixed bug #4307.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34998 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 22:57:21 +00:00
Oliver Ruiz Dorantes d9e36ee1c2 - Pointer not initialized for LocalDevice Menu (thanks Rene)
- Show Alert when bluetooth_server is not running (work in progress)
- Typos and Style



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34997 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 22:53:00 +00:00
Jérôme Duval 9fe2b96342 Change dragging bitmap so that the return key has a transparent background while moving.
Fixed #3892


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 22:19:29 +00:00
Oliver Ruiz Dorantes aeb7f21616 - Destroy debug window as late as possible
- Delete event listener
- a fake SDP server is enabled.

- Checkstyled



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34995 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 21:54:22 +00:00
Adrien Destugues f66bb08155 Added portuguese localisation done by Xeon3D.
I had to uptade the catkeys as Travis tool has trouble keeping up with changes in the repository (most importantly, cpufrequency fixes and mail sentance casing). I hope nothing was lost in the process.
Travis, if you read this, I had to load the catkey files in vim and save them back to get them linked correctly by the buildtools. I suspect some line ending problem or something alike. Also, your fingerprint computation seemed wrong in most cases.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34994 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 21:47:07 +00:00
Adrien Destugues 95d4cc1cbd - Some style fixes, as pointed out by Siarzhuk Zharski.
- Haiku doesn't like the ethernet maximal frame size to be set to 0. This drops the CPU usage and some calls to read/write are now occuring.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34993 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 20:29:02 +00:00
Adrien Destugues 2d6539b687 Fixed a small bug. But it still says media is inactive whereas the interrupt displays "link is up".
CPU usage is also always at 100% for some reason.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34992 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 19:45:05 +00:00
Adrien Destugues 6a6b71135a More work on davicom driver : I got it to the point where I don't know why it fails :)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34991 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 18:22:33 +00:00
Ingo Weinhold 74887321dd Ignore the additional make flags when building gcc 2. Currently those are
only -jN and gcc's build system has problems with multiple jobs. It works
fine for binutils and gcc 4 though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34990 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 15:48:09 +00:00
Oliver Tappe 4e45de0e5f * when connect()ing an UDP socket, we need to set the local address to the
default address of the outgoing interface as a side-effect


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 15:26:46 +00:00
Jérôme Duval 4c7d632339 Avoids loading addons entry which aren't files (fixes #5222).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 15:06:23 +00:00
Oliver Tappe 15c0996174 * added small test program done by Axel (and slightly changed by myself) that
exposes a problem in our UDP-connect implementation: the local address is 
  not set as a side-effect of connecting to a specific destination.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 15:03:12 +00:00
Adrien Destugues 7c7f88ea7d Some progress on davicom usb ethernet driver. The device is now initialized, and only the interrupt handlers are missing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 13:57:24 +00:00
Adrien Destugues 3314b279e1 A TR call was missing in this file.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 12:53:56 +00:00
Adrien Destugues 69ddf10683 Fix CPUFrequency localization :
- Hack StatusView.cpp so it generates a proper catkey file
- StatusView archive constructor wasn't instanciating the catalog
Sync all the cpufrequency catalogs to the current strings.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34984 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-10 12:52:46 +00:00
Jérôme Duval 534bebec39 When BString assignment operator is called with a NULL argument we should use an empty string instead. I checked this against Dano.
This fixed #4713


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-09 23:06:30 +00:00
Jérôme Duval 9b79c5cc28 cleanup & typo
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-09 23:03:44 +00:00
Jérôme Duval 0064d3243a * added and used the macro RETURN_AND_SET_STATUS()
* added parsing for DQue, DQTi, DQSz, DQMi tags. This could be used to check if an application is actually installed.
* added parsing for PtcI (unknown use).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-09 22:05:04 +00:00
Ingo Weinhold 5e0aacb9f8 vm_page_schedule_write_page_range(): The debug code was a bit too possessive.
We can only access the page, if it is not busy. Fixes #5228.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34980 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-09 20:59:03 +00:00
Ingo Weinhold 4aedc06701 "page" debugger command:
* Various smaller fixes.
* Used add_debugger_command_etc() and added more verbose usage message.
* Added option "-m" which iterates through all address spaces and finds out
  which virtual pages are mapped to the page.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-09 20:27:11 +00:00
Ingo Weinhold 509f1174ce * Added Size() method.
* Added Debug{First,Next}() methods to allow easy iteration through the
  address spaces in kernel debugger commands.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-01-09 20:21:43 +00:00