mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-04-18 05:38:36 +01:00
Add option to format ramdisks in Reboot()
This commit is contained in:
parent
83dd0214b1
commit
e81fef25c4
7 changed files with 13 additions and 7 deletions
src
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.
|
||||
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
|
@ -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.
Loading…
Reference in a new issue