Skip to content
Snippets Groups Projects
  1. Jul 24, 2018
  2. Jul 22, 2018
  3. Jul 20, 2018
  4. Jul 19, 2018
    • Lioncash's avatar
      svc: Correct always true assertion case in SetThreadCoreMask · b879fb84
      Lioncash authored
      The reason this would never be true is that ideal_processor is a u8 and
      THREADPROCESSORID_DEFAULT is an s32. In this case, it boils down to how
      arithmetic conversions are performed before performing the comparison.
      
      If an unsigned value has a lesser conversion rank (aka smaller size)
      than the signed type being compared, then the unsigned value is promoted
      to the signed value (i.e. u8 -> s32 happens before the comparison). No
      sign-extension occurs here either.
      
      An alternative phrasing:
      
      Say we have a variable named core and it's given a value of -2.
      
      u8 core = -2;
      
      This becomes 254 due to the lack of sign. During integral promotion to
      the signed type, this still remains as 254, and therefore the condition
      will always be true, because no matter what value the u8 is given it
      will never be -2 in terms of 32 bits.
      
      Now, if one type was a s32 and one was a u32, this would be entirely
      different, since they have the same bit width (and the signed type would
      be converted to unsigned instead of the other way around) but would
      still have its representation preserved in terms of bits, allowing the
      comparison to be false in some cases, as opposed to being true all the
      time.
      
      ---
      
      We also get rid of two signed/unsigned comparison warnings while we're
      at it.
      b879fb84
  5. Jul 03, 2018
  6. Jun 22, 2018
  7. Jun 21, 2018
  8. Jun 20, 2018
  9. Jun 18, 2018
  10. May 31, 2018
  11. May 19, 2018
  12. May 10, 2018
  13. May 02, 2018
  14. Apr 29, 2018
  15. Apr 27, 2018
  16. Apr 26, 2018
  17. Apr 23, 2018
    • Subv's avatar
      Kernel: Implemented mutex priority inheritance. · 46572d02
      Subv authored
      Verified with a hwtest and implemented based on reverse engineering.
      
      Thread A's priority will get bumped to the highest priority among all the threads that are waiting for a mutex that A holds.
      Once A releases the mutex and ownership is transferred to B, A's priority will return to normal and B's priority will be bumped.
      46572d02
  18. Apr 21, 2018
  19. Apr 20, 2018
  20. Apr 17, 2018
    • Hexagon12's avatar
      Various service name fixes - part 2 (rebased) (#322) · e52a87b9
      Hexagon12 authored
      * Updated ACC with more service names
      
      * Updated SVC with more service names
      
      * Updated set with more service names
      
      * Updated sockets with more service names
      
      * Updated SPL with more service names
      
      * Updated time with more service names
      
      * Updated vi with more service names
      e52a87b9
  21. Apr 03, 2018
  22. Mar 30, 2018
  23. Mar 19, 2018
  24. Mar 16, 2018
Loading