Commit Graph

42588 Commits

Author SHA1 Message Date
Alex Smith
192af9e0af Changed addr_range to use uint64.
I've tested this change on x86, causing no issues. I've checked over the code
for all other platforms and made the necessary changes and to the best of my
knowledge they should also still work, but I haven't actually built and
tested them. Once I've completed the kernel_args changes the other platforms
will need testing.
2012-06-20 14:11:24 +01:00
Alex Smith
93cb9538be Don't store a KMessage in kernel_args for the boot volume, only the buffer address/size.
Pointers in kernel_args are going to be changed to unconditionally use 64-bit
storage (to make kernel_args compatible with both the x86 and x86_64 kernels).
KMessage stores a pointer to its buffer, however since KMessage is used
outside of the boot code it is undesirable to change it to use 64-bit storage
for the pointer as it may add additional overhead on 32-bit builds. Therefore,
only store the buffer address and size and then construct a KMessage from
those in the kernel.
2012-06-20 11:53:47 +01:00
Alex Smith
7417d5ed8d Made the bootloader search for both kernel_x86 and kernel_x86_64 when built for x86 or x86_64. 2012-06-20 10:44:38 +01:00
Alex Smith
cfd1c1802f Add -march=pentium to boot {CC,C++}FLAGS on x86_64, prevents GCC from generating SSE code. 2012-06-19 21:54:40 +01:00
Alex Smith
7c488bff70 Modified the floppy boot image target so that it can be used to build an x86_64 boot image.
* set_haiku_revision doesn't currently support ELF64, don't use a
  revisioned kernel image on x86_64 for now.
* Don't try to build add-ons for x86_64 yet.
2012-06-19 21:36:13 +01:00
Alex Smith
e114f50ddd Fixed bootloader build under x86_64. 2012-06-19 20:38:53 +01:00
Alex Smith
6296722bc0 Fixed incorrect link address in kernel linker script. 2012-06-16 11:20:05 +01:00
Alex Smith
043c61dde5 Added stub versions of everything needed to build the kernel.
The whole kernel now builds and there are no undefined references when
linking, I just need to fix some strange relocation errors I'm getting
(probably a problem with the linker script) and then I'll have a kernel
image.
2012-06-15 22:50:59 +01:00
Alex Smith
146f966921 Fixed a mistake in 11d3892, changed a parameter type to addr_t that shouldn't have been changed. 2012-06-15 22:31:24 +01:00
Alex Smith
8c0e3c951a Add -mno-red-zone to the kernel CCFLAGS/C++FLAGS.
The red zone is a 128-byte area below the stack pointer specified by the
AMD64 ABI that can be used by leaf functions for their stack frame without
modifying the stack pointer. It is guaranteed not to be modified by signal
handlers. This cannot be used in kernel mode code, as an interrupt handler
could overwrite it, so stop GCC from generating code that uses it.
2012-06-15 20:05:25 +01:00
Alex Smith
73f27ecd3a Implementations of some libroot functions for x86_64.
These are the functions required by the kernel. These are all full
implementations except for system_time(), which will be implemented later.
2012-06-15 19:57:21 +01:00
Alex Smith
f4f0f79b66 Merge branch 'master' into x86_64 2012-06-15 16:10:53 +01:00
Alex Smith
82b4b37172 Added a TODO in to say that {,u}int64 should be changed to long on x86_64. 2012-06-15 16:09:25 +01:00
Alex Smith
4be4fc6b1f More 64-bit compilation/safety fixes. 2012-06-15 16:04:20 +01:00
Alexander von Gluck IV
e949483f2c mesa: Remove no longer needed patch
* Commited upstream to Mesa in:
  http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb3054c849d84
2012-06-14 08:19:33 -07:00
Alex Smith
40e20c1076 Added gensyscalls headers for x86_64. 2012-06-14 14:18:50 +01:00
Alex Smith
11d3892d28 Changed ICI data argument types from uint32 to addr_t.
Since ICI arguments are used to send addresses in some places, uint32 is
not sufficient on x86_64. addr_t still refers to the same type as uint32
(unsigned long) on other platforms, so this change only really affects
x86_64.
2012-06-14 13:06:55 +01:00
Alex Smith
ced5037133 Merge branch 'master' into x86_64 2012-06-13 17:47:34 +01:00
Alex Smith
f76bc433e1 Added some x86_64 system/kernel headers and kernel Jamfiles.
* Not all of these headers are correct yet, just adding what's necessary
  to get things to compile for the time being.
2012-06-13 17:45:22 +01:00
Alex Smith
0e88a887b4 First round of 64-bit safety fixes in the kernel.
* Most of this is incorrect printf format strings. Changed all strings
  causing errors to use the B_PRI* format string definitions, which
  means the strings should be correct across all platforms.
* Some other fixes for errors, casts required, etc.
2012-06-13 17:42:46 +01:00
Alex Smith
23d878482e Made *_addr_t {,un}signed long rather than long long on x86_64.
* long is 64-bit on x86_64.
* Makes addr_t compatible with size_t.
2012-06-13 17:00:57 +01:00
Humdinger
d8bddb6d01 Cosmetic change: Set minimal size of TouchPad sliders. 2012-06-13 17:16:52 +02:00
Matt Madia
a2a39af76f Adjusted size of @alpha-* 2012-06-11 22:26:30 -04:00
Matt Madia
deb33d666a Disabled stripping of debug information from optional packages.
Fixes #8603
http://www.freelists.org/post/haiku-commits/r41812-in-haikutrunkbuild-jam-scripts,2
2012-06-11 19:14:27 -04:00
Alex Smith
0d916c34c4 x86_64: added linker script for the kernel.
* Based on the x86 one, changes made to match the default GCC x86_64 linker
  script and correct kernel load address added.
