Commit Graph

43262 Commits

Author SHA1 Message Date
Philippe Saint-Pierre
8f226f2e87 CID 602195: use sizeof() of structure rather than pointer 2012-07-20 18:31:43 -04:00
Philippe Saint-Pierre
a65ef31585 CID 609036: Avoid to exceed length of string 2012-07-20 18:31:43 -04:00
Philippe Saint-Pierre
cd383c3378 CID 610802: Unchecked return of FindMessage() 2012-07-20 18:31:43 -04:00
Philippe Saint-Pierre
c6df3cf4dc CID 702244: Uninit members were never used 2012-07-20 18:31:42 -04:00
Philippe Saint-Pierre
739ed61c38 CID 709703: Order of ops was unclear, but insignificant 2012-07-20 18:31:42 -04:00
Ingo Weinhold
6d60b554e6 Debugger: Some basic work to get the CLI going
There's an input loop thread which reads and parses command lines and
the infrastructure for registering and executing commands. Currently
only "help" and "quit" commands are implemented.
2012-07-20 23:32:58 +02:00
Ingo Weinhold
0f1f968ffb Debugger: Actually create the CLI, if requested 2012-07-20 23:32:58 +02:00
Ingo Weinhold
af350aa218 Add private shared class ArgumentVector
The parser is based on the FS shell's ArgVector.
2012-07-20 23:32:58 +02:00
Philippe Saint-Pierre
fc4d98a2c0 Coding style fixes, no functionnal changes.
Following comments from Axel about a previous commit of mine.  Sorry Axel for the delay.
2012-07-20 14:28:44 -04:00
Alex Smith
82694bd124 Merge branch 'master' into x86_64
Conflicts:
	headers/posix/arch/x86_64/arch_setjmp.h
	src/system/kernel/cache/block_cache.cpp
2012-07-20 18:33:46 +01:00
Alex Smith
a9fdaec18a Added disk drivers and CD file system modules to the boot image for x86_64.
This adds disk drivers, intel/session partitioning systems, and ISO9660
(+ write/attribute_overlay) modules to the CD/floppy boot image targets
for x86_64. The kernel now detects and mounts the boot CD, and runs up
to attempting to start the boot script.
2012-07-20 17:55:26 +01:00
Alex Smith
7f7e76e461 64-bit compilation fixes for write_overlay and intel partitioning system modules. 2012-07-20 17:53:59 +01:00
Alex Smith
0063d2ba51 Various 64-bit fixes to SCSI and ATA bus managers/drivers.
Mostly compilation fixes, as well as a few 64-bit safety fixes. I've
briefly looked through everything for any obvious issues and fixed
the ones I've found, and it seems like they're working properly, though
there could be some more well hidden ones that I've missed.
2012-07-20 17:47:12 +01:00
Alex Smith
d7ec2fa3bf A couple of format string fixes for tracing printfs. 2012-07-20 17:37:37 +01:00
Alex Smith
1b41387b5f Added missing packed attributes on disk_identifier. 2012-07-20 17:14:17 +01:00
Rene Gollent
fe0407cd46 Fix indentation. 2012-07-20 07:34:11 -04:00
Alex Smith
12bd7812dd Ported PCI module to x86_64.
Uses the x86 architecture code, made fixes to printf formats and a
couple of 64-bit fixes. Only potentially intrusive change is that I've
changed PCI.h to use uint32 rather than ulong. I don't see any way
this would cause any issues, though.
2012-07-20 12:00:20 +01:00
Alex Smith
9d4e925cf0 Support x86_64 in config_manager. 2012-07-20 11:56:15 +01:00
Alex Smith
2865db34c8 Compile msi.cpp for x86_64.
Needed to link the PCI module, not enabling it yet though, I'm not
sure whether everything needed for it is in place yet.
2012-07-20 11:53:46 +01:00
Rene Gollent
0b4ae86086 Fix #8751 and possibly also #7198.
- The cdrecord port was using the wrong path for searching for SCSI
  devices. This led to it failing to find SATA CD drives. Updated
  package by Chris Roberts.
2012-07-19 20:58:57 -04:00
Rene Gollent
1f80f2eec3 Fix #8749.
- When a job needs to go dependent on another job, we no longer use recursion
  to manage the execution stack. Instead the job is simply marked as waiting
  and we execute other jobs with no dependencies in the meantime. When a job
  completes, all dependents are moved back onto the unscheduled list and
  executed as needed.

- Adjustments to ResolveValueNodeJob to handle the now asynchronous nature
  of waiting.
2012-07-19 20:24:52 -04:00
ahenriksson
0237895604 CheckBlocks() calculated the group block incorrectly
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2012-07-20 01:02:05 +02:00
ahenriksson
d9879eddbf A duplicate array with a single value is not allowed
Such arrays could be created by the BFS code between hrev43837 and
hrev43924, and cause the array to not be free'd when the entry is
removed.

The check in _InsertDuplicate() is not changed, as doing an insertion
will actually repair this problem.

Potentially, the code could be modified to handle this state instead,
but since checkfs can fix it, it doesn't seem necessary.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2012-07-20 01:02:03 +02:00
Adrien Destugues - PulkoMandy
f01f7fec8f Merge branch 'master' of ssh://git.haiku-os.org/haiku 2012-07-19 21:01:31 +02:00
Matt Madia
173f54f147 Updated copyright in headers. No functional change. 2012-07-19 18:14:06 +00:00
Axel Dörfler
752f5c972f cache_abort_[sub_]transaction() did not work correctly.
* cache_abort_transaction() left the block dirty which was causing bug
  #8123 as well.
