Invalid extended processor state windows 10 как исправить

The official Windows Driver Kit documentation sources - windows-driver-docs/bug-check-0x131--invalid-extended-processor-state.md at staging · MicrosoftDocs/windows-driver-docs
title description keywords ms.date topic_type api_name api_type

Bug Check 0x131 INVALID_EXTENDED_PROCESSOR_STATE

The INVALID_EXTENDED_PROCESSOR_STATE bug check has a value of 0x00000131. This indicates that an invalid combination of parameters was detected while saving or restoring extended processor state.

Bug Check 0x131 INVALID_EXTENDED_PROCESSOR_STATE

INVALID_EXTENDED_PROCESSOR_STATE

05/23/2017

apiref

INVALID_EXTENDED_PROCESSOR_STATE

NA

Bug Check 0x131: INVALID_EXTENDED_PROCESSOR_STATE

The INVALID_EXTENDED_PROCESSOR_STATE bug check has a value of 0x00000131. This indicates that an invalid combination of parameters was detected while saving or restoring extended processor state.

[!IMPORTANT]
This topic is for programmers. If you are a customer who has received a blue screen error code while using your computer, see Troubleshoot blue screen errors.

INVALID_EXTENDED_PROCESSOR_STATE Parameters

Parameter one indicates which validity check failed.

Parameter Description
1 0 — Invalid feature mask was passed or extended processor state is not enabled.
2 Nonzero if extended state is enabled.
3 The low 32 bits of the feature mask.
4 The high 32 bits of the feature mask.
Parameter Description
1 1 — An attempt to save or restore extended state was made at IRQL higher than DISPATCH_LEVEL.
2 The IRQL
3 Reserved
4 Reserved
Parameter Description
1 2 — The previously saved state is for an equal or higher level.
2 The saved level.
3 The current level.
4 Reserved
Parameter Description
1 3 — The previously saved state is for a different thread.
2 The saved thread.
3 The current thread.
4 Reserved
Parameter Description
1 4 — Previously saved state is for a different level.
2 The saved level.
3 The current level.
4 Reserved

Содержание

  1. Fix: INVALID_EXTENDED_PROCESSOR_STATE Error BSOD in Windows 10
  2. INVALID_EXTENDED_PROCESSOR_STATE in Windows 10 Solutions
  3. Block Automatic Restarting of Windows
  4. Make the Old drivers updated in Device Manager
  5. Perform Installation of All the Available Update Patches
  6. Make a habit of Regular Malware Scanning in Windows Security
  7. Make the Proper use of Windows Blue Screen Troubleshooter
  8. Perform the Basic Treatment for all problems- Boot in Safe Mode
  9. Uninstall is the only Barrier between similar apps to block staying over
  10. DISM Tool- the one-shot solution for defective Windows Image Files
  11. Never Spare Memory issues and RAM problems unattended, fix in Windows Memory Diagnostic
  12. System File Checker- your best friend in System Component corruption
  13. Bade Farewell to Free Third-Party Anti-virus solution
  14. System Restore- the easiest way to Undo all wrong changes
  15. Drive away the problematic Windows Update Files
  16. Let the Disk Cleanup Utility offer you more Disk Space
  17. Execute Disc Checking Utility in Elevated Command Prompt and fix bad areas in Hard Disk
  18. Disconnect the Additional Hard Drive and give a break before reconnecting
  19. KB5006670: обратите внимание на эти проблемы в последнем обновлении Windows 10
  20. Ошибка Центра обновления Windows (0x8007000d)
  21. Invalid extended processor state windows 10
  22. РЕШЕНО: Ошибка «Не поддерживаемое оборудование» (Ваш компьютер оборудован процессором предназначенным для последней версии Windows)
  23. Unsupported hardware
  24. Не поддерживаемое оборудование
  25. UPD2: Wufuc – патч для восстановления Windows Update
  26. Как исправить ошибку 0x800f0922 при установке накопительных обновлений Windows 10
  27. Как исправить ошибку 0x800f0922

Fix: INVALID_EXTENDED_PROCESSOR_STATE Error BSOD in Windows 10

