summaryrefslogtreecommitdiff
path: root/firmware/include
Commit message (Collapse)AuthorAgeFilesLines
* Fix integration bugs (vboot side)Che-Liang Chiou2010-11-092-0/+125
| | | | | | | | | | | | | | | | | | | | | BUG=chromium-os:8621 TEST=See below 1. Build and run tests of vboot (including linktest) $ make && make runtests 2. Check if *_stub.o are not in vboot_fw.a $ nm /build/<board>/usr/lib/vboot_fw.a | grep _stub.o 3. Build and boot x86-generic image $ ./build_packages --board=x86-generic && ./build_image --board=x86-generic (Then successfully boot the image you just built) See CL=4372001 for u-boot side changes Review URL: http://codereview.chromium.org/4266002 Change-Id: Icc2bcc551c998f370e4b737fbe442ebf029cd81c
* Add maximum length constant for HWID, so it can be used by other ↵Randall Spangler2010-10-181-0/+3
| | | | | | | | | | | utilities/firmware. BUG=none TEST=manual Review URL: http://codereview.chromium.org/3837007 Change-Id: Ic5de775353ff3145018b28dccc6d983bbaf40180
* Add performance macros. When enabled, these are defined in each platform's ↵Randall Spangler2010-10-041-2/+22
| | | | | | | | | | | | | biosincludes.h. Fix assert() macro to only be defined #ifdef VBOOT_DEBUG Change-Id: I4a65c408544cd4319628c4ad20ed46eafebe69c9 BUG=chrome-os-partner:1207 TEST=manual Review URL: http://codereview.chromium.org/3446025
* TBR: reviewed in person with semenzatoRandall Spangler2010-09-021-3/+7
|
* Make sure that our version of certain utility function implementations gets ↵Gaurav Shah2010-08-201-1/+4
| | | | | | | | | | | | | used in the firmware. Reference code drop-in to firmware should make our implementations of Memset() and SafeMemcmp() get used now. BUG=chrome-os-partner:820 TEST=make && make runtests Change-Id: If0c06dfad85b67398a118985cdb751d20b2b65a4 Review URL: http://codereview.chromium.org/3173035
* Make LoadKernel() pass back the kernel partition's UniqueGuid.Bill Richardson2010-07-231-0/+2
| | | | | | | | | | | | | LoadKernel already returns the partition number for the selected kernel. This change makes it also return the GPT Entry's UniqueGuid, which will eventually be passed to the kernel itself, so the kernel can determine which of several possible devices it has booted from. It doesn't know for certain because the BIOS and the kernel may enumerate the devices in a different order. BUG=chromium-os:4984 Review URL: http://codereview.chromium.org/3056014
* Add tpm lite to vboot referenceRandall Spangler2010-07-142-125/+8
| | | | Review URL: http://codereview.chromium.org/2919010
* added reboot return codes to load kernel and firmwareRandall Spangler2010-07-082-0/+3
| | | | Review URL: http://codereview.chromium.org/2844044
* This test sets the TPM to a each of a large amount of "interesting" initial ↵Luigi Semenzato2010-07-081-1/+12
| | | | | | | | states, and runs the firmware code at user level. This code compiles and installs using a modified ebuild (which needs to be committed after this change). Review URL: http://codereview.chromium.org/2857030
* Make vboot_reference build in MSVC command line environment.vbendeb2010-06-242-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is a mostly NOOP change which modifies the source code to compile cleanly in the MSVC command line build environment. A new makefile is introduced (msc/nmakefile) along with a README.txt in the same directory explaining how to build the code in the DOS window. As of this submission the build is running in a 32 bit environment, the intention is to use the same makefile for 64 bit builds in the future. Enabling high compilation warnings level allowed to identify a couple of bugs in the code which are being fixed. Not all sources are being compiled in the MSVC environment, only those in firmware/ and most of those in test/ subdirectories. The benchmark calculations require porting of the timer facilities and are being postponed. TEST Built in DOS and linux environments. Ran unit tests in linux environment. Review URL: http://codereview.chromium.org/2809037
* Ignore TPM return codes in recovery modeRandall Spangler2010-06-241-118/+0
| | | | Review URL: http://codereview.chromium.org/2844024
* Add boot flags to LoadFirmware(), for TPM initRandall Spangler2010-06-231-0/+4
| | | | Review URL: http://codereview.chromium.org/2865015
* Add VBDEBUG macro for debug output.Randall Spangler2010-06-231-0/+7
| | | | | | Replaced in firmware/ lib; not replaced in host-side utils/tests. Review URL: http://codereview.chromium.org/2810026
* Refactor rollback interface for LoadKernel(), LoadFirmware().Randall Spangler2010-06-231-0/+52
| | | | Review URL: http://codereview.chromium.org/2861020
* Even more integration fixes.Randall Spangler2010-06-231-5/+0
| | | | Review URL: http://codereview.chromium.org/2849021
* Assorted integration fixes.Randall Spangler2010-06-231-0/+5
| | | | | | | | | | | | | | MSVC does not like bitfields with extra bits in them, so it made the GptEntry struct too big. Fixed a missing return value in LoadFirmware(). Added some debug output. Fixed calls to SetupTPM(). Tested with 'make && make runtests'. No errors. Review URL: http://codereview.chromium.org/2865014
* More cleanup of MSVC errorsRandall Spangler2010-06-211-1/+1
| | | | Review URL: http://codereview.chromium.org/2871019
* Fixes to compiler warnings in MSVCRandall Spangler2010-06-211-0/+4
| | | | Review URL: http://codereview.chromium.org/2851015
* Include BIOS specific definitions when required.vbendeb2010-06-211-0/+5
| | | | | | | | | | | | | | | | | This is a noop for host/chroot environment. When compiling in the firmware space the standard include files will not be included, the definitions will be supplied by the BIOS, through the new file (firmware/include/sysincludes.h). Testing ======= RUNTESTS=1 make in the top level directory succeeds, confirming that the tree compiles cleanly and the unit tests pass. Review URL: http://codereview.chromium.org/2862019
* Remove unused files, and tidy the directory structure of the remaining ones.Randall Spangler2010-06-178-0/+503
Review URL: http://codereview.chromium.org/2815011