equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
40 // updating the pagetable. |
40 // updating the pagetable. |
41 OrderAccess::storestore(); |
41 OrderAccess::storestore(); |
42 |
42 |
43 const uintptr_t start = ZAddress::good(page->start()); |
43 const uintptr_t start = ZAddress::good(page->start()); |
44 const uintptr_t end = start + page->size(); |
44 const uintptr_t end = start + page->size(); |
45 for (uintptr_t addr = start; addr < end; addr += ZPageSizeMin) { |
45 for (uintptr_t addr = start; addr < end; addr += ZGranuleSize) { |
46 _map.put(addr, entry); |
46 _map.put(addr, entry); |
47 } |
47 } |
48 } |
48 } |
49 |
49 |
50 void ZPageTable::insert(ZPage* page) { |
50 void ZPageTable::insert(ZPage* page) { |