Did you also face INVALID_EXTENDED_PROCESSOR_STATE Error in Windows 10? This issue having bug check value 0x00000131 makes the OS automatic restart continuously without any notable reason. Moreover, it also freezes the desktop, not allowing the users to access the device. Being originated from both software and hardware troubles, this Blue screen of death issue causes unparalleled damages to Windows.

INVALID_EXTENDED_PROCESSOR_STATE Error BSOD in Windows 10 mainly occurs because of outdated and poor quality device drivers. Exploring the reasons, infection from malware, missing DLL files, deleting system components, badly allocated memory devices, having similar programs in the system came forward. In addition, from the hardware side, piling up of unnecessary components jamming the Disk, running lack of space, bad sector present are responsible as well. You might see lots of weird warning texts once attempt to start a program or end it. Before this notorious bug takes control over the device fully, we need to step forward. Today we will discuss some amazing ways resolving this error easily.

INVALID_EXTENDED_PROCESSOR_STATE in Windows 10 Solutions

Here is how to fix INVALID_EXTENDED_PROCESSOR_STATE Error BSOD in Windows 10 –

Block Automatic Restarting of Windows

The first thing we really need to do is to halt Windows 10 from rebooting as it is daunting most. It won’t be surprising as this workaround will not heal but definitely make then proper way out for others to be executed. Here is how to block the Automatic Restarting –

Make the Old drivers updated in Device Manager

In the Device Manager, the outdated drivers are indicated with Yellow indication mark. This will be easier to understand who is playing a big role in causing INVALID_EXTENDED_PROCESSOR_STATE. We can expect that, after updating these, there will be no more issues. Give it a try following below steps-

Step-1: Move the pointer to Start Menu and do a right click on it upon reaching.

Step-2: Once the Win+X menu appears, select Run.

Step-3: In the text box given here, type devmgmt.msc and hit Enter key.

Step-4: Device Manager will be opened immediately and just have a close look for an exclamation mark in the console.

Step-5: If have any, select that very device and expand it in the process.

Step-6: Now, make a right click on the problematic driver and select the option namely Update driver.

INVALID EXTENDED PROCESSOR STATE Error BSOD in Windows 10 Photos 2

Step-7: The next movement will be in accordance with visible instruction provided by the system itself.

Step-8: Do all these and update these drivers eventually to get rid of INVALID_EXTENDED_PROCESSOR_STATE Error BSOD.

Perform Installation of All the Available Update Patches

Major patches including cumulative updates are full packages with the latest features and fixes for various bugs and problems. If you keep these pending, will definitely miss out many things. An outdated Windows OS is slightly weaker and prone to allow BSOD bugs inside. Therefore, now we will install these patches in the following method. However, kindly ensure you have connected the device with good internet connection such as “Ethernet or Wi-Fi“. You can also try from Mobile data but need to disable the “Metered connection” first. Here is the instruction to follow-

After the Operating System is up to date, there might not be any issues further.

Make a habit of Regular Malware Scanning in Windows Security

Nowadays, you cannot really trustfully on the web as there might always be a virus or malware attack. When these bugs get a chance to enter into the system, they play with system elements. In the process, some of the very important things get removed and the device run in INVALID_EXTENDED_PROCESSOR_STATE Error BSOD. We can make a habit of checking and removing these viruses in Windows Security app to avoid deadly sequences. See the process below-

Make the Proper use of Windows Blue Screen Troubleshooter

Windows 10 is by far the most successful Operating System that Microsoft has brought in front. To make it more categorized, Windows Blue Screen Troubleshooter is included to fight with BSOD issues. If your Operating System is a Windows 10 Fall Creators update or above, can use this handy tool to dismiss the error effectively. Here is how to use the utility-

This utility upon activation will fix BSOD issues present in the system automatically and you can have an error-free device afterward.

Perform the Basic Treatment for all problems- Boot in Safe Mode

Starting from the ancient Windows days till today, booting in Safe Mode came up strong to fight against all critical issues. BSOD error growing fast and causing huge damages hence, we can try this primitive resolution process. The Steps is as follows-

Step#1: Open the Run dialog box by pressing “Win+R” hotkeys together.

Step#2: Upon the arrival of the Run dialog, type msconfig in the text box available here.

