obhq / obliteration

Experimental free and open-source PlayStation 4 kernel
https://obliteration.net
Apache License 2.0
620 stars 17 forks source link

Initializes KVM and WHP #696

Closed ultimaweapon closed 6 months ago

SuchAFuriousDeath commented 6 months ago

And also, regarding the previous PR, shouldn't this be a an empty enum?

#[repr(C)]
pub struct hv_vm_config_t([u8; 0]);

Then, it can never be contructed and can only exist behind a pointer. But I'm not quite sure what your intentions were behind this.

ultimaweapon commented 6 months ago

Here is the reason (look at the end of answer): https://stackoverflow.com/a/38315613

SuchAFuriousDeath commented 6 months ago

Oh :eyes:

SuchAFuriousDeath commented 6 months ago

llvm-sys and libc still use empty enums by the way :D

SuchAFuriousDeath commented 6 months ago

Is this left as draft on purpose?

ultimaweapon commented 6 months ago

Is this left as draft on purpose?

Correct.

SuchAFuriousDeath commented 6 months ago

By the way, mikusp said on Discord that he reached sys_thr_new