Guest User

Untitled

a guest
Feb 26th, 2012
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. --- mtrr-uncover.c 2009-05-13 23:25:48.000000000 +0200
  2. +++ mtrr-uncover.c.new 2012-02-26 10:40:20.000000000 +0100
  3. @@ -115,12 +115,12 @@
  4. static struct target_range *targets = NULL;
  5.  
  6.  
  7. -struct mtrr_type {
  8. +struct mtrr_type2 {
  9. unsigned int type;
  10. const char *name;
  11. };
  12.  
  13. -const struct mtrr_type mtrr_type[] = {
  14. +const struct mtrr_type2 mtrr_type2[] = {
  15. { MTRR_TYPE_UNCACHABLE, "uncachable" }, /* must be first for mtrr_type_uncachable */
  16. { MTRR_TYPE_WRCOMB, "write-combining" },
  17. { MTRR_TYPE_WRTHROUGH, "write-through" },
  18. @@ -128,7 +128,7 @@
  19. { MTRR_TYPE_WRBACK, "write-back" },
  20. { 0, NULL }
  21. };
  22. -#define mtrr_type_uncachable (&mtrr_type[0])
  23. +#define mtrr_type_uncachable (&mtrr_type2[0])
  24.  
  25. #define NUM_VAR_MTRR 8
  26.  
  27. @@ -144,7 +144,7 @@
  28. enum flags flags;
  29. addr_t base;
  30. addr_t size;
  31. - const struct mtrr_type *type;
  32. + const struct mtrr_type2 *type;
  33. struct mtrr *parent;
  34. struct mtrr *elder_sib;
  35. struct mtrr *younger_sib;
  36. @@ -252,7 +252,7 @@
  37. unsigned int regno;
  38. addr_t base;
  39. addr_t size;
  40. - const struct mtrr_type *type;
  41. + const struct mtrr_type2 *type;
  42. unsigned int count;
  43.  
  44. lino++;
  45. @@ -383,9 +383,9 @@
  46.  
  47. case 'T': /* Type */
  48. {
  49. - const struct mtrr_type *mt;
  50. + const struct mtrr_type2 *mt;
  51.  
  52. - for (mt = mtrr_type; ; mt++ ) {
  53. + for (mt = mtrr_type2; ; mt++ ) {
  54. if (mt->name == NULL) {
  55. fprintf(stderr
  56. , "%s: error reading %s line %d: unknown type\n"
Advertisement
Add Comment
Please, Sign In to add comment