mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
30 lines
No EOL
594 B
C#
30 lines
No EOL
594 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Cosmos.IL2CPU.API {
|
|
public enum Ring {
|
|
Core = 0,
|
|
HAL = 1,
|
|
System = 2,
|
|
User = 3
|
|
}
|
|
|
|
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
|
|
public class RingAttribute : Attribute {
|
|
|
|
private readonly Ring mRing;
|
|
|
|
public RingAttribute(Ring aRing) {
|
|
mRing = aRing;
|
|
}
|
|
|
|
public Ring Ring {
|
|
get {
|
|
return mRing;
|
|
}
|
|
}
|
|
}
|
|
} |