Rev 1493 | Rev 1501 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1493 | Rev 1498 | ||
---|---|---|---|
Line 120... | Line 120... | ||
120 | scr_addr=(void *)ALIGN_UP(((__address)set_maxheapsize(USER_ADDRESS_SPACE_SIZE_ARCH>>1)),PAGE_SIZE); |
120 | scr_addr=(void *)ALIGN_UP(((__address)set_maxheapsize(USER_ADDRESS_SPACE_SIZE_ARCH>>1)),PAGE_SIZE); |
121 | 121 | ||
122 | if (ega_ph_addr != ALIGN_DOWN((unsigned long)ega_ph_addr, PAGE_SIZE)) |
122 | if (ega_ph_addr != ALIGN_DOWN((unsigned long)ega_ph_addr, PAGE_SIZE)) |
123 | return -1; |
123 | return -1; |
124 | 124 | ||
125 | map_physmem(ega_ph_addr, scr_addr, (scr_width*scr_height+PAGE_SIZE-1)>>PAGE_WIDTH, |
125 | map_physmem(ega_ph_addr, scr_addr, (scr_width*scr_height*2+PAGE_SIZE-1)>>PAGE_WIDTH, |
126 | AS_AREA_READ | AS_AREA_WRITE); |
126 | AS_AREA_READ | AS_AREA_WRITE); |
127 | 127 | ||
128 | 128 | ||
129 | async_set_client_connection(ega_client_connection); |
129 | async_set_client_connection(ega_client_connection); |
130 | 130 |