|
|
| version 1.10, 2004/03/01 06:33:13 | version 1.11, 2004/03/24 20:42:12 |
|---|---|
| Line 182 agp_alloc_gatt(device_t dev) | Line 182 agp_alloc_gatt(device_t dev) |
| return NULL; | return NULL; |
| } | } |
| gatt = malloc(sizeof(struct agp_gatt), M_AGP, M_NOWAIT); | gatt = malloc(sizeof(struct agp_gatt), M_AGP, M_INTWAIT); |
| if (!gatt) | |
| return 0; | |
| gatt->ag_entries = entries; | gatt->ag_entries = entries; |
| gatt->ag_virtual = contigmalloc(entries * sizeof(u_int32_t), M_AGP, 0, | gatt->ag_virtual = contigmalloc(entries * sizeof(u_int32_t), M_AGP, |
| 0, ~0, PAGE_SIZE, 0); | M_WAITOK, 0, ~0, PAGE_SIZE, 0); |
| if (!gatt->ag_virtual) { | if (!gatt->ag_virtual) { |
| if (bootverbose) | if (bootverbose) |
| device_printf(dev, "contiguous allocation failed\n"); | device_printf(dev, "contiguous allocation failed\n"); |
| Line 453 agp_generic_alloc_memory(device_t dev, i | Line 450 agp_generic_alloc_memory(device_t dev, i |
| return 0; | return 0; |
| } | } |
| mem = malloc(sizeof *mem, M_AGP, M_WAITOK); | mem = malloc(sizeof *mem, M_AGP, M_INTWAIT); |
| mem->am_id = sc->as_nextid++; | mem->am_id = sc->as_nextid++; |
| mem->am_size = size; | mem->am_size = size; |
| mem->am_type = 0; | mem->am_type = 0; |