* Not tested yet as the kernel doesn't fully compile.
2012-06-11 12:49:14 +01:00
Alex Smith
2f3e39bebf Fixed copyright date on arch_config.h. 2012-06-11 12:09:36 +01:00
Alex Smith
07b33113a3 Merge branch 'master' into x86_64 2012-06-11 12:01:35 +01:00
Ryan Leavengood
30e7dbeb72 Save and load scrollbar settings in app_server.
Added to the appearance settings since menu info was already there.
2012-06-11 00:10:22 -04:00
Alexander von Gluck IV
b937bd211c ahci: Initial TRIM work
* Since ahci devices are emulated as scsi, we use
  the SAS style TRIM call (unmap in scsi write same)
* This prevents the need for special, one off trim
  calls.
* We don't perform the TRIM just yet, just laying
  the goundwork for the request.
2012-06-10 18:47:13 -07:00
Alexander von Gluck IV
372863638f scsi: Add write same SCSI operation
* Will be used for TRIM
2012-06-10 18:47:12 -07:00
Philippe Saint-Pierre
163cd4bf53 Prevent ressource leak in time preferences (ntp update) CID 702055. 2012-06-10 16:57:45 -04:00
Ryan Leavengood
9609fb5050 Double scrollbar thumbs have returned!!!
Let the flamewar begin.
2012-06-10 00:23:51 -04:00
Ryan Leavengood
b9d90cb109 Remove superfluous check for Height() since it is checked above 2012-06-10 00:21:06 -04:00
Ryan Leavengood
585d44f283 Improve the workspace view tab rendering.
Before this the height and width of the tab would jump around as the window was
moved. In addition there was an off-by-one error which caused right-aligned
tabs to not be drawn right (as reported in ticket #4615, which this fixes.)
2012-06-10 00:14:21 -04:00
Ryan Leavengood
70a5df3878 Use the correct color for the tab border for inactive windows.
Before this the active window border color was used, resulting in ugly inactive
window tabs if the active and inactive border colors were quite different.

This was not noticed before because the defaults are two very similar grays.
2012-06-09 22:27:29 -04:00
Ryan Leavengood
20b3f78f8d Draw the chosen color next to the name of system colors.
I copied BStringItem::Draw then modified it. I couldn't find a clean way
of doing it otherwise, since the color box drawing needs to occur between the
selection and text drawing, and the text needs to be offset while the selection
shouldn't be.
2012-06-09 17:12:42 -04:00
Humdinger
131161928c Small correction to heading 2.1 in Installer text 2012-06-09 18:29:52 +02:00
Ryan Leavengood
88495a828e Focus the Team Monitor list view when the window shows.
This allows immediate use of the arrow keys to navigate the list.

Fixes ticket #8564.
2012-06-08 23:24:57 -04:00
Ryan Leavengood
e5cca9b6cf Add Team Monitor shortcuts for kill and quit.
Fixes ticket #8561.
2012-06-08 23:23:50 -04:00
Alexander von Gluck IV
581f28eb9b ahci: Add pretty name to AHCI devices
* Naming is a little rough, but I can't think of
  anything better.
* Two less "Unknown Devices" in Device application
2012-06-07 15:00:13 -07:00
Alexander von Gluck IV
b18a4c6073 mesa: Update Mesa optional package to latest mainline mesa 2012-06-07 12:05:53 -05:00
Alexander von Gluck IV
b069fa30d9 mesa: Update rtasm fix to work with latest mainline Mesa 2012-06-07 11:53:51 -05:00
Alexander von Gluck IV
7c5d8dd2a8 mesa-o-matic: Fix bug exposed by new Mesa build
* While we want to exclude include/GL (because we
  get the whole directory) we also exclude include/GLES2
  which gets picked up in newer Mesa code
* Add a slash on the end of the grep to make sure we omit
  *just* include/GL
2012-06-07 11:52:25 -05:00
Alexander von Gluck IV
7c8e561489 ATA: Display trim support of ata disk 2012-06-06 12:35:12 -05:00
Axel Dörfler
2996f64881 Implemented a value hint, changed colors.
* When you press on a value, that value will be shown with a
  highlighted background across the board until another value is set.
* Changed the colors to those from the Haiku logo rather than the BeOS
  logo. This makes it a bit more colorful which one might need to get
  used to -- comments welcome.
2012-06-06 00:35:51 +02:00
Axel Dörfler
0ba36860ad Added a few convenience methods. 2012-06-06 00:34:51 +02:00
Axel Dörfler
bea2387b68 Made constants static, coding style cleanup. 2012-06-05 23:15:54 +02:00
Jérôme Duval
75d1324b91 ntfs: fix double free #8484 2012-06-05 21:55:41 +02:00
Alexander von Gluck IV
966df2f98b cpuidtool: Style cleanup 2012-06-04 11:05:36 -05:00
Alexander von Gluck IV
548b1a4988 cpuid: Rework AMD CPUID numbers
* If family is 0xF, we grab extended family and model
  like Intel does
* Idenfify AMD cpu's more correctly
2012-06-04 11:01:39 -05:00