* cache_abort_sub_transaction() did, in addition to not clearing the dirty
  flag, not reset the block's transaction member either if the block was
  not part of the parent transaction.
2012-07-20 00:03:38 +02:00
Axel Dörfler
0579a69564 Added a bit of documentation, minor cleanup.
* Documented the cached_block::transaction, and previous_transaction
  members.
2012-07-20 00:03:37 +02:00
Philippe Houdoin
ca741c4835 Merge branch 'master' of ssh://git.haiku-os.org/haiku 2012-07-19 23:48:23 +02:00
Philippe Houdoin
9be0c9b03c Improve SVG image identification (close #8653)
* add a sniff rule
* until we have an image translator for SVG, and since Web+ is not
  included by default in Haiku images, made Web+ preferred app for SVG images.

Note that for compressed SVGZ (*.svgz), the sniff rule will still fail miserably.
Our sniffer will need decompression support before being able to do that...
2012-07-19 23:46:26 +02:00
Andreas Henriksson
8959a4e0c3 An unused dirty block would put again into the unused list.
* This could cause bug #8123. While this fixes the crash, one underlying
  problem is still there, as dirty blocks should never leave a transaction.
2012-07-19 23:44:25 +02:00
Alex Smith
385d69fc01 Made it possible to build kernel modules for x86_64.
Added the necessary build flags for modules, and added a module (dpc)
to the floppy image for x86_64 builds for testing purposes. The module
gets loaded correctly and its code runs without issue. Only non-trivial
addition is the different method for generating kernel.so, this is
explained in the kernel Jamfile.
2012-07-19 17:53:46 +01:00
Alex Smith
0cbce9aa47 A few 64-bit fixes for ELF/module code. 2012-07-19 12:45:17 +01:00
Rene Gollent
03aa456e2e Fix mouse down handling error.
- When handling a mouse click, the button was hardcoded instead of
  passing the actual button clicked by the user. Spotted by Chris
  Roberts.
2012-07-18 23:21:06 -04:00
Rene Gollent
ed15f1b8fb Fix scrollbar handling when removing rows in BCLV.
- If removing a row results in there no longer being any rows whatsoever
  visible, force a scroll back into the visible range. Fixes #8287.
2012-07-18 23:02:30 -04:00
Scott McCreary
af2f75a016 Updated cmake to 2.8.5 2012-07-18 23:38:53 +00:00
Scott McCreary
0783fe388d Updated build for LibXML2 2012-07-18 23:37:00 +00:00
Scott McCreary
95c8d9513a Updated build for XZ-Utils 2012-07-18 23:33:36 +00:00
Scott McCreary
1820d4fd15 Added XZ-Utils as a dependency for LibXML2 2012-07-18 23:32:47 +00:00
Rene Gollent
3a5779744e Handle compound node values in variables view.
- If the node we're looking at is a compound node, retrieve its location
  and show that as the value with an indicator to clarify that it's an object.

- Minor tweaks to tooltip format.
- Style cleanups.
2012-07-18 18:44:56 -04:00
Rene Gollent
666222d3fd Resolve register names, print memory piece size information. 2012-07-18 18:44:55 -04:00
Rene Gollent
2216ccb7e2 Implement support for tooltips in VariableView. Implements #8286.
- These show the memory or register location(s) of the variable over which
  the mouse is hovering.
2012-07-18 18:44:54 -04:00
Rene Gollent
489cc35661 Add Tooltip support to TreeTable. 2012-07-18 18:44:53 -04:00
Adrien Destugues - PulkoMandy
8c115d4c5f Merge branch 'master' of ssh://git.haiku-os.org/haiku 2012-07-18 18:12:41 +02:00
Fredrik Holmqvist
a2e7d8df7b callout_schedule uses ticks as timeunit, not usecs.
As suggested by Rene Gollent, we used ticks as usecs.
2012-07-18 17:09:36 +02:00
Fredrik Holmqvist
4feeeb4a8f Don't write wast amounts of debug info about scanning. 2012-07-18 15:32:58 +02:00
Fredrik Holmqvist
19d67b5513 This is set in opt_wlan.h, and should only be done in one place. 2012-07-18 15:32:58 +02:00
Adrien Destugues - PulkoMandy
c9f321ebc7 Merge branch 'master' of ssh://git.haiku-os.org/haiku 2012-07-17 18:17:08 +02:00
czeidler
ee3a1ebebf Fix possible crash. 2012-07-17 11:31:45 +12:00
Adrien Destugues - PulkoMandy
816e3cb649 Merge branch 'master' of ssh://git.haiku-os.org/haiku 2012-07-16 19:57:30 +02:00
Fredrik Holmqvist
73fc635b3d Tick at 1000Hz not 1MHz.
Our FreeBSD networking code defined hz to 1MHz and 1 tick = 1 / hz,
but the clock code ticked 1 tick at 1000Hz.

This caused all calculations that are done on ticks, autonegotiation
and wlan scanning to be done very often as FreeBSD uses 1000 Hz
(100Hz for ARM). Defaults for autonegotiation is 5 and 17 ticks.

(Another interesting thing is that callouts are using 8% cpu...)
2012-07-16 13:52:08 +02:00