Commit Graph

51534 Commits

Author SHA1 Message Date
Fredrik Holmqvist
3594baabf8 Add get_name and fix get_next_object.
TODO: Need to add defines or enum for nameType.
2014-09-14 00:01:10 +02:00
Stephan Aßmus
e0881f2139 HaikuDepot: Fixed reading bigger screenshots
* Increase the RAM limit to 128K per screenshot
 * Reduce retrieved size to 320 pixel wide
 * Don't expect to be able to read the stream in one call,
   read it in 4K chunks.
 * Print some errors in this code-path to stderr.
2014-09-13 23:03:58 +02:00
Stephan Aßmus
ab172803ff HaikuDepot: Improve filter UI, fix pkg translations
* The categories and other filter options are orthogonal. Don't
   force the user to choose between real categories and for example
   "installed" or "available" in the same drop-down. I've removed
   (for now) the Options main menu. There are now four small check-marks
   below the filtering drop-downs: Available, Installed, Development and
   Source Code. These enable showing the respective packages in the list
   view. Only "Available" is checked by default. This changes the default
   behavior to show only not-yet-installed packages. This change puts
   the filtering options in one place, the showing of development or
   source code packages is not "hidden somewhere else" anymore. I am not
   so happy with the additional row, however, I am also thinking about
   using icons instead of the checkmarks.
 * Fixed finding the suitable package translation for summary and
   description. For example, WonderBrush now has a German translation.
2014-09-13 23:03:56 +02:00
Puck Meerburg
8bfb30ceb3 BPartition: Move dev_t return value to an optional parameter
Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2014-09-12 18:07:53 +12:00
Janus
fcc65d4a33 Fix #6865: [Tracker] Use default checkboxes for permissions 2014-09-12 17:11:49 +12:00
Paweł Dziepak
b52b104798 boot/x86_64: convert address of previous_debug_output
Together with the previous commit should fix #10535.

Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
2014-09-12 01:09:17 +02:00
Paweł Dziepak
c343f75d76 boot/x86_64: call debug_cleanup() before preparing mmu data
long_mmu_init() prepares initial paging structures for 64 bit kernel.
Once that function completes bootloader cannot allocate any memory
that needs to be passed to the kernel.

Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
2014-09-12 01:09:14 +02:00
Adrien Destugues
21de8955c8 Release HaikuWebKit 1.4.4. 2014-09-11 18:30:34 +02:00
Fredrik Holmqvist
c262488a26 Codestyle. 2014-09-10 22:31:40 +02:00
Fredrik Holmqvist
15d8a434d0 Add function to walk through children.
Without losing my sanity that is.
ACPI API refactoring will happen some day.
2014-09-10 21:39:46 +02:00
Paweł Dziepak
669e389c33 tools: data_to_source: fix types of generated variables
Both data array and its size should be constant so that GCC can do
as much as possible at compile time and it is safe to use them in
static assertions.

This patch also changes the type of size constant to size_t which
more appropriate and uses sizeof() to determine the size of the
array.

Fixes build breakage introduced in e547662664.

Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
2014-09-10 16:17:33 +02:00
Jessica Hamilton
219f6c904a Fix issues with generation of mbr.bin for gcc4 & anyboot targets 2014-09-10 22:47:32 +12:00
Jessica Hamilton
e547662664 stage1/2 loaders: auto-generate binary files. Fixes #10723 2014-09-10 22:00:30 +12:00
Michael Lotz
1d3ba85ae6 Update x86 qemu package to one with native Haiku backend. 2014-09-10 00:58:57 +02:00
Stefano Ceccherini
6becb0c119 Network Preflet: Improve readability. No functional change. 2014-09-09 23:26:58 +02:00
Stefano Ceccherini
c804ffd3b7 Documentation: Fix typo in BString 2014-09-09 23:05:18 +02:00
Stefano Ceccherini
b3b23acfd0 Network Preflet: GetDNSListFromString: missing return.
Accept a const char* instead of a BString.
2014-09-09 23:05:17 +02:00
Stefano Ceccherini
b42bd0e487 Network Preflet: Add Tooltip for DNS Servers
Added a tooltip, In case it's not clear how to enter the dns servers list.
2014-09-09 23:05:16 +02:00
Stefano Ceccherini
177ff99dd3 Network Preflet: Renamed CustomTextControl to RestrictedTextControl.
Removed commented code.
2014-09-09 23:05:16 +02:00
Stefano Ceccherini
4613cf2600 Network Preflet: Allow more than 2 DNS
Change the way DNS are entered: now the user can enter multiple
DNS servers addresses separated by a comma. Actually we handle
also spaces or semicolon.

