7227 Commits

Autor SHA1 Mensagem Data
Todd Eisenberger f438346fbe [mp] Refactor mp_sync_exec for upcoming CPU hotplug support
This reworks the internal accounting of which CPUs need to perform
the task to be in terms of a CPU mask rather than a count.  This
allows us to detect that a CPU was unplugged and to stop waiting
for it to execute the task.

Also fix an inconsistency between SMP/non-SMP mp_sync_exec.  On
non-SMP, the task was being executed potentially with interrupts
enabled.

Change-Id: I7c6229f81cc2890558627f3e4b60002e76a938c9
2016-06-16 17:33:22 +00:00
Brian Swetland 1cb2ca1f46 [udev][usb] de-underscore-ize
Change-Id: I8214a1b71cbb0f93b54f5e2520edf4fe00f9a03e
2016-06-15 20:29:24 -07:00
Brian Swetland fe9bae61ec [build] build userspace drivers that live under third_party
This should have happened during the external -> third_party rename.

Change-Id: I02d26a8f01e39ef2be0128698e14c2ddfcf73ed6
2016-06-16 03:00:05 +00:00
Petr Hosek 574027ee96 [gn] Update the GN build to incorporate the recent changes
This includes the underscore removal and the handle-info test.

Change-Id: I117339b85865fbda1e1ad056440b87880138f37b
2016-06-16 02:52:33 +00:00
Petr Hosek 488f07ff21 [musl] Fix includes for sqrt and sqrtf
These got broken when we moved math to third_party.

Change-Id: Ifafc790f15bf3ecfe731eb76ffc9f741131d8e9d
2016-06-16 02:17:38 +00:00
Petr Hosek 2e829568bf [system] Fix broken headers
These were left out during underscore removal.

Change-Id: I254381add50846831f5b02a70f65cbf4a5a5772c
2016-06-16 02:17:24 +00:00
Sean Klein 7977553c38 [mxio] Refactor message validation code, apply human-readable names.
Rather than manually sanity-checking each field of a 'valid'
message, relocate these checks into helper functions. This should also
make the code more readable: it's easy to identify a simple error case
with the condition "!is_message_valid(msg)".

Change-Id: If878b46be00dbf93e1a672ea025fb620ba0b9c28
2016-06-16 02:06:40 +00:00
Sean Klein 766e7d080c [scripts] Allow 'clang-fmt' wrapper to download 'clang-format'
Preventing the use of unpredictable 'clang-format' versions should
reduce the amount of style inconsistencies found in Magenta.

Change-Id: Icfee510fa075813d33ebc878b47ed3971d9cc22a
2016-06-16 02:04:08 +00:00
Brian Swetland ca44825507 [system] re-clang-format now that options are fixed
Change-Id: I05c57ee9c9d76dc4617ae3aa7f7a5c2d775bac45
2016-06-15 18:46:35 -07:00
Brian Swetland 9e4abbce2c [build] enforce specific version of clang format
And ajust .clang-format options to work with the version we fetch.

Change-Id: I58c6d99160eb7820652c68d5d86d864e75f45e3d
2016-06-15 18:45:53 -07:00
Carlos Pizano a3a03239b0 [system][utest] Add missing copyright headers.
Change-Id: Id5afd1dfc09ce3784d5e1347bd5cd2d00b1de3a8
2016-06-15 18:04:00 -07:00
Brian Swetland 817b45e3b8 [system] final round of underscore removal
Change-Id: I4b2f5b4a8fd0d6dcf25e0f2db913313569a15463
2016-06-15 15:20:46 -07:00
Sean Klein eabc861c9c [system][mxio] Discard handles during remoteio handler error.
Currently, when the remoteio handler receives a malformed message, it
sets msg.arg to "ERR_IO", but only discards the handles when the
"msg.hcount" field is malformed. If the "msg.datalen" field is
malformed, then the handles are still sent, along with the "ERR_IO".

If mx_rio_txn sees an error in the "msg.arg" value, it discards all
handles anyway. In the case an error occurs, why not short-circuit and
prevent those handles from being sent in the first place?

Change-Id: I4c1bb9c56dce84e9af40cba701dda7d36a7b30f4
2016-06-15 21:54:51 +00:00
Carlos Pizano 0c066c8201 [magenta] Add syscall to get handle information
status = sys_handle_get_info(handle, topic, out_info);

Two implemented topics

MX_INFO_HANDLE_VALID
	Just returns if the handle is valid.

MX_INFO_HANDLE_BASIC
	Returns the type and the rights and wether is waitable.

Change-Id: I142bb240fa799735276782a2c5d8cbe7adf49bfa
2016-06-15 14:53:25 -07:00
Ankur Mittal 2684f7a9d4 [ulib] Add system calls for getting processor count
Added system call to get processor count.

Change-Id: I0061d139e252a12876a0e7845a0a143c8c403d75
2016-06-15 21:51:41 +00:00
Petr Hosek b2fbb010fa [gn] Update the GN build to include recent changes
This includes the recent musl cleanup and i2c and serialio driver.

Change-Id: Ibb938d9aa2145947f7676978f9c9a86f8a7da7c0
2016-06-15 21:45:21 +00:00
Roland McGrath 79bc563fc1 GN: Top-level bootserver target, new default target
This adds a top-level "tools" target to make it easy to
build (and find) the development host tools (bootserver and
loglistener).  It also changes the top-level default target to
one that includes the host tools as well as the boot image.

Change-Id: I92b16a19efc85e9c8cb6e303849e2c1c651d2b5c
2016-06-15 21:21:31 +00:00
Brian Swetland ca2f4dc8aa [udev] finish de-underscore-izing
Change-Id: I905799b5b0cd141107513713e1e56c410e56fcaa
2016-06-15 13:20:38 -07:00
Brian Swetland 4ebbc5b17e [system] clang-format all of userspace
Change-Id: I6bb6a9187a4af83ca5c0656f05d89aa3a09fa5fa
2016-06-15 13:05:53 -07:00
Brian Swetland 7f324ba733 [udev] de-underscore directory names
Change-Id: Id4249767abf0da0425b55be3446b2f7552b90328
2016-06-15 13:01:44 -07:00
Brian Swetland 49bd56dc56 [gfxconsole] move it to udev
Change-Id: I087de09e2b791f3b7c5f572b2933f98e1ff47929
2016-06-15 12:40:43 -07:00
George Kulakowski e043e2299c [musl] Simplify README text
Change-Id: I3f80395fd070c405ce5c4dfa3517f9a93b1f0db3
2016-06-15 19:27:59 +00:00
Travis Geiselbrecht 16b421f697 [scripts] add the tagit script back, which got dropped from repo move
Looks like an old .gitignore line made it fall out of the transfer.
Remove that line.

Change-Id: I6c6efbbfb82b99f521dbdecc41988a88dfdf08d1
2016-06-15 11:02:59 -07:00
George Kulakowski bd207c207c [gn] Fix gn build on x64
Change-Id: Id5c36e943a6ba00b1367613154fb917158dd1054
2016-06-15 10:39:10 -07:00
cpu 358a24e0a5 [system][magenta] Remove ';' from syscalls macros
Change-Id: I19139ffcdce0a010da5db12e54c1cb6943799887
2016-06-15 07:35:35 -07:00
Brian Swetland 6ade2e3d00 [docs] remove extraneous readme 2016-06-15 00:59:24 -07:00
The Fuchsia Authors 53b9e1c8de [magenta] Initial commit 2016-06-15 00:31:24 -07:00