aboutsummaryrefslogtreecommitdiffstats
path: root/libc/kernel/arch-x86
Commit message (Collapse)AuthorAgeFilesLines
* Remove the unused arch-x86 and arch-x86-64 kernel headers.Elliott Hughes2013-11-19161-9230/+0
| | | | | | | x86-64 already used uapi headers, and x86 can too now. Bug: 11559337 Change-Id: I1196d2500f06ad40f2488b96fc8ccc7e02c7d5c0
* Make cpp.py less braindead.Elliott Hughes2013-11-061-5/+0
| | | | | | | | | | | | | | | | | | The old code ignored operator precedence (!), despite having two tables of operator precedence. The code's still pretty awful, but I've cleaned it up enough to fix this, the most important bug. This patch lets us correctly clean the uapi unistd.h, stat.h, and swab.h files, and also fixes the mess we were already making of various old kernel header files. I've added a bunch more tests, fixed the existing tests that the existing script was already failing (!), and changed the script so that the tests are run every time the script is run. We can probably remove some of the old kernel header files that we were parsing incorrectly, but we can worry about that later. Bug: 11253477 Change-Id: Ie66c65b3a7ae13b4e98ed8038a6a534f06eae0e5
* Add x86_64 to the bionic headers.Elliott Hughes2013-09-3064-130/+1189
| | | | | | | | | | | | | | | | | | | | | | | | Manual changes: cpp.py: cope with macros that refer to other macros. defaults.py: x86 no longer always implies __i386__; use __i386__ to replace the kernel CONFIG_X86_32 flag. asm/page.h: the upstream page.h isn't a uapi header and no longer includes the stuff we were using it for. Let's just have our own static file, since it's the same for all our architectures (both 32- and 64-bit). sys/select.h: we used to use the various FD_SET-related macros from the kernel header files, but they've gone. Adjust by adding trivial equivalent definitions. Automated changes: libc/kernel/arch-x86, libc/kernel/common: regenerated from external/kernel-headers. Change-Id: I84fc0ed52dc742e043b4ae300fd3b58ee99b7fcd
* Clean up trailing whitespace in the kernel headers.Elliott Hughes2013-01-3029-308/+308
| | | | | | And fix the scripts so they stop letting trailing whitespace through. Change-Id: Ie109fbe1f63321e565ba0fa60fee8e9cf3a61cfc
* Use the NetBSD <sys/exec_elf.h>.Elliott Hughes2013-01-291-50/+0
| | | | | | | | Replace a kernel header file dependency with files from NetBSD. They're more complete, and ELF is ELF, whether you're on Linux or a BSD. Bug: 7973611 Change-Id: I83ee719e7efdf432ec2ddbe8be271d05b2f558d7
* headers: update auxvec.h from Linux kernelNick Kralevich2013-01-141-0/+1
| | | | | | | | | | | | | | | | Pull a new version of auxvec.h from the upstream Linux kernel at commit b719f43059903820c31edb30f4663a2818836e7f These files were generated using the following commands: cd bionic/libc/kernel ./tools/clean_header.py -u ../../../external/kernel-headers/original/uapi/linux/auxvec.h ./tools/clean_header.py -u ../../../external/kernel-headers/original/linux/auxvec.h ./tools/clean_header.py -u ../../../external/kernel-headers/original/asm-x86/auxvec.h This change is needed to get AT_RANDOM defined. Change-Id: Ib064649684b17af6ff4b1a31d501a05f78bb81d0
* Update the kernel headers to match external/kernel-headers.Elliott Hughes2012-09-122-55/+31
| | | | | | | | | | | | | | Note that the Linux kernel handed over responsibility for most of the socket constants to glibc some time ago. Someone had updated our external/kernel-headers file but not regenerated the bionic headers, so this change copies the missing stuff from the old bionic <linux/socket.h> into <sys/socket.h>. This is what glibc does. I've hacked a few of the other files to #include <sys/socket.h> for backward compatibility, but even so this requires numerous other changes to switch people over from direct inclusion of <linux/...> headers. Change-Id: I0e4af64e631d3cef911a31d90f2f806e058278a0
* am c7882ab2: Merge "bionic: add clean kernel header ucontext.h"Jean-Baptiste Queru2012-05-171-0/+24
|\ | | | | | | | | * commit 'c7882ab2a99a74c8f772ab03fdfd9a3b53515e46': bionic: add clean kernel header ucontext.h
| * bionic: add clean kernel header ucontext.hKito Cheng2012-05-141-0/+24
| | | | | | | | Change-Id: I34fd0b0147fa33fd74c13480bc11827634233a41
* | Fixed to #include correct 32-bit headers; Refreshed libc/kernel headersAndrew Hsieh2012-03-2359-442/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes an issue where 64-bit hreaders are incorrectly included in kernel headers. For example, file "libc/kernel/arch-x86/asm/io.h" incorreclty includes "io_64.h" (missing, BTW) instead of "io_32.h". The reason is because CONFIG_X86_32 isn't considered pre-defined in "kernel_default_arch_macros" for x86, and clean_header.py doesn't look at it at all anyway (ie. __i386__ is also ignored, but it's okay since x86 cross compiler defines it back) Fixed 2 tools/*py, README.TXT, and refreshed libc/kernel headers Change-Id: Iac834cc8b3548f055d3f2a214af36072dd679fe8
* | Update kernel headers and add syscall "perf_event_open"Ben Cheng2012-03-131-0/+1
| | | | | | | | Change-Id: I43f12b727881df002a8524f2738586c043833bae
* | Update bionic kernel headers using update_all.pyBen Cheng2012-03-07159-918/+2226
| | | | | | | | Change-Id: I9c377436e9bf158e7236b3b7dcebf3e79fa961de
* | Revert "Update bionic kernel headers using update_all.py"Ben Cheng2012-03-07159-2226/+918
| | | | | | | | | | This reverts commit 94a85f663694e1869acb1c2e8a3c374a6fa3ab86 There is a smoke test failure for Prime but Crespo/Stingray are fine. Will revert the change for now until further investigation is made.
* | Update bionic kernel headers using update_all.pyBen Cheng2012-03-07159-918/+2226
|/ | | | Change-Id: I4da6b23cdbce89445f1ca5d2fadeb23345ce694c
* Add missing termios defns to bring on par with ARMBruce Beare2010-06-041-0/+17
| | | | Change-Id: Ied1871aa0a2e33473b89a4ac6d54e3c44be7f457
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-03159-0/+7237
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-03159-7237/+0
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-1/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-17159-0/+7238