svc.h 550 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "common/common_types.h"
  6. namespace Kernel {
  7. struct MemoryInfo {
  8. u64 base_address;
  9. u64 size;
  10. u32 type;
  11. u32 attributes;
  12. u32 permission;
  13. u32 device_refcount;
  14. u32 ipc_refcount;
  15. INSERT_PADDING_WORDS(1);
  16. };
  17. static_assert(sizeof(MemoryInfo) == 0x28, "MemoryInfo has incorrect size.");
  18. struct PageInfo {
  19. u64 flags;
  20. };
  21. void CallSVC(u32 immediate);
  22. } // namespace Kernel