Commit Graph

33974 Commits

Author SHA1 Message Date
Ingo Weinhold
affb47166b add_mtrrs_for_range(): Fixed computation of the register ranges. Per power of
2 size we might need to use two registers (for the start and the end of the
range).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35753 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-04 09:43:04 +00:00
Ingo Weinhold
2a196c6349 exchange_with_empty() did not set the freeMagazine return value to NULL when
the maximum magazine count wasn't reached yet. With object_depot_store() not
resetting its local variable, a magazine could thus be emptied and freed
twice. Fixes #5489 and #5497.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35752 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-04 01:55:37 +00:00
Jonas Sundström
7197f1a67e Partial clean-up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35751 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 23:45:41 +00:00
Ingo Weinhold
1aed263998 TracingMetaData::_InitPreviousTracingData():
* More output.
* Actually increment errorCount when encountering an error. The loop
  condition would never be false this way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35750 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 23:23:09 +00:00
Stephan Aßmus
8c3d172b46 Fixed hovering over a sub-menu to let it open automatically, which I broke
with my previous commit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 22:46:25 +00:00
Ingo Weinhold
7263efe581 Override Fault() method for VM{Device,Null}Cache to prevent vm_soft_fault()
from inserting a clean page, if a fault happens. VMNullCaches are used by the
slab's memory manager -- all page faults in slab areas are serious bugs and
we want to panic() immediately.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35748 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 22:08:47 +00:00
Colin Günther
e4a0a9c2b4 Updating the atheroswifi driver to the FreeBSD HEAD svn rev 204100. This enables
support for some of the newer 9k chipsets. For example my Eee PC 1005 HA can
now be used with WiFi.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35747 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 21:55:51 +00:00
Oliver Tappe
eb9907fc9e Fixing #5518:
* applied Matt's patch (somewhat changed) that corrects the links for gcc4's
  libstdc++.so and libsupc++.so in case of a gcc2 hybrid (they must point
  to /system/lib/gcc4/... instead of /system/lib/...)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 21:44:12 +00:00
Ingo Weinhold
5cf6995685 The usual cleanup after Axel. ;-) Define vm_page_num_pages() which is now
used by the block cache.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35745 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 21:02:34 +00:00
Matt Madia
929c602701 Exit immediately if wget fails to download any one of its files. This will
allow future runs to be successful. Fixes #5528


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35744 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 20:58:49 +00:00
Axel Dörfler
d501707d8a * Removed the cookie field of the check_control structure; that really was
a stupid idea. Instead, the already existing fCheckCookie member is used.
* bfs_ioctl() now accesses all userland buffers safely, this should help with
  #3264, and move the crash where it belongs.
* Changes not yet tested; they only affect checkfs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35743 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 19:38:56 +00:00
Axel Dörfler
625ab0dea1 * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35742 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 19:20:51 +00:00
Stefano Ceccherini
08876f2b96 Move the code which checks for disabled apic earlier (in the boot loader).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35741 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 19:14:42 +00:00
Stephan Aßmus
8a076abfc1 Patch by "yourpalal": The previous hack to embed the menufield is no
longer necessary. Resolves #3637 - thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35740 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 17:47:29 +00:00
Stephan Aßmus
2bcccf5a74 Patch in part by "yourpalal":
* Set the MENU_STATE_CLOSED state upon BMenu initialization.
 * When drawing the label, use the parent bounds, including
   item margins to truncate the label, when the parent menu is
   closed.

Thanks a lot for the patch!

Changes by myself:
 * Cache the MenuPrivate instance in BMenuItem::DrawContent().
 * Use Window()->UpdateIfNeeded() to animate the flashing invoked menu item,
   which makes a lot more sense, the comment about it working in BeOS is
   probably due to item->Select() probably drawing outside of an update cycle.
 * The trigger invokation in keyboard handling didn't break out of the loop
   after invoking an item. Probably didn't matter since triggers are hopefully
   not assigned to more than one menu item. :-)
 * Use the same trick as BMenuBar to avoid interfering with keyboard navigation
   in the BMenu::_Track() hook.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 17:43:31 +00:00
