Add option to format ramdisks in Reboot()

This commit is contained in:
xmm15 2020-02-16 03:56:39 -06:00
parent 83dd0214b1
commit e81fef25c4
7 changed files with 13 additions and 7 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -130,8 +130,15 @@ U0 TimersInit()
}
}
U0 Reboot()
U0 Reboot(Bool format_ramdisks=FALSE)
{//Hardware reset.
if (format_ramdisks)
{
if (DriveIsWritable('A'))
Format('A',,FALSE,FSt_REDSEA);
if (DriveIsWritable('B'))
Format('B',,FALSE,FSt_REDSEA);
}
CLI
if (mp_count>1)
MPHalt;

File diff suppressed because one or more lines are too long

View file

@ -11,7 +11,7 @@ public extern U8 *rev_bits_table,*set_bits_table;
#help_index "Boot"
#help_file "::/Doc/Boot"
public extern U0 Reboot();
public extern U0 Reboot(Bool format_ramdisks=FALSE);
#help_index "Call"
public argpop extern I64 CallStackGrow(I64 stack_size_threshold,I64 stack_size,

Binary file not shown.