Skip to content

Commit

Permalink
rename flags
Browse files Browse the repository at this point in the history
  • Loading branch information
SuchAFuriousDeath committed Apr 5, 2024
1 parent ecc8606 commit ba86702
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/kernel/src/rtld/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ impl Module {
proc_param,
mod_param,
sdk_ver,
flags: gg.spawn(ModuleFlags::UNK2),
flags: gg.spawn(ModuleFlags::IS_NEW),
names,
dag_static: gg.spawn(Vec::new()),
dag_dynamic: gg.spawn(Vec::new()),
Expand Down Expand Up @@ -760,16 +760,15 @@ bitflags! {
pub struct ModuleFlags: u16 {
const MAINPROG = 0x0001;
const TEXT_REL = 0x0002;
const JMPSLOTS_DONE = 0x0004; // TODO: This seems incorrect.
const TLS_DONE = 0x0008;
const INIT_SCANNED = 0x0010;
const ON_FINI_LIST = 0x0020;
const DAG_INITED = 0x0040;
const IS_SYSTEM = 0x0100; // TODO: Rename this.
const UNK2 = 0x0200; // TODO: Rename this.
const UNK3 = 0x0400; // TODO: Rename this.
const UNK4 = 0x0800; // TODO: It seems like this is actually JMPSLOTS_DONE.
const UNK5 = 0x1000; // TODO: Rename this.
const IS_SYSTEM = 0x0100;
const IS_NEW = 0x0200;
const LIBC_FIOS = 0x0400;
const JMPSLOTS_DONE = 0x0800;
const NOT_GET_PROC = 0x1000;
}
}

Expand Down

0 comments on commit ba86702

Please sign in to comment.