Step#3: Once you hit Enter key, the System Configuration window will be visible on display.

Step#4: Shift to its Boot tab and reach to the second half in the window read as Boot options.

Step#5: Make a check mark on Safe Boot which will eventually activate all the grayed out options here.

Step#6: Choose the radio button before Minimal and continue to move downward.

INVALID EXTENDED PROCESSOR STATE Error BSOD in Windows 10 Photos 4

Step#7: Hit the Apply button first and then Ok to save these changes for next task.

Step#8: Restart Windows 10 PC and after completing the first cycle of rebooting process, continuously press F8 keys until the next page comes in.

Step#9: Moving ahead select Safe Mode option located under in Advanced boot options region.

Step#10: Enter into the Safe Mode on the consequent move.

Uninstall is the only Barrier between similar apps to block staying over

Two or more similar types of programs when in conflict with each other forces a few necessary OS elements to drive away. To stop this harmful act, removing one is the key. We can uninstall an app very easily using the below guidelines.

DISM Tool- the one-shot solution for defective Windows Image Files

Deployment Image Servicing and Management tool come handy in case of dreadful Windows image files causing INVALID_EXTENDED_PROCESSOR_STATE Error BSOD. Therefore, we can execute it immediately in the elevated Command Prompt. See the method down below-

DISM.exe /Online /Cleanup-image /Restorehealth

In a moment the tool will start checking for problematic Windows image files and also fix them automatically. You might get rid of the INVALID_EXTENDED_PROCESSOR_STATE Error BSOD in Windows 10.

Never Spare Memory issues and RAM problems unattended, fix in Windows Memory Diagnostic

The dreadful segment in Random Access Memory, the wrong allocation will cause lots of issues including BSOD errors. Windows has the own memory diagnostic tool to help the user in this regard. Launch this utility issues below guidelines and fix these problems.

After all the memory issues resolved, we can expect there will be no BSOD error in your system.

System File Checker- your best friend in System Component corruption

Sfc /scannow command line converted into System File Checker on Elevated Prompt and serve the best in fixing corrupted system components. It also recovers DLL files missing from Windows in the process, can heal INVALID_EXTENDED_PROCESSOR_STATE Error BSOD quickly. To proceed with the resolution, follow the below steps-

When you hit Enter key, the System File Checker will be activated and detect all the corruptions in system components. Detected issues will be resolved automatically as well. In the process, you can also get rid of INVALID_EXTENDED_PROCESSOR_STATE Error BSOD in Windows 10.

Bade Farewell to Free Third-Party Anti-virus solution

This is impractical to use a third party anti-malware program while you have the default Windows Security. This will have no use and furthermore, using some can bring INVALID_EXTENDED_PROCESSOR_STATE Error BSOD as well. Hence, remove these from the system by following these instructions.

System Restore- the easiest way to Undo all wrong changes

Changes done on Windows by installing an app or uninstalling something will cause the registry to tweak. If anything goes, either way, this will also cause INVALID_EXTENDED_PROCESSOR_STATE Error BSOD. So, if that happens in your device, can jump back to the earlier state performing the System Restore. Guidelines are as follows-

Drive away the problematic Windows Update Files

Windows Updating process done through the Settings app is an autonomous task. There should not be a disruption in the process but when happens, can call INVALID_EXTENDED_PROCESSOR_STATE Error BSOD. In such cases, we have to throw these files away immediately before they cause harm. You can easily remove them following the below steps.

Let the Disk Cleanup Utility offer you more Disk Space

If you are running in low disk space, the functionality of the device is deteriorated and also INVALID_EXTENDED_PROCESSOR_STATE Error BSOD rises up. Disk Cleanup Utility can free up junk accumulated in the system and some of the spaces can be retrieved. You can go through below process and free up space.

This process might take a few minutes, don’t cancel it and let it end normally. After the process ends, Restart the device and when signing back next, see if the error exists.

Execute Disc Checking Utility in Elevated Command Prompt and fix bad areas in Hard Disk

If there are any bad areas present in the Hard Disk, malfunctions will be there always. In worst cases, it might cause INVALID_EXTENDED_PROCESSOR_STATE Error BSOD also. Disk Checking Utility can fix it in the shortest possible time. Follow the below instruction to fix these areas

