mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-06-07 08:14:48 +00:00
Add option to format ramdisks in Reboot()
This commit is contained in:
parent
83dd0214b1
commit
e81fef25c4
Binary file not shown.
Binary file not shown.
BIN
src/Kernel.BIN.C
BIN
src/Kernel.BIN.C
Binary file not shown.
@ -130,8 +130,15 @@ U0 TimersInit()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
U0 Reboot()
|
U0 Reboot(Bool format_ramdisks=FALSE)
|
||||||
{//Hardware reset.
|
{//Hardware reset.
|
||||||
|
if (format_ramdisks)
|
||||||
|
{
|
||||||
|
if (DriveIsWritable('A'))
|
||||||
|
Format('A',,FALSE,FSt_REDSEA);
|
||||||
|
if (DriveIsWritable('B'))
|
||||||
|
Format('B',,FALSE,FSt_REDSEA);
|
||||||
|
}
|
||||||
CLI
|
CLI
|
||||||
if (mp_count>1)
|
if (mp_count>1)
|
||||||
MPHalt;
|
MPHalt;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -11,7 +11,7 @@ public extern U8 *rev_bits_table,*set_bits_table;
|
|||||||
|
|
||||||
#help_index "Boot"
|
#help_index "Boot"
|
||||||
#help_file "::/Doc/Boot"
|
#help_file "::/Doc/Boot"
|
||||||
public extern U0 Reboot();
|
public extern U0 Reboot(Bool format_ramdisks=FALSE);
|
||||||
|
|
||||||
#help_index "Call"
|
#help_index "Call"
|
||||||
public argpop extern I64 CallStackGrow(I64 stack_size_threshold,I64 stack_size,
|
public argpop extern I64 CallStackGrow(I64 stack_size_threshold,I64 stack_size,
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user