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 530c5fdc authored by Isaac Oscar Gariano's avatar Isaac Oscar Gariano
Browse files

Minor tagref64 changes

parent e31c8105
File mode changed from 100644 to 100755
......@@ -110,11 +110,7 @@ impl Address {
Address(usize::MAX)
}
#[inline(always)]
pub unsafe fn raw(&self) -> usize {
self.0
}
#[inline(always)]
pub unsafe fn from_raw(raw : usize) -> Address {
pub unsafe fn from_usize(raw : usize) -> Address {
Address(raw)
}
}
......
......@@ -1667,7 +1667,7 @@ impl <'a> VM {
self.new_handle(APIHandle {
id: handle_id,
v : APIHandleValue::Int(
(((opnd & 0xffffffffffffeu64) >> 1) | ((opnd & 0x8000000000000000u64) >> 12) & (1u64 << 51)),
(((opnd & 0xffffffffffffeu64) >> 1) | ((opnd & 0x8000000000000000u64) >> 12)),
52
)
})
......@@ -1680,7 +1680,7 @@ impl <'a> VM {
self.new_handle(APIHandle {
id: handle_id,
v : APIHandleValue::Ref(types::REF_VOID_TYPE.clone(),
unsafe { Address::from_raw(
unsafe { Address::from_usize(
((opnd & 0x7ffffffffff8u64) |
(((!(((opnd & 0x8000000000000000u64) << 1) - 1)) >> 17) &
0xffff800000000000u64)) as usize
......@@ -1731,7 +1731,7 @@ impl <'a> VM {
pub fn handle_tr64_from_ref(&self, reff: APIHandleArg, tag: APIHandleArg) -> APIHandleResult {
let handle_id = self.next_id();
let (_, addr) = reff.v.as_ref();
let addr_ = unsafe { addr.raw() as u64 };
let addr_ = unsafe { addr.as_usize() as u64 };
let tag_ = tag.v.as_int();
self.new_handle (APIHandle {
id: handle_id,
......
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