C: – Drive we have installed the Windows. You can change it to E:. F: or any as per you have used.

f- forces the utility to fix the detected issues in the volume.

r- brings ahead the problematic areas present in the volume.

x- splits up the Disk Volume before the process begin.

This is a long process and might take several minutes to complete. Once done, Restart the device and after head back to operation, later on, check for the error in the system.

Disconnect the Additional Hard Drive and give a break before reconnecting

Nowadays, we usually need an additional Hard Drive to store more files, study materials, entertainment elements. Some people discovered BSOD error in the system after they have used extra HDD. The solution is pretty simple, just disconnect temporarily and reconnect them using below guidelines.

So far we have discussed the workarounds to resolve INVALID_EXTENDED_PROCESSOR_STATE Error BSOD in Windows 10. It’s expected that the error is disappeared by now if you have correctly done all these methods. If the error still exists, don’t lose hope. We can have one more chance to resolve this annoying issue forever. As a definite hope, Clean Reinstallation to Windows comes at the top though it is a little hectic and professional task.

Once you have come to a decision to perform “Reinstallation of Windows 10”, save a backup for all the necessary files in a folder and take it out in USB. If you are not well competent to do this task, seek help from skilled ones. Hopefully, if everything is done with the utmost care, there will be no more errors and issues in the device afterward.

Источник

KB5006670: обратите внимание на эти проблемы в последнем обновлении Windows 10

1634530900 windows 10 kb5006670 issues

KB5006670 является частью Windows 10 October 2022 Patch Tuesday и содержит уже проверенные исправления ошибок, обновления безопасности и улучшения для обслуживания Windows. По умолчанию это накопительное обновление автоматически устанавливается для всех пользователей при первой возможности, но, похоже, у некоторых оно вызывает новые проблемы.

KB5006670 является важным средством защиты, но, судя по сообщениям пользователей, исправление внесло еще одну проблему с печатью для сетевых принтеров. В социальных сетях администраторы жаловались на проблемы с печатью на своих сетевых принтерах после применения патча октября 2022 года.

Ошибка в обязательном накопительном обновлении для Windows 10 версии 2004 или более поздней не позволяет пользователям печатать.

1634530843 kb5006670 issues

Стоит отметить, что проблема не является широко распространенной, и не все пользователи испытывают проблемы с сетевой печатью, но, похоже, в последнем обновлении Windows 10 есть и другие проблемы.

Например, некоторые пользователи поделились своими устройствами, которые не могут загрузить и установить KB5006670, другие сообщили, что их устройства вылетают из-за BSOD, а еще юзеры указали на проблемы со смарт-картами и стилусом.

Ошибка Центра обновления Windows (0x8007000d)

Недавно выпущенное обновление Windows 10 также не удается установить для некоторых пользователей с сообщениями об ошибках, такими как 0x8007000d. Об этой загадочной ошибке сообщалось ранее в этом и в прошлом году. Сбой обновления также сопровождается другими сообщениями об ошибке, в которых содержится что-то вроде: «Мы попытаемся загрузить обновление еще раз позже».

Помните, что код ошибки может отличаться, и, похоже, это именно проблема Microsoft, поэтому вы ничего не можете сделать, чтобы устранить сбой при установке. Есть некоторые обходные пути, которые включают ручную установку или MCT, но эти методы могут работать или не работать.

Microsoft еще не признала проблемы публично и не ответила на отзывы пользователей в Центре отзывов.

Источник

Invalid extended processor state windows 10

This issuem isn’t directly related to the subject forum, but I guessed that some of you may be familiar with KeSaveExtendedProcessorState in WinDDK, or you can direct me to post this thread in the appropriate Intel forum, I already posted this issue in MSDN forum.

In my driver for Windows 7 64 bits, I tried to use KeSaveExtendedProcessorState/KeRestoreExtendedProcessorState to save and restore extended processor states.

