summaryrefslogblamecommitdiffstats
path: root/src/core/hle/kernel/svc.h
blob: 610cd1d7d71eaa9e81524b24ad5cab4b1072e755 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                    
                                            
                                          




                                
                  
 
                   

                     


                   


                 
              

  


                                 
                            







                              

  
                            
 
                     
// Copyright 2018 yuzu emulator team
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

#include "common/common_types.h"

namespace Kernel {

struct MemoryInfo {
    u64 base_address;
    u64 size;
    u32 type;
    u32 attributes;
    u32 permission;
};

struct PageInfo {
    u64 flags;
};

/// Values accepted by svcGetInfo
enum class GetInfoType : u64 {
    // 1.0.0+
    AllowedCpuIdBitmask = 0,
    TotalMemoryUsage = 6,
    TotalHeapUsage = 7,
    RandomEntropy = 11,
    // 2.0.0+
    AddressSpaceBaseAddr = 12,
    AddressSpaceSize = 13,
    NewMapRegionBaseAddr = 14,
    NewMapRegionSize = 15,
};

void CallSVC(u32 immediate);

} // namespace Kernel