feat: aarch64 port - Raspberry Pi 4/400 SD boot (SDHCI, ext2 root + first-boot grow), USB hubs, PCI INTx routing, SMP, DMA fences
This commit is contained in:
1 parent
8c09ccef66
commit
808e1d66fd
66 files changed
+3690
-196
No files matched your search
@@ -654,6 +654,14 @@ namespace montauk {
|
||||
inline int fs_sync() {
|
||||
return (int)syscall0(montauk::abi::SYS_FS_SYNC);
|
||||
}
|
||||
// Grow mounted volume `drive` (and its MBR partition) to fill the free
|
||||
// space after it. apply=false only fills `status`; apply=true does one
|
||||
// slice of the work and returns 1 while more remains, 0 when finished,
|
||||
// or a negative status.
|
||||
inline int fs_grow(int drive, montauk::abi::FsGrowStatus* status, bool apply) {
|
||||
return (int)syscall3(montauk::abi::SYS_FS_GROW, (uint64_t)drive,
|
||||
(uint64_t)status, apply ? 1 : 0);
|
||||
}
|
||||
inline int fs_format(const montauk::abi::FsFormatParams* params) {
|
||||
return (int)syscall1(montauk::abi::SYS_FSFORMAT, (uint64_t)params);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user