Fix two syntax errors in frame-and-sect decoding macros.

Both are in the non-grant-tables cases of 
cset ae51fa1d32b23066c4342bbeb5f4dc401b82ea37.

Signed-off-by: andrew.warfield@cl.cam.ac.uk
This commit is contained in:
akw27@arcadians.cl.cam.ac.uk committed 2005-08-04 14:32:21 +00:00
1 parent 281d3b20f0
commit 5fa8dca989
2 files changed
+2 -2

No files matched your search

@@ -137,7 +137,7 @@ static vdisk_t *xlvbd_probe(int *ret)
blkif_control_probe_send(&req, &rsp,
(unsigned long)(virt_to_machine(buf)));
#else
req.frame_and_sects[0] = blkif_fas(virt_to_machine(buf), 0, ((PAGE_SIZE/512)-1);
req.frame_and_sects[0] = blkif_fas(virt_to_machine(buf), 0, (PAGE_SIZE/512)-1);
blkif_control_send(&req, &rsp);
#endif
+1 -1
View File
@@ -47,7 +47,7 @@ typedef struct blkif_request {
unsigned long frame_and_sects[BLKIF_MAX_SEGMENTS_PER_REQUEST];
} blkif_request_t;
#define blkif_fas(_addr, _fs, _ls) ((addr)|((_fs)<<5)|(_ls))
#define blkif_fas(_addr, _fs, _ls) ((_addr)|((_fs)<<5)|(_ls))
#define blkif_first_sect(_fas) (((_fas)>>5)&31)
#define blkif_last_sect(_fas) ((_fas)&31)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.