Network Preflet: Fix GetDNSListFromString
2014-09-09 23:05:15 +02:00
PulkoMandy
0c65f35f47 u-boot: sync console implementation from raspberry port
* VT100 is much more common than VT52 which the u-boot port was
previously using (a legacy of the Atari m68k port)
 * Implement serial_getc (again, code is identical to raspberry port...)
so the boot menu can be used over the serial port. The enter key is
recognized, arrows currently aren't.
2014-09-09 22:06:21 +02:00
PulkoMandy
19ad221e37 Raspberry_pi: fix VT100 console driver
* Cursor coordinates are 1-based, not 0-based
 * Color change was disabled and broken

This implementation of our console over VT100 is generic and should be
moved out of the raspberry-pi specific folder. However, leaving it there
for now as we will have some bigger reorganization a swe add FDT support
here.
2014-09-09 22:06:20 +02:00
Jérôme Duval
549b878fa6 Update qemu package for x86_64 2014-09-09 18:11:09 +02:00
Stephan Aßmus
36a9b55716 HaikuDepot: Rating related fixes.
* Fixed retrieving rating summary for the list view.
 * Rating and command are optional in the web app (or probably you need
   to specify at least one of them). Handle ratings with just the comment
   but no rating in average calculation.
2014-09-08 22:50:29 +02:00
Stephan Aßmus
7e7ec8f3a9 PackageInfo: Small coding-style cleanup. 2014-09-08 22:50:28 +02:00
Rene Gollent
360431e694 Tracker: Fix #11193.
Fix regression introduced in commit 2f60dea5: BSymlink::ReadLink()
returns a byte count in the success case, which ThrowOnError() does
not anticipate. Consequently, attempts to copy symlinks would fail.
2014-09-07 21:37:39 -04:00
Ithamar R. Adema
1819aa71ee ARM: sync up VM code with x86
No big functional reason for this, but rather keep it in sync now
then have to do lots of work later on, when there are major changes.
Once I have it fully fleshed out for ARM, I might take a look if
we can generalise it a little more, as there's lots of code
_exactly_ the same for both platforms (and other platforms in
progress using the same code).
2014-09-08 00:52:33 +02:00
Fredrik Holmqvist
95b6779381 Format code, add display device base.
Still very much work in progress.
2014-09-07 21:20:35 +02:00
Ithamar R. Adema
f1d7e394e4 ARM: update TODO list once again
* stackcrawl is implemented
* B_MAX_CPU_COUNT is no more
* add some bootloader TODOs
2014-09-07 21:14:23 +02:00
Ithamar R. Adema
eea45d0a32 ARM: cleanup of bootloader memory mapping
* Removes default mapping of a portion of the RAM (will be done
  as needed)
* Passes on the page directory area to kernel, so on early vm init
  the kernel can use the area for pagetable allocation.
* Leaves it to the platform to pass in physical memory range(s). This
  will ultimately come from FDT.
* Fix long standing issue with allocation of the heap, potentially
  causing other part of the bootloader to overwrite the heap.
* Implements pagetable allocator in kernel for early vm mapping.

This fixes the first PANIC seen, we now just get the same one later
on when the VM is up... more to come...
2014-09-07 20:56:15 +02:00
Ithamar R. Adema
3e450daa1c ARM: remove the loader from the memory map table
We have _start/_end symbols to mark our start and end, use those
to determine where we are loaded. We're slowly getting closer to
a fully dynamic handling of our memory map!
2014-09-07 20:56:15 +02:00
Ithamar R. Adema
e3020a5039 ARM: remove initrd handling from mmu code
Let the platform mmu_map_physical_memory the initrd region, and
reserve it before calling mmu_init. This removes another hardcoded
address, since e.g. U-Boot gets the address from the uImage file.
2014-09-07 20:56:14 +02:00
Ithamar R. Adema
0a163b65c7 ARM: define bootloader stack in linker script
This removes the need for the whole HAIKU_BOARD_LOADER_STACK_BASE
sing and dance, since it is always included in the bootloader binary
itself.
2014-09-07 20:56:14 +02:00
Ithamar R. Adema
6fb65b9dfe ARM: remove section handling TODO; no need for it
We will never use sections anyway..
2014-09-07 20:56:14 +02:00
Stefano Ceccherini
c53c1faf56 Network Preflet: Also show the hardware address 2014-09-07 20:51:32 +02:00
Ithamar R. Adema
6048591e9d Revert "Added check to ensure KDL does not include frames beyond kernel entry in the backtrace. This prevents KDL from faulting when printing backtrace on ARM."
This reverts commit 3fbb24680c.

