ia64/xen-unstable

changeset 511:f47cba6ba7af

bitkeeper revision 1.278 (3f093528SjHdAnyxMPb44WbytMKk6g)

Slightly less hacky interface
author sos22@labyrinth.cl.cam.ac.uk
date Mon Jul 07 08:54:00 2003 +0000 (2003-07-07)
parents 1578c9d17ead
children ee937ab313ce
files tools/internal/xi_phys_grant.c
line diff
     1.1 --- a/tools/internal/xi_phys_grant.c	Mon Jul 07 08:50:32 2003 +0000
     1.2 +++ b/tools/internal/xi_phys_grant.c	Mon Jul 07 08:54:00 2003 +0000
     1.3 @@ -11,8 +11,8 @@ int main(int argc, char *argv[])
     1.4    int fd;
     1.5    char *strbuf;
     1.6  
     1.7 -  if (argc != 6) {
     1.8 -    fprintf(stderr, "Usage: xi_physdev_grant <r/rw> <domain> <device> <start sector> <n_sectors>\n");
     1.9 +  if (argc != 7) {
    1.10 +    fprintf(stderr, "Usage: xi_physdev_grant <r/rw> <domain> <device> <start sector> <n_sectors> <partition>\n");
    1.11      return 1;
    1.12    }
    1.13  
    1.14 @@ -26,7 +26,7 @@ int main(int argc, char *argv[])
    1.15    else if (argv[1][1] == 'w')
    1.16      buf.mode |= 2;
    1.17    
    1.18 -  buf.device = atol(argv[3]);
    1.19 +  buf.device = atol(argv[3]) + atol(argv[6]);
    1.20    buf.start_sect = atol(argv[4]);
    1.21    buf.n_sectors = atol(argv[5]);
    1.22