I used RtlGetEnabledExtendedFeatures((ULONG64)(-1)) to get the enabled extended features (the returned value is 0x3 in one of my target system with Intel i7 dual core CPU, and use it as the first parameter for KeSaveExtendedProcessorState, and I used MmAllocateContiguousMemory(sizeof(XSTATE_SAVE), highAddress) with highAddress = 0xbfffffff to allocate the nonpaged memory used to save the extended states, and raised IRQL to DISPATCH_LEVEL before KeSaveExtendedProcessorState. I got BSOD with following message:

INVALID_EXTENDED_PROCESSOR_STATE (131)
Invalid combination of parameters was detected while saving or restoring
extended processor state.
Arguments:
Arg1: 0000000000000000, Invalid feature mask was passed or extended processor state is
not enabled.
Arg2: 0000000000800000, Nonzero if extended state is enabled.
Arg3: 0000000000000003, The low 32 bits of the feature mask.
Arg4: 0000000000000000, The high 32 bits of the feature mask.

Did I miss anything?

Источник

РЕШЕНО: Ошибка «Не поддерживаемое оборудование» (Ваш компьютер оборудован процессором предназначенным для последней версии Windows)

Microsoft продолжает усиленно радовать, удивлять и шокировать своих пользователей. Буквально на днях ко мне обратился коллега с такой проблемой: он приобрел и собрал новый ПК на базе нового процессора Intel Core i3 7100. На собранный компьютер был успешно установлен образ Windows 7. Но через некоторое время, после того, как Windows 7 закачала и установила все обновления через Windows Update, система перестала получать новые обновления со следующей ошибкой:

Unsupported hardware

Your PC uses a processor that is designed for the latest version of Windows. Because the processor is not supported together with the Windows version that you are currently using, your system will miss important security updates.

Unsupported hardware your pc uses a processor for later version windows

Не поддерживаемое оборудование

Ваш процессор не поддерживает данную версию Windows, вы не сможете получать обновления.

При попытке выполнить поиск обновления через Windows Update появляется ошибка:

windows update error 80240037 Windows Update encountered an unknown errorДело в том, Microsoft еще в прошлом году анонсировала, что все обладатели новейших процессоров должны использовать только последнюю версию клиентской платформы — Windows 10. Для более старых версий Windows будет созданы ограничения для использования данных моделей процессоров.

Ограничения распространяется на следующие поколения процессоров:

В апреле 2017 года MSFT выпустило специальные патчи для предыдущих версий ОС

В описании патчей заявляется о появление функционала определения поколения процессора и поддерживаемого оборудования при поиске обновлений через Windows Update.

Enabled detection of processor generation and hardware support when PC tries to scan or download updates through Windows Update.

Соответственно, после установки данных обновлений, система начинает блокировать загрузку новых обновлений (в т.ч для MS Office) и драйверов на старых версиях ОС с ошибкой 80240037, тем самым вынуждая пользователей переходить на Windows 10 /Windows Server 2016. Таким образом, все старые системы с новым оборудованием перестают получать обновления безопасности и переходят в разряд уязвимых. Похоже на шантаж…

Конечно, временно поможет удаление этих обновлений ( wusa.exe /quiet /uninstall /kb:4012218 /promptrestart или wusa.exe /quiet /uninstall /kb:4012219 /promptrestart ) и блокировка их установки, но с высокой долей вероятности они прилетят в следующем месяце в обновлении Monthly Rollup (в рамках новой концепции накопительной модели кумулятивных обновлений).

При попытке установить обновления на windows 7 может появиться ошибка: Ваш компьютер оборудован процессором предназначенным для последней версии Windows. Если вы хотите продолжать получать обновления необходимо в командной строке удалить следующие обновления:

На форумах пишут что за данную ошибку отвечает обновление 4012218. Но у меня его не стояло. А помогло удаление под номером 4019264.

Нашли еще обновления приводящие к описанным проблемам — сообщите в комментариях.

В некоторых случаях windows перестаёт обновляться и при попытке установить обновления даже вручную выдаёт разные ошибки установки. При попытке деинсталировать указанные выше обновления, говорит что ошибок нет.

В этом случае
Лечится это батником, патчащим проверку CPU: https://github.com/zeffy/kb4012218-19
Поскольку патчатся файлы MS Update, данный патчер придётся запускать после каждого кумулятивного обновления (поскольку как минимум проверяются контрольные суммы, а иногда обновляются сами файлы).

UPD2: Wufuc – патч для восстановления Windows Update

Существует неофициальный обходной метод, позволяющий убрать сообщение «Оборудование не поддерживается» и восстановить возможность получения и установки обновлений безопасности на компьютерах с Windows 7 и 8.1 с процессорами Intel Kaby Lake, AMD Ryzen, и другими не поддерживаемыми CPU.

Пользователь GitHub под ником Zeffy выпустил небольшой патч Wufuc (windows update …. ну вы поняли), который позволяет избавиться от проблемы «несовместимого оборудования». Патч отключает сообщение Центра обновлений о несовместимости оборудовании и разрешает компьютеру получать обновления с Windows Update. Последнюю стабильную версию патча Wufuc можно скачать тут: https://github.com/zeffy/wufuc/releases/latest.

wufuc patch

Есть версия Wufuc как для x86, так и для x64 систем.

Согласно информации от Zeffy функция обнаружения типа процессора и запрета получения обновлений находится в библиотеке wuaueng.dll. Первоначально патч Wufuc заменял данный файл, но т.к. данное решение неустойчиво против обновления файла очередным обновлением Windows Update, в последующих релизах Wufuc логика работы патча была изменена.

Теперь фактическая замена файла wuaueng.dll не производится. Установщик wufuc_setup_x64.msi регистрирует новое задание планировщика, которое запускает wufuc при загрузке компьютера. Затем wufuc внедряет себя в процесс service host или службу wuauserv и перехватывает вызов функций IsDeviceServiceable и IsCPUSupported, модифицируя возвращаемый ответ.

ustanovka patcha wufuc

Таким образом патч wufuc отключает сообщение «Оборудование не поддерживается» в Windows Update, и позволяет продолжать устанавливать обновления на системах Windows 7 и 8.1.

Источник

Как исправить ошибку 0x800f0922 при установке накопительных обновлений Windows 10

Обновление KB5003173 было выпущено во «Вторник Патчей», 11 мая 2022 года и предназначается для Windows 10, версий 21H1, 20H2 и 2004. Данное обновление включает улучшения безопасности для операционной системы. Microsoft приводит список из четырех известных проблем для данного обновления, но все они затрагивают также и предыдущие версии ОС.

При этом ошибка 0x800f0922 в списке известных проблем на странице поддержки не фигурирует. Обычным пользователям будет сложно установить, почему эта ошибка возникает во время установки обновления.

Специалисты немецкого портала Deskmodder обнаружили, что ошибка часто возникает в системах, в которых был удален Microsoft Edge на Chromium, чтобы вернуть доступ к классической версии Edge.

Накопительное обновление пытается установить Microsoft Edge на устройство, но процесс завершается сбоем при обнаружении папки C:Program Files (x86)MicrosoftEdge, даже если эта папка пуста. Папка останется в системе, если путь в команде удаления был указан без кавычек.

Следующая команда является корректной:

А при использовании такой команды остается пустая папка:

Как исправить ошибку 0x800f0922

Решение предельно простое: проверьте, существует ли папка и является ли она пустой. Если папка присутствует в системе, удалите ее и перезапустите обновление с помощью Центра обновления Windows.

Другое решение – установить Microsoft Edge на Chromium вручную перед запуском обновления. Оба решения должны устранить ошибку при установке накопительного обновления для Windows 10.

Скорее всего, проблема не является широко распространенной, учитывая, что она возникает только в системах, в которых системный администратор удалил Microsoft Edge некорректной командой.

Источник

I used KeSaveExtendedProcessorState/KeRestoreExtendedProcessorState to save and restore extended processor states before in a device driver for Windows 7 64 bits, I got BSOD with KeSaveExtendedProcessorState, may you help.

I used RtlGetEnabledExtendedFeatures((ULONG64)(-1)) to get the enabled extended features ( the returned value is 0x3), and use it as the first parameter for KeSaveExtendedProcessorState, and I used MmAllocateContiguousMemory(sizeof(XSTATE_SAVE), highAddress) with highAddress = 0xbfffffff to allocate the nonpaged memory used to save the extended states, and raised IRQL to DISPATCH_LEVEL before KeSaveExtendedProcessorState. I got BSOD with following message:

0: kd> !analyze -v
*******************************************************************************
*                                                                             *
*                        Bugcheck Analysis                                    *
*                                                                             *
*******************************************************************************

INVALID_EXTENDED_PROCESSOR_STATE (131)
Invalid combination of parameters was detected while saving or restoring
extended processor state.
Arguments:
Arg1: 0000000000000000, Invalid feature mask was passed or extended processor state is
                not enabled.
Arg2: 0000000000800000, Nonzero if extended state is enabled.
Arg3: 0000000000000003, The low 32 bits of the feature mask.
Arg4: 0000000000000000, The high 32 bits of the feature mask.

What did I miss?

Thanks.

Regards,
David

Xearinox's user avatar

Xearinox

3,2262 gold badges23 silver badges38 bronze badges

asked Aug 21, 2012 at 17:38

David Chou's user avatar

1

Too late now to help with your programming, but what you missed is that the implementation of KeSaveExtendedProcessorState in 64-bit Windows 7 — not 32-bit and not Windows 8 and higher — requires that the processor supports extended processor states, which yours does not. It anyway regards both bits of XSTATE_MASK_LEGACY as invalid in the Mask argument.

The price to you for missing this is exactly your bug check. There is no need for «a bit more code». Of course, you’re not alone in having missed it. Microsoft missed it in the documentation, too, but the price of this to Microsoft is less than nothing.

A decade later and in my assessing whether the function is worth my trouble to document I wonder if any real-world programmer ever got caught. Thus does Stack Overflow show it’s eventually good for an answer.

answered Jan 19, 2021 at 19:36

Geoff Chappell's user avatar

I used KeSaveExtendedProcessorState/KeRestoreExtendedProcessorState to save and restore extended processor states before in a device driver for Windows 7 64 bits, I got BSOD with KeSaveExtendedProcessorState, may you help.

I used RtlGetEnabledExtendedFeatures((ULONG64)(-1)) to get the enabled extended features ( the returned value is 0x3), and use it as the first parameter for KeSaveExtendedProcessorState, and I used MmAllocateContiguousMemory(sizeof(XSTATE_SAVE), highAddress) with highAddress = 0xbfffffff to allocate the nonpaged memory used to save the extended states, and raised IRQL to DISPATCH_LEVEL before KeSaveExtendedProcessorState. I got BSOD with following message:

0: kd> !analyze -v
*******************************************************************************
*                                                                             *
*                        Bugcheck Analysis                                    *
*                                                                             *
*******************************************************************************

INVALID_EXTENDED_PROCESSOR_STATE (131)
Invalid combination of parameters was detected while saving or restoring
extended processor state.
Arguments:
Arg1: 0000000000000000, Invalid feature mask was passed or extended processor state is
                not enabled.
Arg2: 0000000000800000, Nonzero if extended state is enabled.
Arg3: 0000000000000003, The low 32 bits of the feature mask.
Arg4: 0000000000000000, The high 32 bits of the feature mask.

What did I miss?

Thanks.

Regards,
David

Xearinox's user avatar

Xearinox

3,2262 gold badges23 silver badges38 bronze badges

asked Aug 21, 2012 at 17:38

David Chou's user avatar

1

Too late now to help with your programming, but what you missed is that the implementation of KeSaveExtendedProcessorState in 64-bit Windows 7 — not 32-bit and not Windows 8 and higher — requires that the processor supports extended processor states, which yours does not. It anyway regards both bits of XSTATE_MASK_LEGACY as invalid in the Mask argument.

The price to you for missing this is exactly your bug check. There is no need for «a bit more code». Of course, you’re not alone in having missed it. Microsoft missed it in the documentation, too, but the price of this to Microsoft is less than nothing.

A decade later and in my assessing whether the function is worth my trouble to document I wonder if any real-world programmer ever got caught. Thus does Stack Overflow show it’s eventually good for an answer.

answered Jan 19, 2021 at 19:36

Geoff Chappell's user avatar

Понравилась статья? Поделить с друзьями:
  • Invalid efi file path windows 10
  • Invalid boot ini file booting from c windows
  • Intuos pro драйвер для windows 10
  • Intra vpn скачать для windows 7
  • Intime serial smbus driver скачать windows 10