WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

To protect your data, the CISO officer has suggested users to enable 2FA as soon as possible.
Currently 2.7% of users enabled 2FA.

Commit a546cc4b authored by John Zhang's avatar John Zhang
Browse files

add definitions for some predefined types in Mu

parent c7514e7a
......@@ -115,6 +115,10 @@ class MuBundleGen:
sys.stderr.write("\033[0F\033[K")
self.log.gen_symbols("generating symbols... (%d/%d %d%%)" % (count, total, count * 100 / total))
# add predefined types in idmap.
for (MuT, (name_str, _id)) in mutype.MU_PREDEF_TYPES.items():
self.idmap[MuT] = _id
def check_reloc_object(self):
"""
Check heap objects that need uptr relocation.
......
......@@ -1249,6 +1249,22 @@ def castable(REFTYPE, CURTYPE):
raise lltype.InvalidCast(CURTYPE, REFTYPE)
return -u
MU_VOIDR = MuRef(MU_VOID)
MU_VOIDP = MuUPtr(MU_VOID)
META_BYTES = MuHybrid('@uvm.meta.bytes', ('length', MU_INT64), ('bytes', MU_INT8))
META_BYTES_REF = MuRef(META_BYTES)
META_REFS = MuHybrid('@uvm.meta.refs', ('length', MU_INT64), ('refs', MU_VOIDR))
META_REFS_REF = MuRef(META_REFS)
META_MUID = MU_INT32
META_CSTR = MuIRef(MU_INT8)
MU_PREDEF_TYPES = { # predefined types in Mu
META_BYTES: ('@uvm.meta.bytes', mu_int32(0x260)),
META_BYTES_REF: ('@uvm.meta.bytes.r', mu_int32(0x261)),
META_REFS: ('@uvm.meta.refs', mu_int32(0x262)),
META_REFS_REF: ('@uvm.meta.refs.r', mu_int32(0x263)),
}
# ----------------------------------------------------------
_prim_val_type_map = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment