copy / copy/v86

XV6 fails with "ide disk 1 not present". (Does v86 emulate IDE?)

Open
#1,413 17 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
23.5k
Forks
1.9k
Avg merge
2d 14h
Merged PRs (30d)
7

Description

Version: [ccb5e1ce](https://github.com/copy/v86/commits/ccb5e1ce) (Sep 20, 2025 11:09)
Firefox 142 on Linux Mint 22.2

XV6 does not initialize past the panic `iderw: ide disk 1 not present`.

```
//PAGEBREAK!
// Sync buf with disk.
// If B_DIRTY is set, write buf to disk, clear B_DIRTY, set B_VALID.
// Else if B_VALID is not set, read buf from disk, set B_VALID.
void
iderw(struct buf *b)
{
struct buf **pp;

if(!holdingsleep(&b->lock))
panic("iderw: buf not locked");
if((b->flags & (B_VALID|B_DIRTY)) == B_VALID)
panic("iderw: nothing to do");
if(b->dev != 0 && !havedisk1)
panic("iderw: ide disk 1 not present");
```

Compiled from the XV6 X86 Github repo:
https://github.com/mit-pdos/xv6-public

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.