Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some bug fix and improvement #26

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open

some bug fix and improvement #26

wants to merge 44 commits into from

Commits on Oct 22, 2014

  1. [arm64] fix minor issue in the interrupt function

    1.don't update F bit in arch_[dis|en]able_ints
    2.get interrupt flag through daif instead of cspr
    
    Change-Id: I1dbbe9493e1036a25095226f44607a5e3d62aaab
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 22, 2014
    Configuration menu
    Copy the full SHA
    3786c9e View commit details
    Browse the repository at this point in the history
  2. [arm64] implement fiq arch function

    Change-Id: Iecbb55c13f00ea8eacf0db74112df6889a71d444
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 22, 2014
    Configuration menu
    Copy the full SHA
    97f625e View commit details
    Browse the repository at this point in the history
  3. [arm64] always use gcc builtin atomic operation

    and remove the inline assemble code because they can't build with a64
    
    Change-Id: Ia2ada6ab5c670ba97fd6260b7085e068d282417e
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 22, 2014
    Configuration menu
    Copy the full SHA
    87d0bf0 View commit details
    Browse the repository at this point in the history

Commits on Oct 23, 2014

  1. [arm] don't use strexeq which is arm only inst in atomic_cmpxchg

    because atomic_cmpxchg may inline in the thumb compiler environment
    
    Change-Id: Ifc424327211859662866022c1a9dec30618f72e6
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 23, 2014
    Configuration menu
    Copy the full SHA
    25f84f6 View commit details
    Browse the repository at this point in the history
  2. [kernel] move spinlock out of arch/arm/include/arch/arch_ops.h

    because spinlock could implement in all supported arch
    
    Signed-off-by: Xiang Xiao <[email protected]>
    
    Change-Id: Icfb0bfbd569320cc6b3f4dc13b39f73a45ae1f92
    xiaoxiang781216 committed Oct 23, 2014
    Configuration menu
    Copy the full SHA
    a05d6c5 View commit details
    Browse the repository at this point in the history
  3. [arm_gic] remove arm 32bit specific code

    so the same driver could work on both 32bit and 64bit platform
    
    Change-Id: I6955300ee40e43a3dbc853cd24328ceb94657468
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 23, 2014
    Configuration menu
    Copy the full SHA
    144dc4d View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2014

  1. [arm64] fix minor issue in the interrupt function

    1.don't update F bit in arch_[dis|en]able_ints
    2.get interrupt flag through daif instead of cspr
    
    Change-Id: I1dbbe9493e1036a25095226f44607a5e3d62aaab
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 authored and xiaoxiang committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    dbbc331 View commit details
    Browse the repository at this point in the history
  2. [arm64] implement fiq arch function

    Change-Id: Iecbb55c13f00ea8eacf0db74112df6889a71d444
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 authored and xiaoxiang committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    251ce80 View commit details
    Browse the repository at this point in the history
  3. [arm64] always use gcc builtin atomic operation

    and remove the inline assemble code because they can't build with a64
    
    Change-Id: Ia2ada6ab5c670ba97fd6260b7085e068d282417e
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 authored and xiaoxiang committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    fb61b20 View commit details
    Browse the repository at this point in the history
  4. [arm] don't use strexeq which is arm only inst in atomic_cmpxchg

    because atomic_cmpxchg may inline in the thumb compiler environment
    
    Change-Id: Ifc424327211859662866022c1a9dec30618f72e6
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 authored and xiaoxiang committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    e7d8ba9 View commit details
    Browse the repository at this point in the history
  5. [kernel] move spinlock out of arch/arm/include/arch/arch_ops.h

    because spinlock could implement in all supported arch
    
    Signed-off-by: Xiang Xiao <[email protected]>
    
    Change-Id: Icfb0bfbd569320cc6b3f4dc13b39f73a45ae1f92
    xiaoxiang781216 authored and xiaoxiang committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    a3c1cf3 View commit details
    Browse the repository at this point in the history
  6. [arm_gic] remove arm 32bit specific code

    so the same driver could work on both 32bit and 64bit platform
    
    Change-Id: I6955300ee40e43a3dbc853cd24328ceb94657468
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 authored and xiaoxiang committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    0f60ee8 View commit details
    Browse the repository at this point in the history
  7. Revert "[app][aboot] remove some old Google code that hasn't been use…

    …d in a while"
    
    Bring back the aboot support again.
    This reverts commit 8c68071.
    
    Signed-off-by: Xiang Xiao <[email protected]>
    
    Conflicts:
    	include/lib/ptable.h
    	lib/ptable/ptable.c
    	lib/ptable/rules.mk
    
    Change-Id: I2f0ea48410d75d53f29fd4f2e0fcd7b4194572ea
    xiaoxiang781216 authored and xiaoxiang committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    436c0de View commit details
    Browse the repository at this point in the history
  8. [lib][partition] put partition related code into one folder

    so the code organization more clearer:
    1.move lib/partition to lib/partition/mbr
    2.move lib/ptable to lib/partition/ptable
    3.update rules.mk to pointer the new location
    
    Change-Id: I0d173acc7bacd23c890caffbf4049e9fe91fa31c
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 authored and xiaoxiang committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    3373133 View commit details
    Browse the repository at this point in the history
  9. [lib][ptable] support access table entry by index

    Change-Id: I8e5fc9c7d1ce9364d7926e901f0f42a73fa8ab01
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 authored and xiaoxiang committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    1a22e1d View commit details
    Browse the repository at this point in the history
  10. [app][aboot] port to the new ptable interface

    Change-Id: Ia681906e2aa7f428b6eb7a5d3825b18daaf46faa
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 authored and xiaoxiang committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    7e8cec0 View commit details
    Browse the repository at this point in the history
  11. [time] support mdelay and udelay function

    Change-Id: Iaddec5e8c87d24f2d9490ea0e483c8a439609d2d
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    5519935 View commit details
    Browse the repository at this point in the history
  12. provide linux-style read[w|b]()/write[w|b]() in reg.h

    Change-Id: I1ed607a9703e9e19ce78b0b27dd4ddeaf86bad59
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    8703775 View commit details
    Browse the repository at this point in the history
  13. [vm] add vaddr_to_paddr function

    and make paddr_to_kvaddr/vaddr_to_paddr is callable even without vm
    
    Change-Id: I8e2e670e93ae9afc04dd8d0ef3ae4fa5982d6564
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    46a8618 View commit details
    Browse the repository at this point in the history
  14. [arch] move the common code from arch_chain_load to chain_load

    and support chain_load for the no vm case
    
    Change-Id: Idbdb40b39b98c7fb80ed4b4d1ac0efb0171875f8
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    13e43e3 View commit details
    Browse the repository at this point in the history
  15. [arch] support chain_load with arguments(max 4)

    arch specified code need pass these arguments to
    the entry pointer with the suitable approach
    
    Change-Id: I1204b87de9b81ee81526b402a20eeef2774e5774
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    d3b4bfc View commit details
    Browse the repository at this point in the history
  16. [vm] remove __MMU_INITIAL_MAPPING_XXXX_OFFSET and related STATIC_ASSERT

    because these definition isn't suitable for 64bit cpu and make compiler error
    
    Change-Id: Ic896b62b5545e89b52324a49c03430aae73f9cb7
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    2c3fdcc View commit details
    Browse the repository at this point in the history
  17. [app][aboot] ensure aboot work well for no identity mapping

    by replace pointer cast with paddr_to_kvaddr/vaddr_to_paddr/chain_load3
    and get the address from boot image header instead of the hardcode value
    
    Change-Id: I5b9ce69ca2d23997948631f2b5807d24762b1cc2
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    e9789e0 View commit details
    Browse the repository at this point in the history
  18. [arch][arm] don't change V bit for pre armv7

    because VBAR just exist on armv7 and replace KERNEL_BASE with
    _start since KERNEL_BASE isn't defined when WITH_KERNEL_VM=0
    
    Change-Id: Ic2496fe9de901564975142073121ee540972c00a
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    d2a62c9 View commit details
    Browse the repository at this point in the history
  19. [arch][arm] make WITH_KERNEL_VM selectable

    and turn on WITH_KERNEL_VM by default
    
    Change-Id: I64e8f157e8fda223bc25de4735828b37e3a88151
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    d54159d View commit details
    Browse the repository at this point in the history
  20. [arch][arm] support compile cortex-a7

    Change-Id: I6fe3a7fa5750c0d4397f4764fbd6edf4c40cd80e
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    128c5e5 View commit details
    Browse the repository at this point in the history
  21. [lib][heap] heap_grow reduce grow size when memory nearly exhaust

    Change-Id: I2421b536d11c043e9d07ef23638a02652ddda6da
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    212f5a8 View commit details
    Browse the repository at this point in the history
  22. [lib][heap] fill the delayed free block with FREE_FILL

    and don't fill the alloced block from pmm_alloc_kpages
    
    Change-Id: Ic879f1e1d7159cf87b37f553e30d2c654ddcc509
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    1a6d9d6 View commit details
    Browse the repository at this point in the history
  23. [lib][heap] make the heap usable as soon as possible

    now the heap could be used even in the early init phase
    and replace boot allocator with the heap
    
    Change-Id: If9af3912b8685498218dc23ac899758f43f787fa
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    a8c679f View commit details
    Browse the repository at this point in the history
  24. [arch][arm] ARM_CPU support cortex-a7-neon and cortex-a8-neon

    so the platform could decide whether enable vfp/neon per needed
    
    Change-Id: Ia922efaae556e95701383a1c4184a69e4891eddc
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    6dd1432 View commit details
    Browse the repository at this point in the history
  25. [dev] define device_class for each class

    to standardize the class name
    
    Change-Id: I742090d06a999b3b851f8b1a76d1599c45657f91
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    7940351 View commit details
    Browse the repository at this point in the history
  26. [dev] device driver support the init order

    Change-Id: I2147b841a5d0671c74224bad70a3c80eb563cb73
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    4a1420c View commit details
    Browse the repository at this point in the history
  27. [dev] add device_find for dynamic device search

    which is companion with device_get_by_name(compile time)
    
    Change-Id: I0d642caf4d5c3958cf189cb4da6b1eb1076208af
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    32c61d5 View commit details
    Browse the repository at this point in the history
  28. [dev] add the generic 16550 uart driver

    Change-Id: I5449ecccea9c344d9d9dd9c74c32495c460780a9
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    eff3731 View commit details
    Browse the repository at this point in the history
  29. [dev][timer][arm_generic] fix fixed_point.h can't find compiler error

    and disable local trace
    
    Change-Id: I2b1a397481385e510b1255044686c624bec1f81e
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    6fb5802 View commit details
    Browse the repository at this point in the history
  30. [dev][timer][arm_generic] add arm_generic_timer_init_freq

    so platform could pass in the frequency if needed
    
    Change-Id: Icbe8de0e66eeb7e884dbda3c7df343d4d1b1357c
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    5b112f3 View commit details
    Browse the repository at this point in the history
  31. [lib][sysparam] add sysparam_add_nosave function

    the caller can decide whether save sysparam to block device
    
    Change-Id: I70c206d2ff2794b2163603aedf3528969c85bd57
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    5efcb33 View commit details
    Browse the repository at this point in the history
  32. [app][aboot] implement cmd_getvar base on sysparam

    the platform/target could extend fastboot variable more easier
    
    Change-Id: I927b0bc6c2efaf8d13c741955c81d7fcf9cb1859
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    1921230 View commit details
    Browse the repository at this point in the history
  33. [vm] allocate vm_page array from self when heap exhaust

    do this only for already mapped arena(PMM_ARENA_FLAG_KMAP)
    
    Change-Id: I0baa6cbe0aab0525d9b5c37674119379cb989cde
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    1d59d43 View commit details
    Browse the repository at this point in the history
  34. [vm] fix address calculation beyond 4G issue

    Change-Id: Ic37b00bf63e50bfee5847b2bdda9577d00d3844d
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    c7c2e2d View commit details
    Browse the repository at this point in the history
  35. [dev] add device_init_range to init device in [first, last]

    and extend fini funtion in the same way
    
    Change-Id: Ic0ba2fb8f4e37b64a8518d03ba62ea69b62319e2
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    f79ab98 View commit details
    Browse the repository at this point in the history
  36. [dev][16550] add reserved state in config structure

    and automatically call uart_init if not yet, so the
    debug message could output at the very early stage.
    
    Change-Id: Id704ac6d827b3b697cc40765786844a872a5f451
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 26, 2014
    Configuration menu
    Copy the full SHA
    32f7b94 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    450fe80 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2014

  1. [dev] move dev to next for each loop in device_find

    Change-Id: I792623ca1486071a15c3373fac10cf24dde0c869
    Signed-off-by: Xiang Xiao <[email protected]>
    xiaoxiang781216 committed Oct 30, 2014
    Configuration menu
    Copy the full SHA
    9be54e0 View commit details
    Browse the repository at this point in the history