Commit Graph

55575 Commits

Author SHA1 Message Date
François Revol
495efc382b loader: Drop the HashMap for partition lookup by id
The HashMap constructor was called before the heap is initialized,
ending up calling malloc from the OpenHashMap constructor.

Oddly it was still working on x86 but broke other platforms.

Instead we add a Lookup() static method to Partition,
which by default walks gPartitions for the id,
and recursively calls itself on the children lists.

This means we must add a partition even temporarily to gPartitions
before Scan()ing it though.

Signed-off-by: François Revol <revol@free.fr>
2016-09-02 19:02:33 +12:00
Fredrik Holmqvist
735f1daee9 EFI: Implement console code. 2016-09-02 19:02:32 +12:00
Fredrik Holmqvist
bd0604764e Setup -fno-pic or -fpic in Architecture Rules.
EFI boot needs -fpic but all boot code was built with -fno-pic.
This is now set accordingly in HAIKU_BOOT_CCFLAGS and
HAIKU_BOOT_C++FLAGS.

Also setup compile flags for EFI platform.
2016-09-02 19:02:32 +12:00
Fredrik Holmqvist
211483cb51 EFI: Initial test EFI application
* Only set HAIKU_BOOT_PLATFORM to bios_ia32 if not defined
* Add gnuefi build feature
* Introduce BOOT_LDFLAGS, and move options for passing to linker
  into ArchitectureSetup
* x86_64 compile fixes for warnings in boot loader
* loader/elf.cpp: don't include ELF32 support when targeting EFI
* relocation_func.cpp: copy of the relocation code from gnuefi
  to make _relocate extern "C", and avoid including <efilib.h>
* boot_loader_efi.ld: copy of gnuefi's elf_x86_64_efi.lds,
  modified to include support for C++ constructors, etc. Keep in
  sync with the gnuefi package

Signed-off-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2016-09-02 19:02:29 +12:00
Fredrik Holmqvist
20e11028aa Don't use partition pointer as id, as it only works on 32bit platforms.
Use a counter to generate the partition id, and store the id to partition
lookup in a hashmap instead.
2016-04-14 19:18:21 +12:00
Jessica Hamilton
ddef999990 Add gnuefi package for x86_64. 2016-04-14 13:39:43 +12:00
Rene Gollent
0a1838cb44 Debugger: Implement Create/Attach on LocalTargetHostInterface.
LocalTargetHostInterface:
- Implement the create and attach functionality. In theory, this completes
  everything that's needed in order to adjust the main application to do
  all debugger interface creation via the roster.
2016-04-13 20:10:19 -04:00
Rene Gollent
7dde731f40 Debugger: Add missing roster method implementations.
TargetHostInterfaceRoster:
- Implement counting/retrieving interfaces, as well as requesting the
  creation of a new instance.
2016-04-13 20:10:17 -04:00
John Scipione
fbf9ac1ce4 ScreenSaver: Center window on screen 2016-04-13 15:50:30 -07:00
John Scipione
a60b9ee3ac Screensaver: Set explicit min width for fSettingsView
Also make some new const variables to make some math more opaque
i.e. don't use as many magic constants.

This works great at 12pt font size, decenly at all other sizes. There is a
bit of jitter at 13pt and 24pt for some reason when moving from a default
settings view to another settings view.
2016-04-13 15:50:30 -07:00
John Scipione
4f0eceacb4 Screensaver: Move Puck up alphabetically 2016-04-13 15:50:30 -07:00
John Scipione
53dc6af917 Screensaver: Blackness not Darkness 2016-04-13 15:50:30 -07:00
John Scipione
e9208b6876 ScreenSaver: Rename BuildScreenSaverDefaultSettingsView
...to just DefaultSettingsView

It is just as obvious what it does in context, but shorter.

Rename the function it contains from
BuildDefaultScreenSaverSettingsView to
BuildDefaultSettingsView
2016-04-13 15:50:30 -07:00
John Scipione
3801c37b90 Screensaver: Update Default Settings View to use Layout
and standard insets so that they match other screen savers
2016-04-13 15:50:30 -07:00
John Scipione
63d59e1081 Nebula: Use default insets
Simplify layout
2016-04-13 15:50:11 -07:00
John Scipione
523f450de0 Nebula: Pass view Bounds() instead of Frame() into SettingsView
This was why the view was not where it should be.
2016-04-13 15:41:40 -07:00
John Scipione
e5147b1d89 Nebula: Set View color in constructor
We don't need to wait for AttachedToWindow for view color
unlike high and low color.
2016-04-13 15:40:23 -07:00
John Scipione
a6ab3387c7 Nebula: Style fixes
80 char limit
add/update some pragmas
2016-04-13 15:40:22 -07:00
John Scipione
ebfc2fc68e Gravity: Use LayoutBuilder directly on view 2016-04-13 14:22:47 -07:00
John Scipione
263e936e87 Gravity: Fixup scroll bar range 2016-04-13 14:13:23 -07:00
John Scipione
3456c51030 Gravity: remove extra spaces 2016-04-13 14:13:23 -07:00
Jérôme Duval
319b17f5cc Update glew packages for x86. 2016-04-13 21:14:35 +02:00
Humdinger
7c265be0d4 Updated Filer package
The link to Filer in $binDir pointed into the abyss...
2016-04-13 19:19:35 +02:00
Jérôme Duval
22e9780d40 Add graphite2 and harfbuzz packages for x86.
* Update glib2 and cmake packages for x86.
2016-04-13 19:12:06 +02:00
Jérôme Duval
0ca0c372c5 Updated gcc packages for x86_64. 2016-04-13 18:56:07 +02:00
John Scipione
a80db836bf Appearance: Backport changes from Gravity back to Appearance
Make the square a rectangle with Golden Ratio
Use Set*UIColor() instead of Set*Color(ui_color())
Use B_CONTROL_BORDER_COLOR instead of hardcoding
Sort out copyright -- Haiku, Inc. didn't exist before 2003
Use variable width spacing based on font size from ControlLook
Removed unnecessary #includes