As I mentioned in #11131, this fix is not correct, and works around
the problem. The real reason was that arch_debug_call_with_fault_handler
was not working properly, so the fault handler went crazy.

With commit eb92810 that is fixed so this can be reverted.
2014-09-07 19:15:01 +02:00
Ithamar R. Adema
eb92810edc ARM: fix arch_debug_call_with_fault_handler
This fixes the problem with KDL freaking out when doing a stacktrace
and having its fault handler triggered. Have no clue how this could
have worked before, but it did :P
2014-09-07 19:14:29 +02:00
Stefano Ceccherini
365f14bfbd Network Preflet: Implement an IPV4TextControl which only allows numbers
and use it instead of the regular BTextControl.
Unfortunately it doesn't block multi-byte characters (to do that we
should create a subclass of BTextView and override InsertText()).
2014-09-07 19:05:18 +02:00
Fredrik Holmqvist
8516e6a924 Rename display_controls to display_adapter
ACPI talks about display_adapters, and we will likely have displays
as child nodes. Displays will be attached to an adapter.
2014-09-07 19:02:06 +02:00
Michael Lotz
42a91653ba kernel: Fix missing else in dump_page_queue debugger command.
The entered page queue address would always be overwritten. Pointed
out by CID 610504.
2014-09-07 13:18:03 +02:00
Stefano Ceccherini
d94f82498f Network Preflet: Call _SetConfiguration(NULL) in _BuildInterfacesMenu()
if no interface is present, thus effectively disabling the other
controls. Also if there is only one interface, select that one.
2014-09-07 08:17:51 +02:00
Stefano Ceccherini
7da4809bfc Network Preflet: EthernetSettingsView::_BuildInterfacesMenu()
needs to call SetTargetForItems(), otherwise selecting interfaces
in the popup menu doesn't work.
2014-09-07 07:51:29 +02:00
Stefano Ceccherini
5bde266926 Fix copy/paste error which prevented correct functionality. 2014-09-07 07:51:28 +02:00
Jérôme Duval
fccfeff29e listarea: fixes warnings and output on x86_64.
* columns aren't correctly aligned anymore atm.
2014-09-06 23:57:46 +02:00
Stefano Ceccherini
af7978ef01 Network Preflet: watch for network interfaces changes.
Not yet 100% working.
2014-09-06 23:24:37 +02:00
Rene Gollent
cab2a2ba35 Debugger: Fix #11204.
- When waiting for a thread stack trace to be acquired, in some circumstances
  it was possible for us to not re-acquire the Team lock before moving on to
  parsing and writing out the information. This could potentially lead to race
  conditions when retrieving some of the Team's data, and ultimately crashing
  while writing out report data.
- Add missing error check in _DumpStackFrameMemory().
- Delete team data semaphore on exit.
2014-09-06 16:48:45 -04:00
Rene Gollent
7b5a544edb Debugger: Fix CID 1223239.
- Rework part of report generator to add missing memory allocation
  error checks.
2014-09-06 16:48:30 -04:00
Paweł Dziepak
ece6f8ba5d boot: remove check against large gaps between elf segments
As discussed on the ML the limitation of the gap between segments
imposed by this check is completely artifical and pointless.

Signed-off-by: Paweł Dziepak <pdziepak@quarnos.org>
2014-09-06 19:38:13 +02:00
Jérôme Duval
bfe33f1603 Add qemu and dependencies for x86 and x86_64. 2014-09-06 13:19:30 +02:00
Matej Horvat
c1fcde6665 Set the archive bit on new or modified directory entries (but not subdirectories)
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2014-09-06 12:57:49 +02:00