Matt Madia
b353282928 Extended AddWifiFirmwareToHaikuImage to support a boolean, which determines
whether to extract the firmware archive onto Haiku Image or to simply copy
it intact. This allows the ipw2100 and iprowifi2200 firmware archives to be
copied onto the default images. Fixes #5523


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35738 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 17:23:06 +00:00
Axel Dörfler
88f1263865 * The slab_cache command now also dumps the actual slab lists.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35737 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 15:15:49 +00:00
Ingo Weinhold
6dacf0502d Ignore physical memory below 1 MB. This is a work-around for buggy BIOSes
providing incorrect memory types. It doesn't cost us anything, since the
kernel reserves all but the unusable range later anyway. Should fix #1925.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35736 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 14:54:46 +00:00
Axel Dörfler
6a7f219c8d * block_notifier_and_writer() will now flush 1000 blocks when reaching the soft
memory limit.
* Improved debug output.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35735 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 14:39:26 +00:00
Matt Madia
8acc2e0854 Fixed a typo in DownloadFileIfNotCached. Fixes #5519.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35734 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 12:07:59 +00:00
Axel Dörfler
0181fe4b21 * Replaced cached_block::accessed (the number of accesses) with last_accessed
(the time of the last access), as what we really want is a frequency/last
  access time scoring, and accessed alone is useless for that.
* put_cached_block() no longer frees any unused blocks.
* The low memory handler will now only lock the cache if there is something
  to do. Also, it did not take address space warnings into account.
* Even when memory is critical, we don't free all unused blocks anymore - if
  the number of blocks we free now (10000) is not sufficient to get out of the
  critical condition, chances are good that we will be called again :-)
* block_notifier_and_writer() now tries to make sure that the total block cache
  memory consumption grows not much larger than half of the available RAM.
* This should all help to limit the block cache usage a bit better. Hopefully,
  a checkfs run will no longer run out of memory here (couldn't test yet).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 10:28:57 +00:00
Scott McCreary
b06a8799f9 Updated openssl to 0.9.8m and curl to 7.20.0
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35732 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 07:59:53 +00:00
Rene Gollent
7c0f5738b3 Remove Tracker's special DnD handling. Instead, BTextView/BTextControl now
honors drag messages containing entry refs and resolves the path of the first
one contained. Will work on a more sophisticated solution that would allow
optionally extracting the file text instead via right click drag context menu 
when I have more time.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-03 00:02:02 +00:00
Oliver Tappe
f435abb00a Fix #5499 for real:
* the optional package ICU-devel now explicitly installs the appropriate
  symlinks for the development libraries as required (for both standard
  and hybrid builds)
* ICU-devel now depends on Development (more indicative than required, but
  I think it makes sense)
Thanks to Matt and Rene for pointing me in the right direction.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35730 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 22:30:40 +00:00
Oliver Tappe
bbaf002932 * fixed copy'n'paste bug in comment
* automatic whitespace cleanup

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35729 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 22:27:14 +00:00
Fredrik Holmqvist
1cb8d6e5c6 Reverting r35592, that checked that it was a valid 32 bit physical address, now that #5449 is fixed. (So we use the ACPICA code without modifications).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35728 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 21:12:01 +00:00
Axel Dörfler
9562c7f592 * Fixed #4339 - I did not use stimut's patch (but thanks a lot, I wouldn't even
have started looking into it without it!), but solved it a bit differently by
  moving the state saving into the destructor, and removing the tab in question
  manually afterwards.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35727 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 18:44:28 +00:00
Ingo Weinhold
d40a935560 Boot loader (x86 mmu.cpp):
* Made the page table allocation more flexible. Got rid of sMaxVirtualAddress
  and added new virtual_end address to the architecture specific kernel args.
* Increased the virtual space we reserve for the kernel to 16 MB. That
  should suffice for quite a while. The previous 2 MB were too tight when
  building the kernel with debug info.
* mmu_init(): The way we were translating the BIOS' extended memory map to
  our physical ranges arrays was broken. Small gaps between usable memory
  ranges would be ignored and instead marked allocated. This worked fine for
  the boot loader and during the early kernel initialization, but after the
  VM has been fully set up it frees all physical ranges that have not been
  claimed otherwise. So those ranges could be entered into the free pages
  list and would be used later. This could possibly cause all kinds of weird
  problems, probably including ACPI issues. Now we add only the actually
  usable ranges to our list.

Kernel:
* vm_page_init(): The pages of the ranges between the usable physical memory
  ranges are now marked PAGE_STATE_UNUSED, the allocated ranges
  PAGE_STATE_WIRED.