Did a little pixel pushing to make sure that everything is spaced
nicely and to ensure everything lies on integer pixel boundries.
2016-04-12 20:54:43 -07:00
John Scipione
d1d1535a73 Gravity: Use Set*UIColor() instead of Set*Color(ui_color())
Thanks jessicah!
2016-04-12 20:14:29 -07:00
John Scipione
ad5c346a3f Gravity: Remove copy pasta in copyright 2016-04-12 20:07:22 -07:00
John Scipione
cd91a71562 Gravity: update copyright
This was meant to go in the last commit
2016-04-12 19:36:36 -07:00
John Scipione
4b83455774 Gravity: Add ColorItem and RainbowItem
instead of using boring StringItems

ColorItem draws a small colored rectangle left of the string
RainbowItem draws a rainbow colored rectangle left of the string
2016-04-12 19:31:00 -07:00
John Scipione
89972206d8 Gravity: spaces => tabs in Jamfile 2016-04-12 19:17:10 -07:00
Dario Casalinuovo
598880fc30 MixerCore: Remove wrong flag 2016-04-12 02:54:36 +02:00
Dario Casalinuovo
b0dd37b7a0 AudioMixer: Review and rework synchronization
* The event time is managed through the main node control
loop.
* Make the mix thread to activate only when needed.
* Make the locking more simple and remove a race condition,
this will make the thread to be more silent too.
2016-04-12 02:33:48 +02:00
Dario Casalinuovo
ec2c5619c1 AVFormatWriter: Add more error checking
* Check before to write chunks if the header was correctly
written, the same happens for track infos, even if the code
doesn't support it.
2016-04-12 02:26:15 +02:00
Dario Casalinuovo
9074223db0 media_server: Print unknown messages notice only when debugging
* Remove unneeded noise caused by progress notifications.
* Don't print the message to screen.
2016-04-12 02:26:14 +02:00
Jérôme Duval
59d2bf34ce Update cmake package for x86_64. 2016-04-11 22:13:20 +02:00
Rene Gollent
d9e4b4cec5 Debugger: Add initial version of TargetHostInterfaceRoster.
TargetHostInterfaceRoster:
- Provides a singleton interface to enumerate both the available interface
  types, and all currently running instances. This will provide clients like
  the TeamsWindow with a way to present the user with all available types,
  as well as the necessary information to configure/instantiate them.

TargetHostInterfaceInfo:
- Provides an information object for each available type of interface,
  including an optional description of the settings needed to configure it.
  Callers can then use this to provide a configuration UI as needed, and
  once complete, request a corresponding interface instance for the desired
  configuration.

{Local}TargetHostInterface:
- Add Settings parameter to Init(). Adjust LocalTargetHostInterface
  accordingly.

LocalTargetHostInterfaceInfo:
- Implementation of TargetHostInterfaceInfo for the local system case.
2016-04-10 17:03:10 -04:00
Rene Gollent
7442abd1c5 Debugger: Further additions to TargetHostInterface.
TargetHostInterface:
- Provide interface for tracking list of TeamDebuggers attached to this
  particular interface instance. Will eventually replace the current
  mechanism where the Debugger app tracks this directly.

LocalTargetHostInterface:
- Cleanups.
2016-04-10 17:03:07 -04:00
Alexander von Gluck IV
0421aa8cbe bluetooth: Add h2generic driver to image 2016-04-10 11:28:42 -05:00
Alexander von Gluck IV
ca7e8e5b20 bluetooth: Add kernel stack to image 2016-04-10 11:18:57 -05:00
Alexander von Gluck IV
e91079d501 bluetooth/server: Don't show blackboard on start 2016-04-10 09:27:44 -05:00
Alexander von Gluck IV
94215f0da3 bluetooth: Give server a simpler tray icon 2016-04-10 08:53:00 -05:00
Alexander von Gluck IV
05e1165520 h2generic: Stop using btDebug + style fixes 2016-04-10 01:01:07 -05:00
Alexander von Gluck IV
c58e1d7feb l2cap: Fix x86_64 build and refactor trace 2016-04-10 00:49:32 -05:00
Alexander von Gluck IV
e1e291b063 bluetooth: Drop vanity trace colors 2016-04-10 00:49:31 -05:00
Jérôme Duval
9bab67590e Fixed package requirements for haiku x86 and x86_64. 2016-04-10 07:18:35 +02:00
Alexander von Gluck IV
1f2fa6cd09 bluetooth: Refactor debugging and trace calls
* The old debug system was too complex and made
  troubleshooring difficult. (it also was unique
  like a snowflake... which we don't want)
* Move to the classic TRACE / ERROR a large majority
  of the code has changed to.
* I like trace statements, but drop some obvious ones
* Fix style issues along the way
2016-04-09 23:40:54 -05:00
Alexander von Gluck IV
a4a85baea1 bluetooth/preflet: Fix x86_64 build 2016-04-09 21:43:53 -05:00
Alexander von Gluck IV
837845c53d bluetooth/hci: Add missing api_version 2016-04-09 21:35:55 -05:00
Alexander von Gluck IV
ebffd5b138 bluetooth/btCoreData: Add missing api_version 2016-04-09 21:34:29 -05:00