* unmap_and_free_physical_pages(): Don't free pages marked as unused.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35726 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 18:13:06 +00:00
Ingo Weinhold
a93fa3c9ea More debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35725 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 17:50:21 +00:00
Ingo Weinhold
dcdf2ab981 Extended assert output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35724 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 17:49:46 +00:00
Matt Madia
0010ec111c Expander checks B_USER_DATA_DIRECTORY and B_COMMON_DATA_DIRECTORY for
expander.rules, not B_COMMON_ETC_DIRECTORY.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35723 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 17:39:14 +00:00
Matt Madia
8c2cbd9221 Corrected the XZ-Utils expander rules
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35722 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 17:36:08 +00:00
Matt Madia
f8b1bf84a2 Added XZ-Utils as an optional package.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35721 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 14:42:30 +00:00
Matt Madia
ce811940ba Moved the optionalpackage P7zip's code for creating expander.rules into a new
rule AddExpanderRuleToHaikuImage.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35720 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 14:41:06 +00:00
Michael Lotz
1487898473 * The MBR boot code did execute the check for disk extensions with the wrong
magic code. This would lead to them not being detected on systems where the
  BIOS (rightfully) returns an error in this case. Since the CHS fallback can't
  work it would then fail with "Missing Operating System".
* Fixed a typo, an 80 char limit violation.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35718 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 01:28:49 +00:00
Michael Lotz
aceebab740 Add a CHS conversion function. It is not used though as we can't generally make
valid CHS addresses due to not knowing the geometry of the target device
beforehand. So it's mostly just for completeness...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 01:22:11 +00:00
Michael Lotz
e3c9401739 Add missing dependency that would cause the MBR not to be rebuilt on changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 00:53:41 +00:00
Rene Gollent
ddee094350 Add an extra sanity check to Tracker's automatic text clipping extraction when
drag and dropping text files: before it would blindly read the entirety of the
file's text contents regardless of size, which probably led to more than a few
nasty surprises when someone attempted to drag very large (i.e. multimegabyte)
text files. We now clamp the amount of data we read to 64KB. Though it's
debatable if this feature is at all useful, since it may potentially be better
implemented by handling entry_refs in dropped messages in BTextView directly
(assuming a compatible type). Opinions welcome.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-02 00:51:17 +00:00
Ryan Leavengood
a17770f44a Small coding violation. Thanks for the tip Axel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-01 22:40:33 +00:00
Michael Lotz
610a2eed63 Made heap classes const just in case. They really already were though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35713 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-01 22:29:23 +00:00
Colin Günther
1d2ac9a4ea Fixing coding style violation. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-01 22:13:33 +00:00
Matt Madia
e414b34299 Added support for *.tgz,*.tar.gz. It is now consistent with
InstallOptionalHaikuImagePackage's functionality.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35711 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-01 22:13:12 +00:00
Matt Madia
91db81894a Return the original failed exit code and not that of 'echo'.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35710 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-01 21:58:27 +00:00
Oliver Tappe
1d69d5aed5 * reverted r35680 as it caused havoc with the other
(basic) development optional packages - needs
  some more investigation

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35709 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-01 21:50:11 +00:00
Matt Madia
02e27d98b0 Removed Wifi-ipw2100+fw and Wifi-iprowifi2200+fw from OptionalPackages, as they are no longer needed. 'install-wifi-firmwares.sh' is to be used instead.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35708 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-01 21:44:08 +00:00
Jonas Sundström
5850d9447c Clean-up addendum.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-01 21:02:49 +00:00
Ryan Leavengood
db4da598fc Small refactoring and cleanup:
* Add constants for the length of the resize area on a window border and for 
   the size of the resize knob on document windows.
 * Clarify some comments.
 * Change instances of thumb to knob in reference to the resize knob. It was
   called knob in some places and thumb in others.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-01 18:57:18 +00:00
Jérôme Duval
0c83d63537 added BasicCommandLineTools in current profiles.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-01 18:32:19 +00:00
Jérôme Duval
3ec0d375d1 Removed sed (ticket #5501).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35704 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-01 18:27:52 +00:00
Adrien Destugues
b05b467bc4 Add japanese catalog for keymap preference panel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-03-01 18:22:20 +00:00